EJP wrote:Not sure what scenario you are referring to.
Well an application couldn't actually do that without a hardware fault.
Not sure what scenario you are referring to.I'm referring to the scenario of another application 'running amok' and overwriting the JVM' constant pool. The one you introduced. Which in general requires either the co-operation of the OS, as per the debugging API you cited, or a virtual memory hardware fault.