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

bryce@albatross.co.nz bryce@albatross.co.nz
Tue Mar 14 02:50:00 GMT 2000


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


More information about the Java-prs mailing list