Menu

#19 Errors when method and variable have same name

closed-fixed
5
2004-01-02
2004-01-01
No

To duplicate, uncomment test1 in the attached
MiscTests file.

net.janino.Java$CompileException: File C:\apps\janino-
1.0.7\tests\src\MiscTests.java, Line 19, Column 22:
Method name "size" cannot be used in this context

Discussion

  • Arno Unkrig

    Arno Unkrig - 2004-01-01
    • status: open --> pending-works-for-me
     
  • Arno Unkrig

    Arno Unkrig - 2004-01-01

    Logged In: YES
    user_id=865893

    The attachment "MiscTests" is missing. Can't reproduce the
    problem without that file.

    The CompileException that you describe should only appear
    when you write a method name without an immediately
    following "(", e.g.

    pkg1.pkg2.clazz.var.var.method(...

     
  • Chris Cleveland

    Chris Cleveland - 2004-01-01
    • status: pending-works-for-me --> open-works-for-me
     
  • Chris Cleveland

    Chris Cleveland - 2004-01-01
     
  • Arno Unkrig

    Arno Unkrig - 2004-01-01
    • status: open-works-for-me --> pending-works-for-me
     
  • Arno Unkrig

    Arno Unkrig - 2004-01-02

    Logged In: YES
    user_id=865893

    Removed unnecessary check for "TYPE.METHOD" and
    "EXPRESSION.METHOD" in "AmbiguousName.uncachedReclassify()".
    (Method invocations are already identified in
    "Parser.parsePrimary()".)

    Will release in 1.0.9.

     
  • Arno Unkrig

    Arno Unkrig - 2004-01-02
    • status: pending-works-for-me --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB