(script.env/def-ns script.ParenMatcher
  (:gen-class
    :implements [org.eclipse.jface.text.source.ICharacterPairMatcher]
    :state state
    :init init
    :methods [[setPainter
[org.eclipse.jface.text.source.MatchingCharacterPainter] void]])
  (:use script.genutils)
  (:import
    (org.eclipse.swt SWT)
    (org.eclipse.jface.text IDocument Region)
    (org.eclipse.swt.widgets Display)
    (java.lang Exception)
    (jasko.tim.lisp.util LispUtil)))

returns this error.
 java.lang.IllegalAccessError: script.env/defedfn is not public
(NO_SOURCE_FILE:1363)



Then, script.env is
(ns script.env
 (:use [script.genutils] clojure.contrib.with-ns)
 (:import
   (org.eclipse.ui PlatformUI IWorkbench IWorkbenchWindow
IWorkbenchPage)
   (jasko.tim.lisp.editors LispEditor)))

(defmacro prog1 [& body]
  " (prog1 forms*)
    Evaluates all the forms, returning the result of the first form"
  `(let [result# ~(first body)]
     ~@(rest body)
     result#))

(defmacro def-ns [& args]
 `(prog1
    (ns ~...@args)
    (with-ns '~(first args)
      (def ~'*env* (atom nil))
      (use
        '[script.env
          :only (defedfn with-env get-workbench get-active-workbench-
window get-active-page
                  get-active-editor with-aui with-ui cdefn bind-env
                  create-env-if-empty create-env env get-env set-
env)]))) )


The error occures when trying to do the use. However, when i just
paste the use statement onto the repl whil in
the script.ParenMatcher class, it works fine. I'm lost! What's
Happening?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to