Invalid syntax but no compilation errors
----------------------------------------
Key: JANINO-108
URL:
http://jira.codehaus.org/browse/JANINO-108 Project: Janino
Issue Type: Bug
Environment: Windows XP
Reporter: Varghese C V
Assignee: Arno Unkrig
The following syntax throws no errors when compiled with janino even though the syntax is invalid
new SimpleCompiler().cook(new StringReader("public class Test{public Test(){System.out.println(\"Test\"))if(1==1)return;}}"));
notice the
- double brackets System.out.println(\"Test\"))
- no semi-colon and begin of the if block
I have tested this with janino v2.5.10. Wonder what is causing this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email