A friend of mine delivers Java applets and since his clients moved to Java 7, they started running into this issue: validateTree in Java 7.x doesnt work (in Java 6.x was fine)
The solution seems to be to wrap the call to validateTree
as in:
synchronized(getTreeLock()) {
validateTree();
}
I do not have the source .java file.
- Is there a Java ByteCode Editor+Decompiler that would let me edit in those lines in plain-text Java?
- If I do have to edit the .class file in bytecode, what are the instructions?
My view of the file with jd-gui
(which does not let me edit the file though):
public final class XApplet extends JApplet
implements ActionListener
public void init()
{
...
validateTree();
}