Can Linkage Checker detect the bad Java8-incompatible byte code
See original GitHub issueCan Linkage Checker (Linkage Monitor) detect the wrong byte code that does not work with Java 8 (case https://github.com/protocolbuffers/protobuf/issues/7827)
Wrong byte code for Java8 that has reference to CharBuffer CharBuffer.flip()
(java.nio.CharBuffer.flip()Ljava/nio/CharBuffer
). In JRE 8, it’s Buffer Buffer.flip()
(the return type is different).
As of now, references to all system classes (including java.nio.CharBuffer
) are skipped.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
ASM 5.0.3 With Java 1.8 incorrect maxStack with Java.lang ...
I found the solution to resolve such kind of VerifyError with java 1.7 and 1.8. In the transform() method of MyClassFileTransformer ...
Read more >An Introduction to Invoke Dynamic in the JVM - Baeldung
Learn about invokedynamic and see how it can help library and language designers to implement many forms of dynamicity.
Read more >Compatibility Guide for JDK 8 - Oracle
This document discusses types of potential incompatibilities relating to the JDK 8 release of the Java platform.
Read more >Proposal : Jenkins to require Java 8 - Google Groups
And plugins should?/could? then really express there compatibility with the new version. ... Let's check how many RHEL5 installation jenkins has.
Read more >Classloaders and Reflection - Manning Publications
This loads the application classes and does the majority of the work in most modern ... check if the class has already been...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it detect the compatibility with the JDK Linkage Checker is running on.
If we enhance the check script to build protobuf-java in Java 11 and running Linkage Checker with Java 8, https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/1607 should detect the invalid method references.
Memo: script for current check https://github.com/protocolbuffers/protobuf/blob/master/tests.sh#L252 uses Java 8 for both.
@cpovirk Thank you for information.