If you run this piece of code:
On OS X running with the Apple JVM, then you get:
If you're running on the Java 6 OpenJDK (for example with Ubuntu, or the Groovy Web Console), you get:
Is there anything that can be done to get the behaviour the same across the board?
Jochen said on the mailing list that it was an issue to do with the native type optimisations.
Maybe just adding xor to Character would get rid of the OpenJDK issue?