java/4865: gcj seg-faults on malformed source
msmith@spinnakernet.com
msmith@spinnakernet.com
Fri Nov 2 03:17:00 GMT 2001
>Number: 4865
>Category: java
>Synopsis: gcj seg-faults on malformed source
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Nov 13 06:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Michael Smith
>Release: 3.0.2
>Organization:
Spinnaker Networks
>Environment:
System: Linux msmith 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure
>Description:
Inadvertantly leaving out the "class" keyword on an inner class causes seg fault.
>How-To-Repeat:
Attampt to compile the following (Bug.java):
public class Bug {
private static InnerClassWithoutClassKeyword {
}
}
>Fix:
add the class keyword (i.e. fix the syntax). If the source of the problem is unknown (i.e. user doesn't know which class), compile with another java compiler (e.g. sun's javac compiler or IBM's jikes).
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list