Paullo612 / mlfx

OpenJFX's FXML language AOT compler
Apache License 2.0
12 stars 0 forks source link

Compile time exception when `fx:include` resources attribute specified #20

Closed Paullo612 closed 1 year ago

Paullo612 commented 1 year ago
java.lang.RuntimeException: java.lang.NegativeArraySizeException: -1

    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:168)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
    at io.github.paullo612.mlfx.compiler.CompileSpec.compile(CompileSpec.groovy:91)
    at io.github.paullo612.mlfx.compiler.ComplianceSpec.FXMLLoader loads the same object tree as CompiledFXMLLoader for #pathAndTestName.testName(ComplianceSpec.groovy:283)
Caused by: java.lang.NegativeArraySizeException: -1
    at org.objectweb.asm.Frame.merge(Frame.java:1222)
    at org.objectweb.asm.MethodWriter.computeAllFrames(MethodWriter.java:1611)
    at org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1547)
    at org.objectweb.asm.commons.GeneratorAdapter.endMethod(GeneratorAdapter.java:1347)
    at io.github.paullo612.mlfx.compiler.RootRenderer.dispose(RootRenderer.java:585)
    at io.github.paullo612.mlfx.compiler.FXMLCompiler.doCompile(FXMLCompiler.java:450)
    at io.github.paullo612.mlfx.compiler.FXMLCompiler.compile(FXMLCompiler.java:481)
    at io.github.paullo612.mlfx.compiler.TaskFactory.doCompile(TaskFactory.java:118)
    at io.github.paullo612.mlfx.compiler.TaskFactory$TaskImpl.compile(TaskFactory.java:89)
    at io.github.paullo612.mlfx.compiler.CompileFXMLVisitor.visitClass(CompileFXMLVisitor.java:220)
    at io.micronaut.annotation.processing.visitor.LoadedVisitor.visit(LoadedVisitor.java:179)
    at io.micronaut.annotation.processing.TypeElementVisitorProcessor$ElementVisitor.visitType(TypeElementVisitorProcessor.java:361)
    at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1575)
    at io.micronaut.annotation.processing.TypeElementVisitorProcessor.process(TypeElementVisitorProcessor.java:235)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1023)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:939)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1267)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1382)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:916)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
    ... 4 more