public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/9931: default constructors in inner classes
@ 2003-05-03  1:58 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2003-05-03  1:58 UTC (permalink / raw)
  To: erik.poupaert, gcc-bugs, gcc-prs, java-prs, nobody, tromey

Synopsis: default constructors in inner classes

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sat May  3 01:58:22 2003
Responsible-Changed-Why:
    I'm handling this
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Sat May  3 01:58:22 2003
State-Changed-Why:
    I tried this program:
    public class z
    {
    public static class State
    {
       public final static State INITIAL = new State();
    }
    }
    
    This compiled fine.  When I look at the z.State
    class with jcf-dump, it also looks ok.
    
    Does this fail for you?  If not, and if something
    still fails, please upload a complete test case.
    
    I used the current 3.3 branch compiler.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9931


^ permalink raw reply	[flat|nested] 2+ messages in thread

* java/9931: default constructors in inner classes
@ 2003-03-04  3:16 erik.poupaert
  0 siblings, 0 replies; 2+ messages in thread
From: erik.poupaert @ 2003-03-04  3:16 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-03  1:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-03  1:58 java/9931: default constructors in inner classes tromey
  -- strict thread matches above, loose matches on Subject: below --
2003-03-04  3:16 erik.poupaert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).