Closed snuyanzin closed 1 year ago
It does not look like JandexWork
issue to me:
JandexWork
works fine in https://github.com/pgjdbc/pgjdbc which uses Gradle 8.1.1ArrayIndexOutOfBoundsException from org.jboss.jandex.Indexer
You might want trying to bump jandex tool version: https://github.com/vlsi/vlsi-release-plugins/blob/08e0523468aaf59fe4a9c1558418b8e281d1ee0f/plugins/jandex-plugin/src/main/kotlin/com/github/vlsi/jandex/JandexExtension.kt#L26
Please check the bytecode manually, and then follow up with Jandex team (https://github.com/smallrye/jandex) if the bytecode is valid or with your Java vendor if the bytecode is invalid.
Feel free to reopen if you really think it is vlsi-release-plugins-related
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.jboss.jandex.Indexer.updateTypeTarget(Indexer.java:898)
at org.jboss.jandex.Indexer.updateTypeTargets(Indexer.java:630)
at org.jboss.jandex.Indexer.index(Indexer.java:1698)
at com.github.vlsi.jandex.JandexWork.execute(JandexWork.kt:58)
Caused by: com.github.vlsi.jandex.JandexException: Unable to process 65 files. It might be caused by invalid bytecode in the class file or a defect in org.jboss:jandex; You might analyze the bytecode with the following command: javap -verbose -p <ClassName.class>; Unable to parse the following files: /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/jdbc/MetadataSchema$1.class, /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/jdbc/MetadataSchema$2.class, /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/plan/RelOptUtil$9.class, /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/plan/volcano/VolcanoCost$1.class, /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/plan/volcano/VolcanoCost$2.class, /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/plan/volcano/VolcanoCost$3.class, /home/runner/work/calcite/calcite/core/build/classes/java/main/org/apache/calcite/plan/volcano/VolcanoCost$4.class,
...
an example of failure
also more logs are available at https://github.com/snuyanzin/calcite/actions/runs/4965785970/jobs/8886823521