This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
default constructor in inner class
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: <java at gcc dot gnu dot org>
- Date: Fri, 28 Feb 2003 17:59:17 +0100
- Subject: default constructor in inner class
I've just bumped into this issue with GCJ 3.3.
SableCc defines an inner class which as no constructor:
public static class State
{
public final static State INITIAL = new State();
}
GCJ complains about this, and requires me to modify the template from which
it is generated, and institute explicitly an empty default constructor:
public static class State
{
public State() {}
public final static State INITIAL = new State();
}
This piece of code comes from SableCc-2.16.2, which is a very stable
release.
Should I submit a trouble ticket for this?