I just hit the same problem. I upgraded from jdk1.8.0_152 to jdk1.8.0_271, restarted all gradle daemons, and the problem does not go away.
Execution failed for task ':plus:forbiddenApisMain': Caused by: de.thetaphi.forbiddenapis.ForbiddenApiException: Failed to parse class 'org.apache.calcite.adapter.tpcds.TpcdsSchema$TpcdsQueryableTable$1$1' (TpcdsSchema.java): java.lang.ArrayIndexOutOfBoundsException: 110 at de.thetaphi.forbiddenapis.Checker.checkClass(Checker.java:440) at de.thetaphi.forbiddenapis.Checker.run(Checker.java:460) at de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis.checkForbidden(CheckForbiddenApis.java:601) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) ... Caused by: java.lang.ArrayIndexOutOfBoundsException: 110 at de.thetaphi.forbiddenapis.asm.ClassReader.readLabel(ClassReader.java:2643) at de.thetaphi.forbiddenapis.asm.ClassReader.createLabel(ClassReader.java:2659) at de.thetaphi.forbiddenapis.asm.ClassReader.readTypeAnnotations(ClassReader.java:2725) at de.thetaphi.forbiddenapis.asm.ClassReader.readCode(ClassReader.java:1892) at de.thetaphi.forbiddenapis.asm.ClassReader.readMethod(ClassReader.java:1481) at de.thetaphi.forbiddenapis.asm.ClassReader.accept(ClassReader.java:711) at de.thetaphi.forbiddenapis.asm.ClassReader.accept(ClassReader.java:394) at de.thetaphi.forbiddenapis.Checker.checkClass(Checker.java:414) It reproduces if you try to build Vladimir, Do you have more info about this bug? I see an ASM issue [1] that the ASM folks claim is caused by a javac issue. Julian [1] vv https://gitlab.ow2.org/asm/asm/-/issues/317789 On Mon, Dec 7, 2020 at 4:00 AM Fan Liya <liya.fa...@gmail.com> wrote: > > Thanks for the advice. > I have tried jdk1.8.0_271 and jdk1.9 (build 9+181), but the problem is > still there. > > Best, > Liya Fan > > On Mon, Dec 7, 2020 at 1:51 PM Vladimir Sitnikov < > sitnikov.vladi...@gmail.com> wrote: > > > Fan Liya, please update Java. It is the solution. > > > > Vladimir > >