participate


Java Virtual Machine (JVM) - VM supporting "real" hot swap through JPDA (VirtualMachine#canAddMethod)
<<   Back to Forum  |   Give us Feedback
This topic has 2 replies on 1 page.
aschorle
Posts:496
Registered: 3/6/02
VM supporting "real" hot swap through JPDA (VirtualMachine#canAddMethod)   
Jun 16, 2004 4:12 PM

 
Hi,

as far as I can see the latest sun VMs (both 1.4.x and 1.5.x) do not support "real" hot swap (e.g. adding new methods to a class, implementing a new interface etc.)

it seems to me that this feature is dependant on the VM implementation.

So my question is: Is there a VM around which provides this feature ?

I am asking because I want to use the full hot swap features in the myEclipse workbench, but whenever I'm doing anything that changes the class structure (even adding private methods !!!) myEclipse will tell me that hotswap failed.

Thanks & best regards
Aschorle

PS: I guess the following methods should return true:

http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/com/sun/jdi/VirtualMachine.html#canAddMethod
http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/com/sun/jdi/VirtualMachine.html#canUnrestrictedlyRedefineClasses()
 
aschorle
Posts:496
Registered: 3/6/02
Re: VM supporting "real" hot swap through JPDA (VirtualMachine#canAddMethod)   
Jun 18, 2004 3:06 AM (reply 1 of 2)  (In reply to original post )

 
FYI - reposted this question in "Debugging Tools and Techniques"

http://forum.java.sun.com/thread.jsp?forum=47&thread=531641
 
AmenoDesert
Posts:94
Registered: 11/13/01
Re: VM supporting "real" hot swap through JPDA (VirtualMachine#canAddMethod)   
Jul 2, 2004 5:03 AM (reply 2 of 2)  (In reply to #1 )

 
I've got the same question.

I'm using j2sdk1.4.2_04 and the canAddMethod method is returning false.

Could it be there is a difference in return value when I lauch the remote VM using the CommandLineLaunch connector instead of the AttachingConnector?

If someone can give more information about the subject, please do so.

Kind regards,
 
This topic has 2 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 28
  • Guests : 133

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums