Menu

#46 static references to

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

Compiles under javac, fails under Janino:

public class TestJanino {
public TestJanino test1() {
return TestJanino.this;
}
}

Discussion

  • Arno Unkrig

    Arno Unkrig - 2004-02-03

    Logged In: YES
    user_id=865893

    Loosely speaking, "qualified this" is a feature related to
    inner classes, and inner classes are not (fully) supported
    by JANINO. Strictly speaking, your example shows that
    "qualified this" can also be used for the 0th enclosing
    instance. Bummer.

    Fixed in 1.0.21.

     
  • Arno Unkrig

    Arno Unkrig - 2004-02-03
    • summary: static references to "this" --> static references to
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB