#67 Proxy with a constant matching the class name won't compile

open
nobody
None
5
2009-07-30
2009-07-30
No

A Java class is allowed to have a constant with the same name as the class itself. For example:

public class ABC {
public static final int ABC = 1;
}

In this case, Jace produces a proxy with an ABC() method for obtaining the constant value, but the compiler mistakes the ABC() method for a constructor signature and produces an error.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks