This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC 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]

java/9931: default constructors in inner classes


>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:


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