This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java/4865: gcj seg-faults on malformed source



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]