Menu

#14 Problem with this()

closed
5
2003-12-23
2003-12-22
No

This might be the same issue as "Problem with super()"

It doesn't like the this() constructor:

public MyClass() {
this(10);
}

public MyClass(int length) {
}

MyClass.java, Line 57, Column 23: Opening parenthesis
expected
at net.janino.Parser.throwParseException(Unknown
Source)
at net.janino.Parser.parseArguments(Unknown
Source)
at net.janino.Parser.parseConstructorDeclarator
(Unknown Source)
at net.janino.Parser.parseClassBodyDeclaration
(Unknown Source)

Discussion

  • Arno Unkrig

    Arno Unkrig - 2003-12-23

    Logged In: YES
    user_id=865893

    Parsing the "alternate constructor invocation" was broken
    since version 0.2.0. Fixed.
    Will be release in version 1.0.7.

     
  • Arno Unkrig

    Arno Unkrig - 2003-12-23
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB