Revision: 5344 http://jnode.svn.sourceforge.net/jnode/?rev=5344&view=rev Author: crawley Date: 2009-04-25 03:23:02 +0000 (Sat, 25 Apr 2009)
Log Message: ----------- Don't panic if getMethod finds a bad ccid. This seems to happen if an exception is created while a 'native' method call is on the stack, which is not necessariuly a panic-worthy scenario ... Modified Paths: -------------- trunk/core/src/core/org/jnode/vm/VmStackReader.java Modified: trunk/core/src/core/org/jnode/vm/VmStackReader.java =================================================================== --- trunk/core/src/core/org/jnode/vm/VmStackReader.java 2009-04-24 08:47:22 UTC (rev 5343) +++ trunk/core/src/core/org/jnode/vm/VmStackReader.java 2009-04-25 03:23:02 UTC (rev 5344) @@ -68,7 +68,12 @@ } else { final VmCompiledCode cc = Vm.getCompiledMethods().get(ccid); if (cc == null) { - Unsafe.die("Unknown ccid found on stack"); + // (This can happen if an exception is thrown while a frame + // for a 'native' method call is on the stack. A panic is not a + // good idea. It is better to generate a stack trace with a missing + // method name.) + + // Unsafe.die("Unknown ccid found on stack"); return null; } else { return cc.getMethod(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Jnode-svn-commits mailing list Jnode-svn-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits