This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/173: Compiler crash on (illegal) attempt to create inner class from static context
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/173: Compiler crash on (illegal) attempt to create inner class from static context
- From: bryce at albatross dot co dot nz
- Date: 14 Mar 2000 10:48:36 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>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: