From: Andras S. <as...@ma...> - 2005-11-06 18:52:13
|
On Fri, 4 Nov 2005, Peter Graves wrote: > > There's a fundamental (and, I think, necessary) schizophrenia in ABCL's > condition system: conditions defined in the *.java source files are > instanceof Condition, but conditions defined by DEFINE-CONDITION are > normal STANDARD-OBJECTs. > Is this the reason for the following? CL-USER(1): (define-condition throwable (java-exception) ()) THROWABLE CL-USER(2): (register-java-exception "java.lang.Throwable" 'throwable) T CL-USER(3): (handler-case (jnew (jconstructor "java.lang.String" "java.lang.String") (make-immediate-object nil :ref)) (throwable (c) c)) #<THROWABLE {F1CDFB}> CL-USER(4): (java-exception-cause *) Debugger invoked on condition of type TYPE-ERROR: The value #<THROWABLE {F1CDFB}> is not of type JAVA-EXCEPTION. Restarts: 0: TOP-LEVEL Return to top level. [1] CL-USER(5): :res CL-USER(6): (typep * 'java-exception) T CL-USER(7): That there is an error is fine, since I haven't updated Java.java. (I plan to do that soon, by the way.) But the message is quite misleading. Andras |