Summary: | IllegalArgumentException on compiling when an primitive is incremented in an if-clause withing a string switch | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Frans Oosterhof <frans> | ||||
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | psdillon | ||||
Version: | 1.7.4 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 7 | ||||||
Whiteboard: | |||||||
Attachments: |
|
It also occurs when a primitive is incremented inline within the body of a while statement. |
Created attachment 240751 [details] Non-compiling test case The compiler fails with the following error: Internal compiler error: java.lang.IllegalArgumentException: info cannot be null at org.aspectj.org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:81) I've isolated this problem and the reason it does not compile is because of primitive that's incremented inline in an if statement. This statement is contained into an case statement in a string switch. When extracting the increment outside the if statement it compiles well. Also when the switch statement switches on a primitive it compiles fine. I've attached my test code.