This is with Java 5. If I use the javaagent as you described, the test passes. If I omit the javaagent entirely, the test fails (because the m:m field is null).
I presume I'm using field enhancement though I haven't gone out of my way to specify that... the class uses field access (not property access) anyway. Nick On Tue, 6 Nov 2007, Patrick Linskey wrote: > Hi, > > Are you using Java 5 or 6? If 5, what happens if you run the javaagent > with the ClassLoadEnhancement flag set to false [1]? Are you using > field or property enhancement? > > [1] java -javaagent:foo.jar=ClassLoadEnhancement=false ... > > -Patrick > > On Nov 5, 2007 6:51 PM, Nick Johnson <[EMAIL PROTECTED]> wrote: > > Just a tidbit more information here... I just discovered that it works OK > > if I specify a javaagent when running my unit test, so it looks like the > > trouble has something to do with enhancing versus not enhancing. > > > > On Mon, 5 Nov 2007, Nick Johnson wrote: > > > > > It's probably just something I'm not seeing... > > [snip] > > > > > > -- > > "Courage isn't just a matter of not being frightened, you know. It's being > > afraid and doing what you have to do anyway." > > Doctor Who - Planet of the Daleks > > This message has been brought to you by Nick Johnson 2.3b1 and the number 6. > > http://healerNick.com/ http://morons.org/ http://spatula.net/ > > > > > > -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/
