public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20302] New: Problem with sub classes with contructors with exceptions
@ 2005-03-03 17:55 steve at netfuel dot com
  2005-03-03 18:42 ` [Bug java/20302] " steve at netfuel dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: steve at netfuel dot com @ 2005-03-03 17:55 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-20302-5733@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-09 20:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03 17:55 [Bug java/20302] New: Problem with sub classes with contructors with exceptions steve at netfuel dot com
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
     [not found] <bug-20302-5733@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:51 ` tromey at gcc dot gnu dot org

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).