public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20312] New: No warning on bad method
@ 2005-03-04 15:33 davidw at dedasys dot com
  2005-03-05 16:33 ` [Bug java/20312] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: davidw at dedasys dot com @ 2005-03-04 15:33 UTC (permalink / raw)
  To: java-prs

Hi, in the Hecl programming language, I do this:

    public String toString() throws HeclException {
	Vector v = ListThing.get(new Thing(new HashThing(val)));
	ListThing newthing = new ListThing(v);
	return newthing.toString();
    }

Apparently, that should generate a warning or throw an error, because toString
isn't supposed to throw an exception...  "regular" java says this:

./com/dedasys/hecl/HashThing.java:140: toString() in com.dedasys.hecl.HashThing
cannot override toString() in java.lang.Object; overridden method does not throw
com.dedasys.hecl.HeclException
    public String toString() throws HeclException {
                  ^

Thanks,
Dave

-- 
           Summary: No warning on bad method
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: davidw at dedasys 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=20312


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

end of thread, other threads:[~2007-01-30  1:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-04 15:33 [Bug java/20312] New: No warning on bad method davidw at dedasys dot com
2005-03-05 16:33 ` [Bug java/20312] " pinskia at gcc dot gnu dot org
2005-03-11  7:29 ` rmathew at gcc dot gnu dot org
2005-03-11  9:16 ` cvs-commit at gcc dot gnu dot org
2005-03-12  5:36 ` pinskia at gcc dot gnu dot org
2005-04-21  9:05 ` bothner at gcc dot gnu dot org
2005-07-21  0:28 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20312-10209@http.gcc.gnu.org/bugzilla/>
2007-01-30  1:53 ` daney 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).