java/9931: default constructors in inner classes

erik.poupaert@chello.be erik.poupaert@chello.be
Tue Mar 4 03:16:00 GMT 2003


>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.poupaert@chello.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:



More information about the Gcc-prs mailing list