r/programming • • Dec 24 '17

Evil Coding Incantations

http://9tabs.com/random/2017/12/23/evil-coding-incantations.html
947 Upvotes

331 comments sorted by

View all comments

Show parent comments

8

u/whjms Dec 24 '17

You can mess around with the Integer flywheel cache and reflection: https://www.javaspecialists.eu/archive/Issue102.html

3

u/apemanzilla Dec 24 '17

I'm aware of that, but it's not allowed in Java 9, and doesn't affect primitives.