RFR: 8307818: Convert Indify tool to Classfile API [v8]

Oussama Louati duke at openjdk.org
Fri May 24 18:00:50 UTC 2024


On Tue, 21 May 2024 11:37:26 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> Indify invocation on Microbenchmarks as a part of the JDK build (after application of the above patch) still fails with:
> 
> ```
> Failure on /Applications/XcodeJIB.app/dev/github/jdk/build/macosx-aarch64/support/test/micro/classes
> Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.classfile.ClassModel.thisClass()" because "model" is null
> 	at java.base/java.lang.classfile.ClassFile.transform(ClassFile.java:445)
> 	at indify.Indify.transformToBytes(Indify.java:369)
> 	at indify.Indify.writeNewClassFile(Indify.java:360)
> 	at indify.Indify.indifyFile(Indify.java:356)
> 	at indify.Indify.indifyTree(Indify.java:391)
> 	at indify.Indify.indifyTree(Indify.java:393)
> 	at indify.Indify.indifyTree(Indify.java:393)
> 	at indify.Indify.indifyTree(Indify.java:393)
> 	at indify.Indify.indifyTree(Indify.java:393)
> 	at indify.Indify.indifyTree(Indify.java:393)
> 	at indify.Indify.indifyTree(Indify.java:393)
> 	at indify.Indify.indify(Indify.java:339)
> 	at indify.Indify.run(Indify.java:191)
> 	at indify.Indify.main(Indify.java:101)
> ```

I applied a patch addressing this issue, the tool invocation should pass now  on Microbenchmarks.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18841#issuecomment-2123566807


More information about the core-libs-dev mailing list