We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For following Example.java
Example.java
record Example() { public static void main(String[] args) { System.out.println(Example.class.isRecord()); System.out.println(Example.class.getRecordComponents().length); } }
execution of
javac --release 14 --enable-preview Example.java java -javaagent:jacocoagent.jar --enable-preview Example
using JaCoCo 0.8.5 prints
0.8.5
true 0
while using JaCoCo 0.8.6-SNAPSHOT
0.8.6-SNAPSHOT
false Exception in thread "main" java.lang.NullPointerException at Example.main(Example.java:4)
Class file instrumented by 0.8.5 contains empty Record attribute, while class file instrumented by 0.8.6-SNAPSHOT does not - see output of
Record
java -jar jacoco-0.8.5/lib/jacococli.jar instrument Example.class --dest before java -jar jacoco-0.8.6-20200329.124051-45/lib/jacococli.jar instrument Example.class --dest after javap -v -p before/Example.class > before.txt javap -v -p after/Example.class > after.txt diff before.txt after.txt
This regression was introduced by the upgrade of ASM to 8.0 (#1032) - see https://mail.ow2.org/wws/arc/asm/2020-03/msg00001.html
8.0
The text was updated successfully, but these errors were encountered:
Godin
Successfully merging a pull request may close this issue.
For following
Example.java
execution of
using JaCoCo
0.8.5
printswhile using JaCoCo
0.8.6-SNAPSHOT
Class file instrumented by
0.8.5
contains emptyRecord
attribute, while class file instrumented by0.8.6-SNAPSHOT
does not - see output ofThis regression was introduced by the upgrade of ASM to
8.0
(#1032) - see https://mail.ow2.org/wws/arc/asm/2020-03/msg00001.htmlThe text was updated successfully, but these errors were encountered: