8167523: JDK 9 build failure on MacOS due to unhandled cases in switch statement
authorprr
Tue, 11 Oct 2016 16:15:18 -0700
changeset 41782 673b864f2c7c
parent 41781 1455c87cc28a
child 41783 551c0584c1c1
8167523: JDK 9 build failure on MacOS due to unhandled cases in switch statement Reviewed-by: serb
jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
--- a/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m	Mon Oct 10 14:35:20 2016 -0700
+++ b/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m	Tue Oct 11 16:15:18 2016 -0700
@@ -93,8 +93,8 @@
         case NSEventPhaseBegan: return SCROLL_PHASE_BEGAN;
         case NSEventPhaseCancelled: return SCROLL_PHASE_CANCELLED;
         case NSEventPhaseEnded: return SCROLL_PHASE_ENDED;
+        default: return SCROLL_PHASE_CONTINUED;
     }
-    return SCROLL_PHASE_CONTINUED;
 }
 @end