From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1574 invoked by alias); 3 Mar 2005 17:31:42 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 823 invoked by uid 48); 3 Mar 2005 17:31:11 -0000 Date: Thu, 03 Mar 2005 17:55:00 -0000 From: "steve at netfuel dot com" To: java-prs@gcc.gnu.org Message-ID: <20050303173059.20302.steve@netfuel.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/20302] New: Problem with sub classes with contructors with exceptions X-Bugzilla-Reason: CC X-SW-Source: 2005-q1/txt/msg00582.txt.bz2 List-Id: GCJ does not handle compilation of sub classes with out explicitly defined constructors to override the super class constructors when the constructors throw exceptions. [steve@helios steve]$ gcj Test.java -c Test.o Test.java: In class 'Test$1': Test.java: In constructor '(Test,java.io.ByteArrayInputStream)': Test.java:9: error: Exception 'java.io.IOException' must be caught, or it must be declared in the 'throws' clause of 'Test$1'. ObjectInputStream in = new ObjectInputStream(is) ^ Test.java:9: error: Exception 'java.io.StreamCorruptedException' must be caught, or it must be declared in the 'throws' clause of 'Test$1'. ObjectInputStream in = new ObjectInputStream(is) ^ 2 errors [steve@helios steve]$ gcj Test2.java -c Test2.o Test2.java: In class 'Test2': Test2.java: In constructor '()': Test2.java:3: error: Exception 'java.io.IOException' must be caught, or it must be declared in the 'throws' clause of 'Test2'. class Test2 extends ObjectInputStream ^ 1 error -- Summary: Problem with sub classes with contructors with exceptions Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: steve at netfuel dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20302