On Friday, February 27, 2015 at 12:51:45 PM UTC-5, Cecil Westerhof wrote:
>
> 2015-02-27 17:30 GMT+01:00 Dave Ray <dav...@gmail.com <javascript:>>:
>
>> (let [^JEditorPane html-table (editor-pane ...)] ...)  should fix it. Or 
>> just set the caret position in the create function:
>>
>
> ​I have removed all my warnings by using: ^JEditorPane, ^JFrame​
>  
> ​, …
> But I always like to check deeper. On one of the places I have now:
>     ^JLabel (text …
>
> lein check gives no warning, neither does lein compile. And lein run just 
> runs the application. Is that not strange? I say that a JTextField is a 
> JLabel, but the application does not choke on it.​
>

If you are only calling methods on the object that exist in those classes' 
common superclass JComponent, then nothing is likely to go wrong. If you 
call a JLabel specific method on an object that's actually a JTextField 
that Clojure merely *thinks* is a JLabel, you'll get a ClassCastException 
at runtime. 

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to