Minimize Ja.NET Forums
 
  Ja.NET Forums  Ja.NET SE  Using  Internal Error in compiler
Previous Previous
 
Next Next
New Post 8/26/2009 9:22 AM
Unresolved
  sleary
6 posts
No Ranking


Internal Error in compiler 

I am trying to compile some of the Apache Commons libraries and I have found a problem.

When i try to compile the cli library everything goes ok until it tries to compile the Options.java file i get the error:

[javac] [resolving assembly qualified class java/lang/IndexOutOfBoundsException]
    [javac] [resolving assembly janet.luni, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807]
    [javac] Loaded: janet.luni, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] Loaded: janet.annotation, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] Loaded: janet.text, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] Loaded: janet.nio, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] Loaded: janet.security, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] Loaded: JanetVMM, Version=1.5.0.0, Culture=neutral, PublicKeyToken=9af2e2d7b2670807  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] Loaded: System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089  file:///C:/WINDOWS/assembly/GAC_MSIL/janet.ecj/1.5.0.0__9af2e2d7b2670807/janet.ecj.dll
    [javac] [assembly resolve succeeded D:\Java.Net\jdk\jre\bin\default\janet.luni.dll]
    [javac] [assembly qualified class resolve succeeded java\lang\IndexOutOfBoundsException]
    [javac] [reading    java/lang/IndexOutOfBoundsException.class]
    [javac] ----------
    [javac] 1. ERROR in D:\SVNWork\TestJaNetSe\TestAnt\src\org\apache\commons\cli\Option.java (at line 0)
    [javac]     /*
    [javac]     ^
    [javac] Internal compiler error
    [javac] java.lang.NullPointerException: Object reference not set to an instance of an object.
    [javac]     at org.eclipse.jdt.internal.compiler.CLIClassFile.getMethodReferenceForSyntheticJavaMethod(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.CLIClassFile.getMethodReference(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.codegen.CLICodeStream.Callvirt(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.codegen.CLICodeStream.invokeStringConcatenationAppendForType(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.Expression.generateOptimizedStringConcatenation(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.BinaryExpression.generateOptimizedStringConcatenationCreation(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.codegen.CLICodeStream.generateStringConcatenationAppend(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.BinaryExpression.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.Statement.generateArguments(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.ThrowStatement.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.Block.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.IfStatement.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.Block.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.IfStatement.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.IfStatement.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCILCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.Compiler.process(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.Compiler.compile(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Unknown Source)
    [javac]     at org.eclipse.jdt.internal.compiler.batch.Main.compile(Unknown Source)
    [javac]     at java.lang.reflect.Method.invoke(Unknown Source)
    [javac]     at org.apache.harmony.tools.javac.Compiler.main(Unknown Source)
    [javac]     at org.apache.harmony.tools.javac.Main.compile(Unknown Source)
    [javac]     at org.apache.harmony.tools.javac.Main.main(Unknown Source)
    [javac] ----------
    [javac] Object reference not set to an instance of an object.

BUILD FAILED
D:\SVNWork\TestJaNetSe\TestAnt\build.xml:36: Compile failed; see the compiler error output for details.

Total time: 3 seconds
 

I have tried removing the comment at the top and it fails at line 0 no matter what.

Stephen

 

 
New Post 8/27/2009 4:49 AM
  Dave
15 posts
No Ranking


Re: Internal Error in compiler 

Stephen,

Looks like you are trying to compile the CLI commons code. Is it version 1.2?  Can you send me the build.xml you are using?  I'll try and reproduce it and see what is going on.

 

Dave

 
Previous Previous
 
Next Next
  Ja.NET Forums  Ja.NET SE  Using  Internal Error in compiler
Syndicate  
Minimize Ja.NET SE Survey

What open source Java implementation should Ja.NET SE be based on?






Submit Survey 
Minimize Provide Feedback

 





Enter the code shown above in the box below
Send