|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[janino-dev] [jira] Created: (JANINO-107) Janino doesn't handle $variable as variable nameJanino doesn't handle $variable as variable name
------------------------------------------------ Key: JANINO-107 URL: http://jira.codehaus.org/browse/JANINO-107 Project: Janino Issue Type: Bug Affects Versions: 2.5.12 Reporter: Fernando Meyer Assignee: Arno Unkrig Priority: Blocker When we declare a class using a variable that starts with $ janino raises one ParseException public class Compiler extends Object { public void method() { int i = 0; int $i = 1; } } org.codehaus.janino.Parser$ParseException: File src/org/codehaus/janino/Compiler.java, Line 3, Column 23: Identifier expected at org.codehaus.janino.Parser.throwParseException(Parser.java) at org.codehaus.janino.Parser.readIdentifier(Parser.java) at org.codehaus.janino.Parser.parseFormalParameter(Parser.java) at org.codehaus.janino.Parser.parseFormalParameters(Parser.java) at org.codehaus.janino.Parser.parseConstructorDeclarator(Parser.java) at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java) at org.codehaus.janino.Parser.parseClassBody(Parser.java) at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java) at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java) at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java) at org.codehaus.janino.Compiler.parseCompilationUnit(Compiler.java) at org.codehaus.janino.Compiler.compile(Compiler.java) at org.codehaus.janino.Compiler.compile(Compiler.java) at org.fmeyer.janino.JaninoTest.testSelfCompile(JaninoTest.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) -- 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-107) Janino doesn't handle $variable as variable name[ http://jira.codehaus.org/browse/JANINO-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arno Unkrig resolved JANINO-107. -------------------------------- Resolution: Cannot Reproduce Hi Fernando, hm... your code example compiles fine in my environment. Are you sure you're compiling the piece of code that you want to compile? Strange enough... are you REALLY attempting to compile "src/org/codehaus/janino/Compiler.java", as the exception reports? CU Arno > Janino doesn't handle $variable as variable name > ------------------------------------------------ > > Key: JANINO-107 > URL: http://jira.codehaus.org/browse/JANINO-107 > Project: Janino > Issue Type: Bug > Affects Versions: 2.5.12 > Reporter: Fernando Meyer > Assignee: Arno Unkrig > Priority: Blocker > > When we declare a class using a variable that starts with $ janino raises one ParseException > public class Compiler extends Object > { > public void method() { > int i = 0; > int $i = 1; > } > } > org.codehaus.janino.Parser$ParseException: File src/org/codehaus/janino/Compiler.java, Line 3, Column 23: Identifier expected > at org.codehaus.janino.Parser.throwParseException(Parser.java) > at org.codehaus.janino.Parser.readIdentifier(Parser.java) > at org.codehaus.janino.Parser.parseFormalParameter(Parser.java) > at org.codehaus.janino.Parser.parseFormalParameters(Parser.java) > at org.codehaus.janino.Parser.parseConstructorDeclarator(Parser.java) > at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java) > at org.codehaus.janino.Parser.parseClassBody(Parser.java) > at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java) > at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java) > at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java) > at org.codehaus.janino.Compiler.parseCompilationUnit(Compiler.java) > at org.codehaus.janino.Compiler.compile(Compiler.java) > at org.codehaus.janino.Compiler.compile(Compiler.java) > at org.fmeyer.janino.JaninoTest.testSelfCompile(JaninoTest.java:89) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) -- 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] Reopened: (JANINO-107) Janino doesn't handle $variable as variable name[ http://jira.codehaus.org/browse/JANINO-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arno Unkrig reopened JANINO-107: -------------------------------- > Janino doesn't handle $variable as variable name > ------------------------------------------------ > > Key: JANINO-107 > URL: http://jira.codehaus.org/browse/JANINO-107 > Project: Janino > Issue Type: Bug > Affects Versions: 2.5.12 > Reporter: Fernando Meyer > Assignee: Arno Unkrig > Priority: Blocker > > When we declare a class using a variable that starts with $ janino raises one ParseException > public class Compiler extends Object > { > public void method() { > int i = 0; > int $i = 1; > } > } > org.codehaus.janino.Parser$ParseException: File src/org/codehaus/janino/Compiler.java, Line 3, Column 23: Identifier expected > at org.codehaus.janino.Parser.throwParseException(Parser.java) > at org.codehaus.janino.Parser.readIdentifier(Parser.java) > at org.codehaus.janino.Parser.parseFormalParameter(Parser.java) > at org.codehaus.janino.Parser.parseFormalParameters(Parser.java) > at org.codehaus.janino.Parser.parseConstructorDeclarator(Parser.java) > at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java) > at org.codehaus.janino.Parser.parseClassBody(Parser.java) > at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java) > at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java) > at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java) > at org.codehaus.janino.Compiler.parseCompilationUnit(Compiler.java) > at org.codehaus.janino.Compiler.compile(Compiler.java) > at org.codehaus.janino.Compiler.compile(Compiler.java) > at org.fmeyer.janino.JaninoTest.testSelfCompile(JaninoTest.java:89) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) -- 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] Closed: (JANINO-107) Janino doesn't handle $variable as variable name[ http://jira.codehaus.org/browse/JANINO-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arno Unkrig closed JANINO-107. ------------------------------ Resolution: Fixed Closed due to a lack of feedback. > Janino doesn't handle $variable as variable name > ------------------------------------------------ > > Key: JANINO-107 > URL: http://jira.codehaus.org/browse/JANINO-107 > Project: Janino > Issue Type: Bug > Affects Versions: 2.5.12 > Reporter: Fernando Meyer > Assignee: Arno Unkrig > Priority: Blocker > > When we declare a class using a variable that starts with $ janino raises one ParseException > public class Compiler extends Object > { > public void method() { > int i = 0; > int $i = 1; > } > } > org.codehaus.janino.Parser$ParseException: File src/org/codehaus/janino/Compiler.java, Line 3, Column 23: Identifier expected > at org.codehaus.janino.Parser.throwParseException(Parser.java) > at org.codehaus.janino.Parser.readIdentifier(Parser.java) > at org.codehaus.janino.Parser.parseFormalParameter(Parser.java) > at org.codehaus.janino.Parser.parseFormalParameters(Parser.java) > at org.codehaus.janino.Parser.parseConstructorDeclarator(Parser.java) > at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java) > at org.codehaus.janino.Parser.parseClassBody(Parser.java) > at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java) > at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java) > at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java) > at org.codehaus.janino.Compiler.parseCompilationUnit(Compiler.java) > at org.codehaus.janino.Compiler.compile(Compiler.java) > at org.codehaus.janino.Compiler.compile(Compiler.java) > at org.fmeyer.janino.JaninoTest.testSelfCompile(JaninoTest.java:89) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) -- 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 |
| Free embeddable forum powered by Nabble | Forum Help |