Menu

#12 Problem with super()

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

The following class throws the exception below.

/**
* An exception thrown when there is a configuration
error.
*/
public class ConfigException extends Exception {
public ConfigException() {
super();
}
public ConfigException(String message) {
super(message);
}
}

Exception in thread "main"
net.janino.Parser$ParseException: File /temp/src/com/
mypackage/ConfigException.java, Line 18, Column 15: "."
expected after
"super"
at net.janino.Parser.throwParseException(Unknown
Source)
at net.janino.Parser.parsePrimary(Unknown Source)
at net.janino.Parser.parseUnaryExpression
(Unknown Source)
at net.janino.Parser.parseMultiplicativeExpression
(Unknown Source)
at net.janino.Parser.parseAdditiveExpression
(Unknown Source)
at net.janino.Parser.parseShiftExpression(Unknown
Source)

Discussion

  • Arno Unkrig

    Arno Unkrig - 2003-12-23

    Logged In: YES
    user_id=865893

    Parsing the "super 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