Return-Path: Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 33693 invoked by uid 500); 28 Jul 2003 17:20:11 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 33659 invoked from network); 28 Jul 2003 17:20:10 -0000 Received: from mail.hometree.net (212.34.181.120) by daedalus.apache.org with SMTP; 28 Jul 2003 17:20:10 -0000 Received: from tangens.hometree.net (IDENT:news@mail.hometree.net [212.34.181.120]) by mail.hometree.net (8.12.9/8.12.8) with ESMTP id h6SHKCR3008907 for ; Mon, 28 Jul 2003 19:20:13 +0200 Received: (from news@localhost) by tangens.hometree.net (8.12.9/8.12.8/Submit) id h6SHKCxT008906 for torque-dev@db.apache.org; Mon, 28 Jul 2003 19:20:12 +0200 To: torque-dev@db.apache.org Path: not-for-mail From: "Henning P. Schmiedehausen" Newsgroups: hometree.jakarta.torque.dev Subject: Re: cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/transform XmlToAppData.java XmlToData.java Date: Mon, 28 Jul 2003 17:20:12 +0000 (UTC) Organization: INTERMETA - Gesellschaft fuer Mehrwertdienste mbH Lines: 46 Message-ID: References: <20030728163336.24074.qmail@icarus.apache.org> Reply-To: hps@intermeta.de NNTP-Posting-Host: forge.intermeta.de X-Trace: tangens.hometree.net 1059412812 8561 212.34.181.4 (28 Jul 2003 17:20:12 GMT) X-Complaints-To: news@intermeta.de NNTP-Posting-Date: Mon, 28 Jul 2003 17:20:12 +0000 (UTC) X-Copyright: (C) 1996-2003 Henning Schmiedehausen User-Agent: nn/6.6.5 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N mpoeschl@apache.org writes: >mpoeschl 2003/07/28 09:33:35 > Modified: src/generator/src/java/org/apache/torque/engine/database/transform > XmlToAppData.java XmlToData.java > Log: > resolveEntity must not throw an IOException as the DefaultHandler method only throws SAXEception > (while the sun compiler accepts this in eclipse i get an error) > so we catch the IOException and throw a SAXException Well, Eclipse gets it wrong: http://xml.apache.org/xerces2-j/javadocs/api/org/xml/sax/EntityResolver.html --- cut --- Method Detail resolveEntity public InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws SAXException, java.io.IOException --- cut --- => so resolveEntity might throw an java.io.IOException. However, the overridden method in DefaultHandler does not, which is fine, because Methods might throw _less_ Exceptions than defined in the Interface. I'd say you've found a bug in Eclipse. Personally, I'd prefer the IO Exception, because the caller can react differently on these errors. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/ Java, perl, Solaris, Linux, xSP Consulting, Web Services freelance consultant -- Jakarta Turbine Development -- hero for hire "You are being far too rational for this discussion." --- Scott Robert Ladd in <3F1874B0.6030507@coyotegulch.com> --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org