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