eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.29k stars 722 forks source link

java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest.java Compilation failed - incompatible types: cannot infer type-variable(s) #13628

Open JasonFengJ9 opened 3 years ago

JasonFengJ9 commented 3 years ago

Failure link

From an internal build job/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/60/consoleFull (ub20lert-1-7):

21:10:14  openjdk version "17-internal" 2021-09-14
21:10:14  OpenJDK Runtime Environment (build 17-internal+0-adhoc.jenkins.BuildJDK17ppc64lelinuxPersonal)
21:10:14  Eclipse OpenJ9 VM (build openj9-0.29.0-m2, JRE 17 Linux ppc64le-64-Bit Compressed References 20211004_87 (JIT enabled, AOT enabled)
21:10:14  OpenJ9   - 828307692e8
21:10:14  OMR      - aabfc12b978
21:10:14  JCL      - 23999d8072a based on jdk-17+35)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

00:20:50  ===============================================
00:20:50  Running test jdk_util_0 ...
00:20:50  ===============================================
00:20:50  jdk_util_0 Start Time: Mon Oct  4 21:20:49 2021 Epoch Time (ms): 1633407649506
00:20:50  "/home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
00:20:50  JVMSHRC005I No shared class caches available
00:20:50  JVMSHRC005I No shared class caches available
00:20:50  cache cleanup done
00:20:50  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode150
00:20:50  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:+UseCompressedOops 

00:40:35  --------------------------------------------------
00:40:35  TEST: java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest.java

