Re: [tcljava-dev] TclBlend:Problem in importing static inner java class
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2008-12-03 19:59:07
|
Namita Jain wrote: > > Hi, > > I am trying to import a *static inner java class *in my TclBlend > script * *using the following syntax: > > *java::import static packageX.OuterClass\$InnerClass* > > But I am getting the following error > > Unable to import the inner class. I guess it may be because the inner > class is static I can't remove this modifier (static) so is there any > other way in which I can achieve this import? There is no "static" keyword for the java::import command. The way it should work is to just pass the whole name of the inner class, like so: java::import *packageX.OuterClass.InnerClass That should work, but it is likely a test case that was not checked. Please let me know if that works, and post the exact error if it does not. Mo DeJong * |