#123: REGISTER-JAVA-EXCEPTION failing ------------------------+--------------------------------------------------- Reporter: ehuelsmann | Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: java | Version: Keywords: | ------------------------+--------------------------------------------------- William writes:
Hi,
I am trying to register Java exceptions using REGISTER-JAVA-EXCEPTION but it does not seem to work for me as evidenced by the transcript below.
Is there anything that I may have missed?
Armed Bear Common Lisp 0.23.1 Java 1.6.0_20 Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM Low-level initialization completed in 0.354 seconds. Startup completed in 1.579 seconds. Type ":help" for a list of available commands. CL-USER(1): (define-condition java-illegal-argument-error (java-exception) ()) JAVA-ILLEGAL-ARGUMENT-ERROR CL-USER(2): (register-java-exception "java.lang.IllegalArgumentException" 'java-illegal-argument-error) NIL
#123: REGISTER-JAVA-EXCEPTION failing -------------------------+-------------------------------------------------- Reporter: ehuelsmann | Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: java | Version: Resolution: | Keywords: -------------------------+--------------------------------------------------
Comment(by ehuelsmann):
With my answer:
I am trying to register Java exceptions using REGISTER-JAVA-EXCEPTION
but it
does not seem to work for me as evidenced by the transcript below.
Is there anything that I may have missed?
Thanks for the report!
No, you haven't missed anything: you found a bug; even though *you* said the condition should be derived from JAVA-EXCEPTION, nothing in the class definition indicates that ever happened. When running your commands in the debugger, I found that the class precedence list is empty. Generally speaking, that's not a good sign :-)
I'll try to look at this report during the coming weekend. I'll also file a ticket to prevent your report from being forgotten.
#123: REGISTER-JAVA-EXCEPTION failing -------------------------+-------------------------------------------------- Reporter: ehuelsmann | Owner: nobody Type: defect | Status: closed Priority: major | Milestone: Component: java | Version: Resolution: fixed | Keywords: -------------------------+-------------------------------------------------- Changes (by mevenson):
* status: new => closed * resolution: => fixed
Comment:
Fixed in r13211 by Alessio as reported in <AANLkTikXn_E_D4RXKN- pNd+EWeyAWKNsV-5=eh=7sQn7@mail.gmail.com>
#123: REGISTER-JAVA-EXCEPTION failing -------------------------+-------------------------------------------------- Reporter: ehuelsmann | Owner: nobody Type: defect | Status: closed Priority: major | Milestone: Component: java | Version: Resolution: fixed | Keywords: -------------------------+--------------------------------------------------
Comment(by mevenson):
err, that would be svn:r13221.
#123: REGISTER-JAVA-EXCEPTION failing -------------------------+-------------------------------------------------- Reporter: ehuelsmann | Owner: nobody Type: defect | Status: closed Priority: major | Milestone: Component: java | Version: Resolution: fixed | Keywords: -------------------------+--------------------------------------------------
Comment(by mevenson):
svn r13221
armedbear-ticket@common-lisp.net