From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30798 invoked by alias); 4 Mar 2005 08:20:07 -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 30217 invoked by uid 48); 4 Mar 2005 08:19:06 -0000 Date: Fri, 04 Mar 2005 15:33:00 -0000 From: "davidw at dedasys dot com" To: java-prs@gcc.gnu.org Message-ID: <20050304081857.20312.davidw@dedasys.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/20312] New: No warning on bad method X-Bugzilla-Reason: CC X-SW-Source: 2005-q1/txt/msg00601.txt.bz2 List-Id: 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