-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate removes local var syms from non-mapped classes?
PostPosted: Tue Nov 27, 2007 5:11 pm 
Regular
Regular

Joined: Mon Aug 07, 2006 6:22 pm
Posts: 67
I believe that Hibernate does dynamic bytecode modification of classes specified in the mapping file, correct?

Assuming that's true, is there any possibility that Hibernate could possibly have any impact on other classes that are not specified in the mapping file? I'm seeing a strange symptom in RAD 6 (Eclipse 3.0) where I'm realizing that my class files are losing their LocalVariableTable, which causes the debugger to not know the names of local variables.

I see this symptom appear when I restart my project, which (among other things) causes the Hibernate startup code to execute.

If I manually change the source file and save it, RAD does hot swapping, so it compiles the file and uses the new class file, without having to restart the server (WebSphere). When I do this, it "fixes" the problem. The next time I hit the breakpoint in that source file, all the local variable names are present.

We've added some debugging to RAD that shows detailed events in the Error Log when RAD itself has to recompile classes. When I do a "Restart Project", I see that event, but it only lists some other generated classes, and not the classes I'm trying to debug. However, when I check the timestamp of the class file, and use "javap" to see the LocalVariableTable, I see that the file was just modified (about the time I did the restart project), and "javap" shows that there is no LocalVariableTable.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.