From c8971d64f4a7cb065f1a1d87e63c149c98581b05 Mon Sep 17 00:00:00 2001 From: Phil Race Date: Tue, 11 Oct 2016 16:15:18 -0700 Subject: [PATCH] 8167523: JDK 9 build failure on MacOS due to unhandled cases in switch statement Reviewed-by: serb --- .../java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m b/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m index 8e90250bf9e..41e966894ce 100644 --- a/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m +++ b/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m @@ -93,8 +93,8 @@ static long eventCount; 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