<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The fix for
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    8166591: [macos 10.12] Trackpad scrolling of text on OS X 10.12
    Sierra is very fast (Trackpad, Retina only) added a switch statement
    with unhandled cases.<br>
    On later versions of the clang compiler this causes a build failure
    due to a warning<br>
    <br>
    /jdk9-client/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m:92:13:
    error: 4 enumeration values not handled in switch:
    'NSEventPhaseNone', 'NSEventPhaseStationary',
    'NSEventPhaseChanged'... [-Werror,-Wswitch]<br>
        switch (phase) {<br>
                ^<br>
    1 error generated. <br>
    <br>
    Simple fix in-line below that builds with xcode 6.3 and xcode 7 :-<br>
    diff --git
    a/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
    b/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m<br>
    --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m<br>
    +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m<br>
    @@ -93,8 +93,8 @@<br>
             case NSEventPhaseBegan: return SCROLL_PHASE_BEGAN;<br>
             case NSEventPhaseCancelled: return SCROLL_PHASE_CANCELLED;<br>
             case NSEventPhaseEnded: return SCROLL_PHASE_ENDED;<br>
    + default: return SCROLL_PHASE_CONTINUED;<br>
         }<br>
    - return SCROLL_PHASE_CONTINUED;<br>
     }<br>
    <br>
    <br>
    -phil.<br>
    <br>
    -<br>
  </body>
</html>