Verifier Related HotSwap Bug [message #64050] |
Sat, 21 June 2003 19:04 |
markusle![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=mle%40neze.de) Messages: 12 Registered: July 2009 |
Junior Member |
|
|
package de.neze.experiments;
/**
* class VerifierRelatedHotSwapBug
* <blockquote>
* Reason:
* Hot code replace failed - verifier detected internal inconsistency
* or security problem
* </blockquote>
*
* Reproduce the meassage with the above reason:
* <ol><li>
* Set an break point to the indecated line below
* </li><li>
* Start this class in the debugger of eclipse (2.1.1 perhap earlier) against
* Suns 1.4.2 beta.
* </li><li>
* edit the line above the break point (without compilation errors)
* </li><li>
* resume the suspended thread: this gives the message noted above.
* </li></ol>
*
* For IBM's JDK 1.4.1 the reason for problems is:
* <blockquote>
* Reason: The target VM does not support hot code replace
* </blockquote>
* Why has IBM's JDK 1,4,1 no hotswap (I believe it has hotswap)?
*
* I detected another hotswap related bug (with a workaround),
* let me know if someody is intressted.
*
* Kind regard
*
* mle
*/
public class VerifierRelatedHotSwapBug {
/**
* class InnerClass
*/
public static class InnerClass {
private InnerClass m_oInnerSubClass;
private final void setInnerSubClass(final InnerSubClass o) {
m_oInnerSubClass = o;
}
}
/**
* class InnerSubClass
*/
public static class InnerSubClass extends InnerClass {
}
/**
* some init
*/
static {
new InnerClass();
// Class oClass = InnerClass.class;
}
/**
* main()
*/
public static void main(String[] arguments) {
System.out.println("Edit this line and hotswap: 1 23456789123456789");
System.out.println("This is the place for your breakboint");
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds