[Bug 494] New: Shark fails to catch java.lang.NullPointerException using catch (Throwable e)
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Tue May 18 04:23:49 PDT 2010
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=494
Summary: Shark fails to catch java.lang.NullPointerException
using catch (Throwable e)
Product: IcedTea
Version: 6-hg
Platform: all
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Shark
AssignedTo: unassigned at icedtea.classpath.org
ReportedBy: xerxes at zafena.se
Testcase:
cd openjdk/hotspot/test/compiler/6741738
javac Tester.java
java -Xcomp -XX:CompileOnly=Tester.foo Tester
Output:
Exception in thread "main" java.lang.NullPointerException:
at Tester.foo(Tester.java:39)
at Tester.main(Tester.java:48)
Observations:
Changing the testcase to catch (Exception e) instead of catch (Throwable e)
makes Shark pass the testcase so it looks like shark are unable to catch
Exceptions using catch (Throwable e) despite the fact[1] that Exception are a
subclass of Throwable. [1] ref:
http://journals.ecs.soton.ac.uk/java/tutorial/java/exceptions/throwable.html
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the distro-pkg-dev
mailing list