JDK-8238693 : Two JCK api/java_lang/invoke/MethodHandles/Lookup tests fail in valhalla nestmates repo
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2020-02-07
  • Updated: 2021-01-08
  • Resolved: 2021-01-08
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
repo-valhallaResolved
Related Reports
Relates :  
Description
These two tests fail because the lookupModes() API returns 95 instead of the expected 31.

api/java_lang/invoke/MethodHandles/Lookup/MethodsTests.html
api/java_lang/invoke/MethodHandles/Lookup/ModuleTests.html

Sample failure:

Testcase "inTest(0)" failed with arguments [javasoft.sqe.tests.api.java.lang.invoke.MethodHandles.Lookup.utils.exportedofa.PublicClassInExportedPkgOfA, class javasoft.sqe.tests.api.java.lang.invoke.MethodHandles.Lookup.utils.exportedofa.PublicClassInExportedPkgOfA, 31]
inTest: Failed. test cases: 16; passed: 15; failed: 1
inTestPublicLookup: Passed. test cases: 6; all passed
Testcase "lookupClassModes(0)" failed with message: Expected equal to : "31", was given: "95"
        at com.sun.tck.lib.Assert.assertEquals(Assert.java:648)
        at javasoft.sqe.tests.api.java.lang.invoke.MethodHandles.Lookup.ModuleTests.lookupClassModes(ModuleTests.java:170)


Comments
Fixes are integrated to JCK repository, will be available starting from JCK 16 build 19
08-01-2021

It's due to a spec change. Nestmates branch defines a new ORIGINAL mode which is 0x40. So if this gets integrated to Java SE, these JCK tests should be updated.
07-02-2020