-
Bug
-
Resolution: Unresolved
-
P4
-
10, 11
-
x86_64
-
linux_ubuntu
ADDITIONAL SYSTEM INFORMATION :
$ uname -a
Linux unit-959 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The test java/awt/datatransfer/SystemFlavorMap/AddFlavorTest.java fails on Ubuntu with the following message:
java.lang.RuntimeException: *** Error in verifyNewMappings() method1: addFlavorForUnencodedNative(String nat, DataFlavor flav) method2: List getFlavorsForNative(String nat) String native: text/uri-listTEST After adding several mappings with addFlavorForUnencodedNative, the returned list did not match the mappings that were added. Either the mapping was not included in the list, or the order was incorect.
The issue was not observed on MacOSX, Windows
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jtreg -ignore:quiet -v -a -xml -testjdk:/usr/lib/jvm/java-10-oracle -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 test/java/awt/datatransfer/SystemFlavorMap/AddFlavorTest.java
ACTUAL -
#section:main
----------messages:(5/193)----------
command: main AddFlavorTest
reason: User specified action: run main AddFlavorTest
Mode: othervm
Additional options from @modules: --add-modules java.datatransfer
elapsed time (seconds): 0.532
----------configuration:(3/45)----------
Boot Layer
add modules: java.datatransfer
----------System.out:(1/20)----------
*** native size = 7
----------System.err:(30/2045)----------
java.lang.RuntimeException:
*** Error in verifyNewMappings()
method1: addFlavorForUnencodedNative(String nat, DataFlavor flav)
method2: List getFlavorsForNative(String nat)
String native: text/uri-listTEST
After adding several mappings with addFlavorForUnencodedNative,
the returned list did not match the mappings that were added.
Either the mapping was not included in the list, or the order was incorect.
at AddFlavorTest.compareFlavors(AddFlavorTest.java:103)
at AddFlavorTest.verifyNewMappings(AddFlavorTest.java:92)
at AddFlavorTest.doTest(AddFlavorTest.java:81)
at AddFlavorTest.main(AddFlavorTest.java:51)
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:115)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.RuntimeException:
*** Error in verifyNewMappings()
method1: addFlavorForUnencodedNative(String nat, DataFlavor flav)
method2: List getFlavorsForNative(String nat)
String native: text/uri-listTEST
After adding several mappings with addFlavorForUnencodedNative,
the returned list did not match the mappings that were added.
Either the mapping was not included in the list, or the order was incorect.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: *** Error in verifyNewMappings() method1: addFlavorForUnencodedNative(String nat, DataFlavor flav) method2: List getFlavorsForNative(String nat) String native: text/uri-listTEST After adding several mappings with addFlavorForUnencodedNative, the returned list did not match the mappings that were added. Either the mapping was not included in the list, or the order was incorect.
---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/datatransfer/SystemFlavorMap/AddFlavorTest.java
---------- END SOURCE ----------
FREQUENCY : always
$ uname -a
Linux unit-959 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The test java/awt/datatransfer/SystemFlavorMap/AddFlavorTest.java fails on Ubuntu with the following message:
java.lang.RuntimeException: *** Error in verifyNewMappings() method1: addFlavorForUnencodedNative(String nat, DataFlavor flav) method2: List getFlavorsForNative(String nat) String native: text/uri-listTEST After adding several mappings with addFlavorForUnencodedNative, the returned list did not match the mappings that were added. Either the mapping was not included in the list, or the order was incorect.
The issue was not observed on MacOSX, Windows
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jtreg -ignore:quiet -v -a -xml -testjdk:/usr/lib/jvm/java-10-oracle -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 test/java/awt/datatransfer/SystemFlavorMap/AddFlavorTest.java
ACTUAL -
#section:main
----------messages:(5/193)----------
command: main AddFlavorTest
reason: User specified action: run main AddFlavorTest
Mode: othervm
Additional options from @modules: --add-modules java.datatransfer
elapsed time (seconds): 0.532
----------configuration:(3/45)----------
Boot Layer
add modules: java.datatransfer
----------System.out:(1/20)----------
*** native size = 7
----------System.err:(30/2045)----------
java.lang.RuntimeException:
*** Error in verifyNewMappings()
method1: addFlavorForUnencodedNative(String nat, DataFlavor flav)
method2: List getFlavorsForNative(String nat)
String native: text/uri-listTEST
After adding several mappings with addFlavorForUnencodedNative,
the returned list did not match the mappings that were added.
Either the mapping was not included in the list, or the order was incorect.
at AddFlavorTest.compareFlavors(AddFlavorTest.java:103)
at AddFlavorTest.verifyNewMappings(AddFlavorTest.java:92)
at AddFlavorTest.doTest(AddFlavorTest.java:81)
at AddFlavorTest.main(AddFlavorTest.java:51)
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:115)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.RuntimeException:
*** Error in verifyNewMappings()
method1: addFlavorForUnencodedNative(String nat, DataFlavor flav)
method2: List getFlavorsForNative(String nat)
String native: text/uri-listTEST
After adding several mappings with addFlavorForUnencodedNative,
the returned list did not match the mappings that were added.
Either the mapping was not included in the list, or the order was incorect.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: *** Error in verifyNewMappings() method1: addFlavorForUnencodedNative(String nat, DataFlavor flav) method2: List getFlavorsForNative(String nat) String native: text/uri-listTEST After adding several mappings with addFlavorForUnencodedNative, the returned list did not match the mappings that were added. Either the mapping was not included in the list, or the order was incorect.
---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/datatransfer/SystemFlavorMap/AddFlavorTest.java
---------- END SOURCE ----------
FREQUENCY : always