This is the mail archive of the java-prs@sourceware.cygnus.com 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]

gcj/173: Compiler crash on (illegal) attempt to create inner class from static context



>Number:         173
>Category:       gcj
>Synopsis:       Compiler crash on (illegal) attempt to create inner class from static context
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 14 02:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bryce McKinlay
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
// jc1 (2.96 20000313) ice

public class Scope1
{
  public static void main(String args[])
  {
    new A();  // Illegal to create inner class from static context.
  }
  
  class A
  {
    A() {}
  }  
}
>How-To-Repeat:
Try to compile the test case
>Fix:
It should display a nice error message
>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]