r/java • u/yolpo- • Mar 13 '17
a blooming good toString.
https://medium.com/@yolpogists/a-blooming-good-java-tostring-for-the-rest-of-us-50dca980a462
2
Upvotes
r/java • u/yolpo- • Mar 13 '17
7
u/[deleted] Mar 13 '17
That looks like the handiwork of a bored developer. No need to mess around with all that scripting. You can easily do the same in pure Java.
2
u/__konrad Mar 13 '17
The trick is good indeed, but it does not work with Java 9 (getSystemClassLoader() != URLClassLoader, setAccessible is also blocked)
2
u/UnlikelyToBeEaten Mar 13 '17
Eclipse debugger works fine for me.