ppkarwasz opened a new pull request, #719:
URL: https://github.com/apache/commons-parent/pull/719

   `MethodHandle`'s invokers (`invokeExact`, `invoke`) are 
signature-polymorphic: javac records the ad-hoc call-site descriptor in the 
bytecode, which no signature database lists, so the Animal Sniffer check on JDK 
8 flags every such call site as an undefined reference — even though the 
invokers exist on all supported targets (Java 7+).
   
   Seen in practice on apache/commons-xml#57, where six `invokeExact` call 
sites fail the JDK 8 CI legs; the workaround there is the same 
`<ignore>java.lang.invoke.MethodHandle</ignore>` in the component's own pom, 
which this change makes unnecessary for all components.
   
   Only `java.lang.invoke.MethodHandle` is ignored: `VarHandle` is deliberately 
not listed, since it does not exist on a Java 8 target and a reference to it 
would be a real incompatibility.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to