On Wed, 21 Apr 1999, Thomas McKay wrote: > prompt% set o [createRect 0 0 10 10] > java0xc7 > prompt% java::info methods java0xc7 > {equals java.lang.Object} ...... > prompt% rename java0xc7 poly1 > prompt% java::info methods poly1 > java::info: unknown java class or object "poly1" > prompt% java::info methods java0xc7 > {equals java.lang.Object} ...... I thought that if you kept the "poly1" reference in an active Tcl variable it would work but I could be wrong. The main point of being able to rename a command is so that this will work in 1.2 (it did not work in 1.1). package require java set obj [java::new String hello] rename $obj tmp tmp toString (return) hello I will put the problem you are having on my list of "new bugs". later Mo DeJong dejong at cs.umn.edu > Am I missing something? (The values entered at the prompt are passed to > inter.eval()) > > > Moses DeJong wrote: > > > You use the Tcl rename command. From Java code I think you would need to > > do something like. > > > > interp.eval("rename " + fromname + " " + toname); > > > > Mo DeJong > > dejong at cs.umn.edu > > > > On Wed, 21 Apr 1999, Thomas McKay wrote: > > > > > > > > What method do I use to rename the ReflectObject? I can't find it... Is it > > > associated with TclObject.stringRep? > > > > > > > > > Moses DeJong wrote: > > > > > > > > > > > I am not sure if this is exactly what you are asking but there is a > > > > new feature/bug fix in Jacl 1.2.2 which lets you rename the java0x > > > > instance command to something else (like rect0x or whatever). > > > > > > > > ---------------------------------------------------------------- The TclJava mailing list is sponsored by WebNet Technologies. To subscribe: send mail to [EMAIL PROTECTED] with the word SUBSCRIBE as the subject. To unsubscribe: send mail to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the subject. To send to the list, send email to '[EMAIL PROTECTED]'. A list archive is at: http://www.findmail.com/listsaver/tcldallas/