Hi,
In an instance method in child class "veeds.wowza.Module", I want to
call a protected static method "getLogger" in the parent class
"ModuleBase"
At first, I tried
(.... (.getLogger this) ....) which compiled but failed at runtime
java.lang.IllegalArgumentException: No matching field found: getLogger
for class veeds.wowza.Module
then I tried
(.... (. veeds.wowza.Module (getLogger)) ....)
(.... (veeds.wowza.Module/getLogger) ....)
(.... (ModuleBase/getLogger) ....)
but all failed to compile saying
java.lang.NoSuchFieldException: getLogger.
What am I doing wrong?
The entire class looks like this
(ns veeds.wowza.module
(:import
(com.wowza.wms.module ModuleBase IModuleOnApp ))
(:gen-class
:name veeds.wowza.Module
:extends com.wowza.wms.module.ModuleBase
:implements [com.wowza.wms.module.IModuleOnApp]))
; overriding onAppStart in ModuleBase
(defn -onAppStart
""
[this appInstance]
(.info (. veeds.wowza.Module (getLogger)) "onAppStart"))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---