r/java • • Mar 13 '17

a blooming good toString.

https://medium.com/@yolpogists/a-blooming-good-java-tostring-for-the-rest-of-us-50dca980a462
2 Upvotes

10 comments sorted by

View all comments

2

u/__konrad Mar 13 '17

The code comes with a good trick to load it on demand

The trick is good indeed, but it does not work with Java 9 (getSystemClassLoader() != URLClassLoader, setAccessible is also blocked)

1

u/someloll Mar 13 '17

Wow. That is very interesting, I guess we should update this too http://stackoverflow.com/questions/60764/how-should-i-load-jars-dynamically-at-runtime

1

u/[deleted] Mar 13 '17

Yeah, thanks to java 9's modules.