This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
java/9931: default constructors in inner classes
- From: erik dot poupaert at chello dot be
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Mar 2003 03:09:12 -0000
- Subject: java/9931: default constructors in inner classes
- Reply-to: erik dot poupaert at chello dot be
>Number: 9931
>Category: java
>Synopsis: default constructors in inner classes
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 04 03:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: erik dot poupaert at chello dot be
>Release: 3.3
>Organization:
>Environment:
minGW
>Description:
The inner class:
public static class State
{
public final static State INITIAL = new State();
}
fails to compiler; I have to add a default constructor manually:
public static class State
{
public State() {}
public final static State INITIAL = new State();
}
>How-To-Repeat:
Create an inner class that invokes the default constructor
>Fix:
Institute the default constructors for inner classes
>Release-Note:
>Audit-Trail:
>Unformatted: