Re: JDI Object creation
Nathan Fiedler <[email protected]> 03 Dec 2003 08:55:47 -0800
| Newsgroups | gmane.comp.java.jswat.devel |
|---|---|
| Organization | Blue Marsh Softworks |
| Message-ID | <1070470547.15496.5.camel@nuts> |
To my knowledge it is not possible to do in a general purpose manner. If it were a field and not a local variable, and if there were only one thread acting on the object, then you could do it in a rather indirect fashion. n On Wed, 2003-12-03 at 02:40, Joshi Jyoti wrote: > How can I get object name of recently created object > using JDI. > Ex. My code has following line : > > TestA testA = new TestA(); > > Method entry event for method (<init>) will be > triggered. But how can I get the name of object that > is created by this method, 'testA'... > > Pls help...