4 ms·
The linked problem goes far past the result object being unstable though - namely, with it you can affect any string in any class file that the JVM loads in the
by dzaima 3y ago
The linked problem goes far past the result object being unstable though - namely, with it you can affect any string in any class file that the JVM loads in the future. That is, you can get yourself into a situation where the following function returns false:
boolean foo() {
System.out.println("hello world".startsWith("hello"));
}