public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "steve at netfuel dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/20302] New: Problem with sub classes with contructors with exceptions Date: Thu, 03 Mar 2005 17:55:00 -0000 [thread overview] Message-ID: <20050303173059.20302.steve@netfuel.com> (raw) 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
next reply other threads:[~2005-03-03 17:31 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-03-03 17:55 steve at netfuel dot com [this message] 2005-03-03 18:42 ` [Bug java/20302] " steve at netfuel dot com 2005-03-03 19:31 ` steve at netfuel dot com 2005-03-03 21:59 ` steve at netfuel dot com 2005-03-03 22:17 ` pinskia at gcc dot gnu dot org 2005-03-03 22:18 ` steve at netfuel dot com 2005-06-30 5:21 ` tromey at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050303173059.20302.steve@netfuel.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).