News for hackers. Stuff that matters.
Re:Which version of JDK should I use? by chrisseaton on Sunday October 10, 2021 @06:33PM (#28822583)
> involving some pretty scary reflection stuff for some unexplained reason

This is where it always seems to end up. Why do people bend over so far backwards doing reflection that isn't specified?

Re:Which version of JDK should I use? by lmm on Sunday October 10, 2021 @11:02PM (#28824187)
Because Java, particularly pre-8 Java, sucks so bad if you try to actually write your whole application in it.

(I always found this really frustrating when making the argument for Scala. Yes, Scala-the-language is more complex than Java-the-language. But it's not more complex than the pile of reflection magic that anyone who tries to write a nontrivial system in Java actually ends up using).

Re:Which version of JDK should I use? by chrisseaton on Monday October 11, 2021 @05:16AM (#28826356)
I try to do everything in plain-old Java, and my code just keeps running release to release.
Re:Which version of JDK should I use? by jeroenhd on Sunday October 10, 2021 @09:00PM (#28823463)
From what I've seen: to add automagic functionality, syntactic sugar and wrapper methods for libraries. The JVM/Java language doesn't seem to have the tooling necessary to accomplish this natively, so it's the only reliable way to do it without relying on annotation processors having properly run (which still require some reflection magic, depending on the use case).
Re:Which version of JDK should I use? by vips7L on Sunday October 10, 2021 @07:24PM (#28822878)
Reflection and class loader shenanigans to shoot them selves in the foot.
Re:Which version of JDK should I use? by cesarb on Sunday October 10, 2021 @08:19PM (#28823209)
> Why do people bend over so far backwards doing reflection that isn't specified?

Either because there's no other way to do it, or because the official way is too slow.