3 ms·
> Well, you knew the risks, so I'm not sure why you're so upset that Java 9 precludes you using what were ultimately private APIs. I think this is going too fa
by TeMPOraL 9y ago
> Well, you knew the risks, so I'm not sure why you're so upset that Java 9 precludes you using what were ultimately private APIs.
I think this is going too far. You have to jump through enough hoops already to mess with private state of library code; if some developers are dumb enough to do that irresponsibly and get hurt, let them. Don't take away a last-ditch tool those of us who know what we're doing sometimes really need.
- ScottBurson 9y agoYou can always edit the classfile in Emacs :-)
- didibus 9y agoActually, there's an easier way. If you load the class as a resource, it's possible to still access the private methods. Not sure of the details, but I read a blog somewhere who was showing how to do it.
- ScottBurson 9y agoI wasn't serious, of course. Well, I have edited binary executables in Emacs on very rare occasions, but I"ve never tried to edit a classfile. I think there are classfile-modifying libraries one can use if one has to get that down and dirty.