[janino-dev] [jira] Created: (JANINO-108) Invalid syntax but no compilation errors

View: New views
2 Messages — Rating Filter:   Alert me  

[janino-dev] [jira] Created: (JANINO-108) Invalid syntax but no compilation errors

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



[janino-dev] [jira] Resolved: (JANINO-108) Invalid syntax but no compilation errors

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JANINO-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Varghese C V resolved JANINO-108.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.13

2.5.13 throws error for the invalid syntax

> 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
>             Fix For: 2.5.13
>
>
> 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