Menu

#51 call to static method via object causes compilation failure

All_releases
closed-fixed
5
2004-06-29
2004-06-29
No

See attached Static.java, which compiles fine with
javac. The error is:

File Static.java, Line 10, Column 14: Class method
"foo" cannot be invoked in non-static context

janino version is 2.0.3

Discussion

  • John V Sichi

    John V Sichi - 2004-06-29

    reproduces bug in isolation

     
  • Arno Unkrig

    Arno Unkrig - 2004-06-29
    • status: open --> closed-fixed
     
  • Arno Unkrig

    Arno Unkrig - 2004-06-29

    Logged In: YES
    user_id=865893

    JLS2 15.12.4.1.2.1 was incorrectly considered an error.
    Fixed: Evaluate LHS and discard value.

    Will be released in version 2.0.4.

     

Log in to post a comment.

MongoDB Logo MongoDB