00:40:35  STDERR:
00:40:35  warning: using incubating module(s): jdk.incubator.foreign
00:40:35  /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java:607: error: incompatible types: cannot infer type-variable(s) T#1,M,CAP#1,T#2,T#3,T#4,K,D
00:40:35          exerciseMapCollection(data,
00:40:35                               ^
00:40:35      (argument mismatch; cannot infer type arguments for GroupingByAssertion<>
00:40:35        reason: inference variable V has incompatible equality constraints Integer,List<T#5>,R#2)
00:40:35    where T#1,M,T#2,K,A#1,D,T#3,T#4,A#2,R#1,V,T#5,R#2 are type-variables:
00:40:35      T#1 extends Object declared in method <T#1,M>exerciseMapCollection(TestData<T#1,Stream<T#1>>,Collector<T#1,?,? extends M>,CollectorAssertion<T#1,M>)
00:40:35      M extends Map declared in method <T#1,M>exerciseMapCollection(TestData<T#1,Stream<T#1>>,Collector<T#1,?,? extends M>,CollectorAssertion<T#1,M>)
00:40:35      T#2 extends Object declared in method <T#2,K,A#1,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A#1,D>)
00:40:35      K extends Object declared in method <T#2,K,A#1,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A#1,D>)
00:40:35      A#1 extends Object declared in method <T#2,K,A#1,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A#1,D>)
00:40:35      D extends Object declared in method <T#2,K,A#1,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A#1,D>)
00:40:35      T#3 extends Object declared in method <T#3>toList()
00:40:35      T#4 extends Object declared in method <T#4,A#2,R#1>filtering(Predicate<? super T#4>,Collector<? super T#4,A#2,R#1>)
00:40:35      A#2 extends Object declared in method <T#4,A#2,R#1>filtering(Predicate<? super T#4>,Collector<? super T#4,A#2,R#1>)
00:40:35      R#1 extends Object declared in method <T#4,A#2,R#1>filtering(Predicate<? super T#4>,Collector<? super T#4,A#2,R#1>)
00:40:35      V extends Object declared in class GroupingByAssertion
00:40:35      T#5 extends Object declared in class ToListAssertion
00:40:35      R#2 extends Object declared in class FilteringAssertion
00:40:35    where CAP#1 is a fresh type-variable:
00:40:35      CAP#1 extends Object from capture of ?
00:40:35  /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java:178: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
00:40:35                  .mapToObj(i -> new Integer(1000)) // explicit construction
00:40:35                                 ^
00:40:35  Note: /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java uses or overrides a deprecated API.
00:40:35  Note: Recompile with -Xlint:deprecation for details.
00:40:35  Note: /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java uses unchecked or unsafe operations.
00:40:35  Note: Recompile with -Xlint:unchecked for details.
00:40:35  1 error
00:40:35  2 warnings
00:40:35  
00:40:35  TEST RESULT: Failed. Compilation failed: Compilation failed
00:40:35  --------------------------------------------------
01:03:45  Test results: passed: 884; failed: 1
01:04:04  Report written to /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/jvmtest/openjdk/report/html/report.html
01:04:04  Results written to /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/TKG/output_16333964178731/jdk_util_0/work
01:04:04  Error: Some tests failed or other problems occurred.
01:04:04  
01:04:04  jdk_util_0_FAILED

Launched a grinder /job/Grinder/18578/ - 30x all passed.

pshipton commented 2 years ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/290

22:40:34  rerun:
22:40:34  cd /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/TKG/output_16546490872210/jdk_util_0/work/java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest && \
22:40:34  DISPLAY=unix:0 \
22:40:34  HOME=/home/jenkins \
22:40:34  LANG=C \
22:40:34  PATH=/bin:/usr/bin:/usr/sbin \
22:40:34  TZ=CUT0 \
22:40:34      /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/openjdkbinary/j2sdk-image/bin/javac \
22:40:34          -J-ea \
22:40:34          -J-esa \
22:40:34          -J-Xmx1540m \
22:40:34          -J-Xdump:system:none \
22:40:34          -J-Xdump:heap:none \
22:40:34          -J-Xdump:system:events=gpf+abort+traceassert+corruptcache \
22:40:34          -J-XX:+UseCompressedOops \
22:40:34          -J-Dtest.vm.opts='-ea -esa -Xmx1540m -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:+UseCompressedOops' \
22:40:34          -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx1540m -J-Xdump:system:none -J-Xdump:heap:none -J-Xdump:system:events=gpf+abort+traceassert+corruptcache -J-XX:+UseCompressedOops' \
22:40:34          -J-Dtest.compiler.opts= \
22:40:34          -J-Dtest.java.opts= \
22:40:34          -J-Dtest.jdk=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/openjdkbinary/j2sdk-image \
22:40:34          -J-Dcompile.jdk=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/openjdkbinary/j2sdk-image \
22:40:34          -J-Dtest.timeout.factor=8.0 \
22:40:34          -J-Dtest.nativepath=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/openjdkbinary/openjdk-test-image/jdk/jtreg/native \
22:40:34          -J-Dtest.root=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk \
22:40:34          -J-Dtest.name=java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest.java \
22:40:34          -J-Dtest.file=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest.java \
22:40:34          -J-Dtest.src=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test \
22:40:34          -J-Dtest.src.path=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test \
22:40:34          -J-Dtest.classes=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/TKG/output_16546490872210/jdk_util_0/work/classes/java/util/stream/test \
22:40:34          -J-Dtest.class.path=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/TKG/output_16546490872210/jdk_util_0/work/classes/java/util/stream/test \
22:40:34          -J-Dtest.patch.path=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/TKG/output_16546490872210/jdk_util_0/work/classes/lib/testlibrary/bootlib \
22:40:34          @/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/TKG/output_16546490872210/jdk_util_0/work/java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest.d/compile.0.jta
22:40:34  STDOUT:
22:40:34  STDERR:
22:40:34  /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java:584: error: method exerciseMapCollection in class CollectorsTest cannot be applied to given types;
22:40:34          exerciseMapCollection(data,
22:40:34          ^
22:40:34    required: TestData<T#1,Stream<T#1>>,Collector<T#1,?,? extends M>,CollectorAssertion<T#1,M>
22:40:34    found: OfRef<Integer>,Collector<Integer,CAP#1,Map<Integer,List<Object>>>,GroupingByAssertion<Integer,Integer,List<Integer>,Map<Integer,? extends List<Integer>>>
22:40:34    reason: inference variable D has incompatible equality constraints Object,List<Integer>
22:40:34    where T#1,M,D,T#2,K,A are type-variables:
22:40:34      T#1 extends Object declared in method <T#1,M>exerciseMapCollection(TestData<T#1,Stream<T#1>>,Collector<T#1,?,? extends M>,CollectorAssertion<T#1,M>)
22:40:34      M extends Map declared in method <T#1,M>exerciseMapCollection(TestData<T#1,Stream<T#1>>,Collector<T#1,?,? extends M>,CollectorAssertion<T#1,M>)
22:40:34      D extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
22:40:34      T#2 extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
22:40:34      K extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
22:40:34      A extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
22:40:34    where CAP#1 is a fresh type-variable:
22:40:34      CAP#1 extends Object from capture of ?
22:40:34  Note: Some input files use or override a deprecated API.
22:40:34  Note: Recompile with -Xlint:deprecation for details.
22:40:34  Note: /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_ppc64_aix_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java uses unchecked or unsafe operations.
22:40:34  Note: Recompile with -Xlint:unchecked for details.
22:40:34  1 error
JasonFengJ9 commented 2 years ago

Internal build(macaarch64rt7)

java version "11.0.17-ea" 2022-10-18
IBM Semeru Runtime Certified Edition 11.0.17+6 (build 11.0.17-ea+6)
Eclipse OpenJ9 VM 11.0.17+6 (build master-784820387, JRE 11 Mac OS X aarch64-64-Bit 20220923_112 (JIT enabled, AOT enabled)
OpenJ9   - 784820387
OMR      - 24b511df5
JCL      - 88b69ab0aa based on jdk-11.0.17+6)

[2022-09-24T04:05:13.256Z] variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode650
[2022-09-24T04:05:13.256Z] JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-UseCompressedOops 

[2022-09-24T04:08:09.512Z] TEST: java/util/stream/test/org/openjdk/tests/java/lang/invoke/DeserializeMethodTest.java

[2022-09-24T04:08:09.515Z] STDERR:
[2022-09-24T04:08:09.515Z] /Users/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_mac_testList_0/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java:485: error: incompatible types: inference variable T#1 has incompatible bounds
[2022-09-24T04:08:09.515Z]             exerciseMapCollection(data, toConcurrentMap(keyFn, valueFn),
[2022-09-24T04:08:09.515Z]                                  ^
[2022-09-24T04:08:09.515Z]     equality constraints: M,T#2,T#3,Integer
[2022-09-24T04:08:09.515Z]     lower bounds: Map,Map<K#2,V>,Integer,Object
[2022-09-24T04:08:09.515Z]   where T#1,K#1,U,M,T#2,T#3,K#2,V are type-variables:
[2022-09-24T04:08:09.515Z]     T#1 extends Object declared in method <T#1,K#1,U>toConcurrentMap(Function<? super T#1,? extends K#1>,Function<? super T#1,? extends U>)
[2022-09-24T04:08:09.515Z]     K#1 extends Object declared in method <T#1,K#1,U>toConcurrentMap(Function<? super T#1,? extends K#1>,Function<? super T#1,? extends U>)
[2022-09-24T04:08:09.515Z]     U extends Object declared in method <T#1,K#1,U>toConcurrentMap(Function<? super T#1,? extends K#1>,Function<? super T#1,? extends U>)
[2022-09-24T04:08:09.515Z]     M extends Map declared in method <T#2,M>exerciseMapCollection(TestData<T#2,Stream<T#2>>,Collector<T#2,?,? extends M>,CollectorAssertion<T#2,M>)
[2022-09-24T04:08:09.515Z]     T#2 extends Object declared in method <T#2,M>exerciseMapCollection(TestData<T#2,Stream<T#2>>,Collector<T#2,?,? extends M>,CollectorAssertion<T#2,M>)
[2022-09-24T04:08:09.515Z]     T#3 extends Object declared in class ToMapAssertion
[2022-09-24T04:08:09.515Z]     K#2 extends Object declared in class ToMapAssertion
[2022-09-24T04:08:09.515Z]     V extends Object declared in class ToMapAssertion
[2022-09-24T04:08:09.515Z] Note: Some input files use or override a deprecated API.
[2022-09-24T04:08:09.515Z] Note: Recompile with -Xlint:deprecation for details.
[2022-09-24T04:08:09.515Z] Note: /Users/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_mac_testList_0/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java uses unchecked or unsafe operations.
[2022-09-24T04:08:09.516Z] Note: Recompile with -Xlint:unchecked for details.
[2022-09-24T04:08:09.516Z] 1 error
[2022-09-24T04:08:09.516Z] 
[2022-09-24T04:08:09.516Z] TEST RESULT: Failed. Compilation failed: Compilation failed
[2022-09-24T04:08:09.516Z] --------------------------------------------------
[2022-09-24T04:11:21.437Z] Test results: passed: 844; failed: 1
[2022-09-24T04:11:21.437Z] Report written to /Users/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_mac_testList_0/aqa-tests/TKG/output_16639920567097/jdk_util_1/report/html/report.html
[2022-09-24T04:11:21.437Z] Results written to /Users/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_mac_testList_0/aqa-tests/TKG/output_16639920567097/jdk_util_1/work
[2022-09-24T04:11:21.437Z] Error: Some tests failed or other problems occurred.
[2022-09-24T04:11:21.437Z] 
[2022-09-24T04:11:21.437Z] jdk_util_1_FAILED

50x internal grinder - passed