Welcome Guest  |  Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1987 times and has 4 replies Next Thread
Male alxkid
Newbie




Joined: Aug 10, 2006
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
confused Debug in netbeans after having enhanced classes

Hi,

I was wondering if someone has already used the debug tool on Netbeans 5 after having enhanced his JDO classes ?

It seems that the generated classes (classes that I enhance) in the build folder are not those use at runtime when debuging... is that true ? if so, is there a solution ?

thanks,
alex
[Aug 10, 2006 5:44:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male erik
Expert
Member's Avatar

Belgium
Joined: Mar 12, 2004
Post Count: 2991
Status: Offline
Reply to this Post  Reply with Quote 
Re: Debug in netbeans after having enhanced classes

The enhanced class has new methods, but does not have source code associated, so you cannot see the source code for code added by the enhancer.
----------------------------------------
Erik Bengtson


[Aug 11, 2006 11:31:09 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male alxkid
Newbie




Joined: Aug 10, 2006
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
shock Re: Debug in netbeans after having enhanced classes

thanks Eric,

is it a solution to write by myself the methods added by the enhancer? If so, do you know where I could find a description of what the enhancer does exactly in the compiled classes?

alex
[Aug 21, 2006 11:54:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male andy
Expert
Member's Avatar

UK
Joined: Mar 13, 2004
Post Count: 5686
Status: Offline
Reply to this Post  Reply with Quote 
Re: Debug in netbeans after having enhanced classes

is it a solution to write by myself the methods added by the enhancer?

It's a solution .... if you have a medical condition and it causes you to punish yourself
If so, do you know where I could find a description of what the enhancer does exactly in the compiled classes?

The JDO2 spec, where else ? Or maybe just decompile the enhanced classes using a Java class decompiler (there are plenty)
----------------------------------------
-Andy smile

[Aug 21, 2006 12:14:11 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male dhalyk
Newbie



Canada
Joined: Apr 7, 2010
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Debug in netbeans after having enhanced classes

The problem is that it makes it more difficult to debug exceptions, a stack trace will say "Unknown Source" so you know which method it happened in but not the line. This is a weak link in the whole "enhancement" process, I think "mangling" would be a more appropriate name.
[May 21, 2010 4:49:08 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread