changeset 15929:2d3ca05c6ea7

8167523: JDK 9 build failure on MacOS due to unhandled cases in switch statement Reviewed-by: serb
author prr
date Tue, 11 Oct 2016 16:15:18 -0700
parents 103be1c3c4f7
children 27794f0eee1a
files src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m	Mon Oct 10 14:35:20 2016 -0700
+++ b/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