JDK-8157147 : Ubuntu Linux: invalid KeyEvent's extended modifiers info
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9,10,11
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-05-17
  • Updated: 2023-10-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
java/awt/Mouse/MouseModifiersUnitTest/MouseModifiersInKeyEvent.java fails

JDK9 b119 nightly + Ubuntu Linux 14.04

please comment out throwing the runtime exceptions from the test, compile and run.

The output:
Expected modifiersEX: 16384
Actual modifiersEX: 0
Expected modifiersEX: 32768
Actual modifiersEX: 0
Expected modifiersEX: 65536
Actual modifiersEX: 0
Expected modifiersEX: 131072
Actual modifiersEX: 0
Expected modifiersEX: 262144
Actual modifiersEX: 0
Expected modifiersEX: 524288
Actual modifiersEX: 0
Expected modifiersEX: 1048576
Actual modifiersEX: 0
Expected modifiersEX: 2097152
Actual modifiersEX: 0
Expected modifiersEX: 4194304
Actual modifiersEX: 0
Expected modifiersEX: 8388608
Actual modifiersEX: 0
Expected modifiersEX: 16777216
Actual modifiersEX: 0

Comments
Internal test system for MacOS failure: ----------System.err:(16/875)---------- Expected modifiersEX: 1024 Actual modifiersEX: 0 java.lang.RuntimeException at MouseModifiersInKeyEvent.test(MouseModifiersInKeyEvent.java:76) at MouseModifiersInKeyEvent.main(MouseModifiersInKeyEvent.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:833)
07-11-2019

May hang on windows as well.
17-05-2018

Also JDK 11 on Ubuntu 16.04 : ---------System.err:(16/876)---------- Expected modifiersEX: 16384 Actual modifiersEX: 0 java.lang.RuntimeException at MouseModifiersInKeyEvent.test(MouseModifiersInKeyEvent.java:76) at MouseModifiersInKeyEvent.main(MouseModifiersInKeyEvent.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115) at java.base/java.lang.Thread.run(Thread.java:832) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test
11-05-2018

Test fails on Linux with JDK 10.0.1
31-01-2018

It is exact same issue as https://bugs.openjdk.java.net/browse/JDK-8143240
22-06-2016

The issue is also reproducible with earlier JDK9 builds. E.g., can reproduce with b112. Not reproducible on Win. 7
17-05-2016