Hi,

I'm trying to create Excel files with jexcelapi:

https://sourceforge.net/projects/jexcelapi/files/jexcelapi

API provides a method of creating Excel fonts which uses instances of a 
non-public inner class:

  public WritableFont(FontName fn,
                      int ps,
                      BoldStyle bs,
                      boolean it,
                      UnderlineStyle us,
                      Colour c)

where BoldStyle is a non-public static inner class of WritableFont.

When I'm in Java, I'm supposed to use the WritableFont.BOLD and 
WritableFont.NO_BOLD constants provided by the WritableFont class to pass 
as the 'BoldStyle bs' parameter:

  new WritableFont(WritableFont.TIMES, 16, WritableFont.BOLD, true); 

This compiles and works Ok in Java, but when I try to execute the Clojure 
equivalent:

 (WritableFont. WritableFont/TIMES 16 WritableFont/BOLD true)

it causes the following exception

java.lang.IllegalAccessError: tried to access class 
jxl.write.WritableFont$BoldStyle from class test.excel$eval775
 at test.excel$eval775.invoke (:1)
    clojure.lang.Compiler.eval (Compiler.java:6511)
    clojure.lang.Compiler.eval (Compiler.java:6477)
    clojure.core$eval.invoke (core.clj:2797)
    clojure.main$repl$read_eval_print__6405.invoke (main.clj:245)
    clojure.main$repl$fn__6410.invoke (main.clj:266)
    clojure.main$repl.doInvoke (main.clj:266)
    clojure.lang.RestFn.invoke (RestFn.java:1096)
    
clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__511.invoke 
(interruptible_eval.clj:58)
    clojure.lang.AFn.applyToHelper (AFn.java:159)
    clojure.lang.AFn.applyTo (AFn.java:151)
    clojure.core$apply.invoke (core.clj:601)
    clojure.core$with_bindings_STAR_.doInvoke (core.clj:1771)
    clojure.lang.RestFn.invoke (RestFn.java:425)
    clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke 
(interruptible_eval.clj:43)
    
clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__552$fn__554.invoke
 
(interruptible_eval.clj:173)
    clojure.core$comp$fn__4034.invoke (core.clj:2278)
    ...

Regards,
Vladimir

-- 
-- 
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/groups/opt_out.


Reply via email to