Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#123 closed defect (fixed)

REGISTER-JAVA-EXCEPTION failing

Reported by: ehuelsmann Owned by: nobody
Priority: major Milestone:
Component: java Version:
Keywords: Cc:
Parent Tickets:

Description

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

Change History (4)

comment:1 Changed 11 years ago 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.

comment:2 Changed 11 years ago by Mark Evenson

Resolution: fixed
Status: newclosed

Fixed in r13211 by Alessio as reported in <AANLkTikXn_E_D4RXKN-pNd+EWeyAWKNsV-5=eh=7sQn7@…>

comment:3 Changed 11 years ago by Mark Evenson

err, that would be svn:r13221.

comment:4 Changed 11 years ago by Mark Evenson

svn r13221

Note: See TracTickets for help on using tickets.