JDK-8252838 : Panama foreign-abi branch fails to build
  • Type: Bug
  • Component: tools
  • Sub-Component: jextract
  • Affected Version: repo-panama
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-09-07
  • Updated: 2020-09-07
  • Resolved: 2020-09-07
Related Reports
Relates :  
Description
$jdk/panama-foreign-git/src/java.base/share/classes/java/lang/invoke/NativeMethodHandle.java:90: error: method resolveOrFail in class Factory cannot be applied to given types;
      linker = IMPL_NAMES.resolveOrFail(REF_invokeStatic, linker, null, NoSuchMethodException.class);
                ^
 required: byte,MemberName,Class<?>,int,Class<NoSuchMemberException>
 found:  byte,MemberName,<null>,Class<NoSuchMethodException>
 reason: cannot infer type-variable(s) NoSuchMemberException
  (actual and formal argument lists differ in length)
 where NoSuchMemberException is a type-variable:
  NoSuchMemberException extends ReflectiveOperationException declared in method <NoSuchMemberException>resolveOrFail(byte,MemberName,Class<?>,int,Class<NoSuchMemberException>)
1 error
make[3]: *** [$jdk/panama-foreign-git/build/macosx-x86_64-server-release/jdk/modules/java.base/_the.java.base_batch] Error 1
make[2]: *** [java.base-java] Error 2
make[2]: *** Waiting for unfinished jobs....
Comments
[~jvernee] said (private communication): " Seems to be from https://github.com/openjdk/panama-foreign/commit/4e6a4af1866d0007d368b78bf78b6a8e1c8be425 Can try passing LM_TRUSTED after null. "
07-09-2020