Does ASTParser process goto statements? [message #1707980] |
Fri, 11 September 2015 07:55 |
Ivan Ivan Messages: 57 Registered: May 2015 |
Member |
|
|
Hi,
I see that ASTParser processes not corrent gotos. Here is example, I just set breakpoint in debugger when parsing MethodDeclaration.
Real body:
Object attributeset;
if(attributeset == null)
goto _L2;
else
goto _L1
_L1:
System.out.println();
_L2:
int i = 0, j = 5;
if(i >= j)
System.out.println();
Here is parsed code:
Object attributeset;
if (attributeset == null) throw _L2;
else {
_L1 _L1;
System.out.println();
_L2: {
int i=0, j=5;
if (i >= j) System.out.println();
else ;
}
}
I see that it complitely doesn't understand gotos, and generate incorrect AST. Maybe I'm doing something wrong? If that so, please advise a solution, else please help me to edit AST parser core
[Updated on: Fri, 11 September 2015 08:15] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03708 seconds