>The issue was that Java was making an unsafe optimization (I never bothered to figure out if it is the compiler or the JVM making the mistake, I was satisfied once I had a work-around).
He says it was the JVM or the compiler's fault. He doesn't blame the code.