This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
silly newbie question about inner classes
- From: john whittaker <john dot whittaker at sbcglobal dot net>
- To: kawa at sourceware dot org
- Date: Fri, 2 Nov 2007 04:49:13 +0000
- Subject: silly newbie question about inner classes
I apologize if this is a really silly question. I'm new to both Kawa and
Java, so I may not even be asking the question correctly.
Suppose I want to create an instance of an inner class such as
javax.swing.text.html.HTMLEditorKit.ParserCallback. I cannot seem to do this
in Kawa. Here is an example of the simple-minded thing I tried:
#|kawa:16|# (javax.swing.text.html.HTMLEditorKit.ParserCallback:new)
/dev/stdin:16:2: unbound location
javax.swing.text.html.HTMLEditorKit.ParserCallback
at gnu.expr.ReferenceExp.apply(ReferenceExp.java:136)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:251)
at gnu.mapping.CallContext.getFromContext(CallContext.java:280)
at gnu.expr.Expression.eval(Expression.java:24)
at gnu.expr.ApplyExp.apply(ApplyExp.java:63)
at gnu.kawa.functions.GetNamedExp.apply(GetNamedPart.java:351)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:251)
at gnu.mapping.CallContext.getFromContext(CallContext.java:280)
at gnu.expr.Expression.eval(Expression.java:24)
at gnu.expr.ApplyExp.apply(ApplyExp.java:63)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:205)
at kawa.Shell.run(Shell.java:230)
at kawa.Shell.run(Shell.java:172)
at kawa.Shell.run(Shell.java:159)
at kawa.repl.main(repl.java:844)
Is there some way to create a subclass of HTMLEditorKit.ParserCallback in
Kawa?
Again, apologies if this is way too simple of a question for this mailing
list.
Thanks,
John Whittaker