|
From: Gilbert C. H. II <gc...@mi...> - 2001-08-25 17:26:42
|
At 01:09 PM 8/25/01 -0400, I wrote: >Exceptions need to be thrown from machine code, too. I felt that I was >pretty close to a solution. I once thought I was pretty close to a solution. But nothing I have designed so far will work! I'm pretty sure your C++ code should be able to construct an exception (java/lang/Throwable) without interpreting bytecode. I'm sure we don't need 30+ classes in C++ to handle exceptions. I don't want to use C++ exception handling! Then, I thought that--since throwing an exception works in bytecode--maybe I should assume the C++ code will always invoke bytecode to throw an exception. Anything that can be handled in bytecode should be, right? A factory class in Java could be designed to throw standard exceptions. Maybe? I don't know. |