sun.tools.java.CompilerError

referencesMustNotBeFrozen local class Prog. 1

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Coderanch by Jerson Chua, 11 months ago
    referencesMustNotBeFrozen local class Prog. 1
  • via Google Groups by ch0k3n, 1 year ago
    invalid slot: 0: aload -1 This error possibly resulted from poorly constructed class paths. at sun.tools.asm.Instruction.size(Instruction.java, CompiledCode) at sun.tools.asm.Assembler.write(Assembler.java, Compiled Code) at sun.tools.javac.SourceClass.compileClass(SourceClass.java,Compiled Code) at sun.tools.javac.SourceClass.compile(SourceClass.java,Compiled Code)
  • via Google Groups by Mark McDowell, 1 year ago
    illegal class modifiers
  • Stack trace

    • sun.tools.java.CompilerError: referencesMustNotBeFrozen local class Prog. 1 at sun.tools.java.ClassDefinition.referencesMustNotBeFrozen(ClassDefinition.java:1926) at sun.tools.java.ClassDefinition.addReference(ClassDefinition.java:1898) at sun.tools.java.ClassDefinition.getReference(ClassDefinition.java:1891) at sun.tools.tree.Context.noteReference(Context.java:336) at sun.tools.tree.Context.makeReference(Context.java:357) at sun.tools.tree.UplevelReference.codeArguments(UplevelReference.java:351) at sun.tools.tree.MethodExpression.codeValue(MethodExpression.java:862) at sun.tools.tree.Expression.code(Expression.java:428) at sun.tools.tree.ExpressionStatement.code(ExpressionStatement.java:73) at sun.tools.javac.SourceMember.code(SourceMember.java:825) at sun.tools.javac.SourceClass.compileClass(SourceClass.java:2110) at sun.tools.javac.SourceClass.compile(SourceClass.java:2039) at sun.tools.javac.Main.compile(Main.java:567) at sun.tools.javac.Main.main(Main.java:733)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.