Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 23883 invoked from network); 5 Jan 2002 04:20:32 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Jan 2002 04:20:32 -0000 Received: (qmail 5745 invoked by uid 97); 5 Jan 2002 04:20:41 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 5729 invoked by uid 97); 5 Jan 2002 04:20:40 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 5718 invoked from network); 5 Jan 2002 04:20:40 -0000 X-Authentication-Warning: smtp3.ihug.com.au: Host p191-apx1.syd.ihug.com.au [203.173.140.191] claimed to be expresso.localdomain Date: Sat, 5 Jan 2002 15:22:51 +1100 From: Jeff Turner To: Jakarta Commons Developers List Subject: Re: byte b = 'a'; not allowed Message-ID: <20020105152251.B4843@socialchange.net.au> References: <20020105035328.17805.cpmta@c006.snv.cp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020105035328.17805.cpmta@c006.snv.cp.net> User-Agent: Mutt/1.3.23i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, Jan 04, 2002 at 07:53:28PM -0800, otisg@ivillage.com wrote: > Interesting, I never saw this, even though I used jikes (1.15). Ah.. when I try to "exploit" the bug with an 8-bit character, javac throws an error: Test.java:3: possible loss of precision found : char required: byte byte x = '�'; ^ 1 error So it looks like it's my old version of jikes (1.13). I'll upgrade and try again. > However, I do get this warning below. It is just a warning, but... > > > compile: > [javac] Compiling 29 source files to /home/otis/cvs-repositories/jakarta/jakarta-commons/httpclient/target/classes > [javac] > [javac] Issued 1 semantic warning compiling "/home/otis/cvs-repositories/jakarta/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/log/SimpleLog.java": > [javac] > [javac] 103. } catch(Throwable t) { > [javac] <---------> > [javac] *** Caution: This try block cannot throw a "checked exception" (JLS section 14.7) that can be caught here. You may have intended to catch a RuntimeException instead of an Exception. > [copy] Copying 3 files to /home/otis/cvs-repositories/jakarta/jakarta-commons/httpclient/target/classes Yes, that's from a block of code: try { } catch(Throwable t) { // ignored } Looks like the "try {" is misplaced. --Jeff > BUILD SUCCESSFUL > > > Otis > > -- To unsubscribe, e-mail: For additional commands, e-mail: