From mboxrd@z Thu Jan 1 00:00:00 1970 From: jddahl@micron.com To: gcc-gnats@gcc.gnu.org Subject: libgcj/2737: User-defined thrown exception is not found Date: Fri, 04 May 2001 08:06:00 -0000 Message-id: <20010504145938.29938.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00136.html List-Id: >Number: 2737 >Category: libgcj >Synopsis: User-defined thrown exception is not found >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri May 04 08:06:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: jddahl@micron.com >Release: unknown-1.0 >Organization: >Environment: Redhat 6.2 >Description: ERROR: /u/jddahl/java/sources/test/core/LotNumber.java:28: Class `InitializationException' not found in `throws'. public LotNumber( String lot ) throws InitializationException MAKEFILE: # macro definitions MAKE = /usr/ucb/gmake GCJ = /usr/jddahl/jcc/bin/gcj OBJECTS = /u/jddahl/java/objects_linux SOURCES = /u/jddahl/java/sources OPATH = $(OBJECTS)/test/core SPATH = $(SOURCES)/test/core CLASSPATH = -classpath .:$(OBJECTS):$(SOURCES) # program file $(OPATH)/LotNumber.o: $(OPATH)/InitializationException.o $(SPATH)/LotNumber.java $(GCJ) -c -o $(OPATH)/LotNumber.o $(SPATH)/LotNumber.java $(OPATH)/InitializationException.o: $(SPATH)/InitializationException.java $(GCJ) -c -o $(OPATH)/InitializationException.o $(SPATH)/InitializationException.java # $(MAKE) -f $(SPATH)/InitializationException.mak JAVA FILE: public class LotNumber { public LotNumber( String lot ) throws InitializationException { ... The InitializationException class is in the same package and directory as the LotNumber class. How do I include the InitializationException.o in the new LotNumber.o other than as a prerequisite. >How-To-Repeat: Seems any user=defined exception that is thrown may not be included. >Fix: >Release-Note: >Audit-Trail: >Unformatted: