This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]