On Apr 3, 10:33 am, Paul Drummond <paul.drumm...@iode.co.uk> wrote:
> The following works - note ActionListener is fully qualified:
>
> -----
> user=> (.addActionListener (javax.swing.JButton.)
>                     (proxy [java.awt.event.ActionListener] []
>                       (actionPerformed [evt]
>                                        (println "button press"))))
> nil
> -----
> If I remove the package name I get a NullPointerException:
>
> -----
> user=> (.addActionListener (javax.swing.JButton.)
>                     (proxy [ActionListener] []
>                       (actionPerformed [evt]
>                                        (println "button press"))))
> java.lang.NullPointerException (NO_SOURCE_FILE:161)
> user=>
> ------
>
> Of course, I haven't imported ActionListener so I wouldn't expect it
> to evaluate without error - I just wasn't expecting a
> NullPointerException.
>

Could you please submit an issue for that one?

Thanks,

Rich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to