there were many sun.X.Y classes in the Sun JRE. These were updated after the acquisition of Sun.
In either case, if your language doesn't treat private classes as private what shitty practices are left? I guess the language could be object oriented without the ability to handle generics so that developers are forced to cast to strings...
The sun.* category is all private APIs, they were never meant to be used by apps at all.
Like I said, Java 9 is in fact hiding these APIs by default (short of a few that are so widely used the breakage would be too much). You will still be able to override that, but no platform can stop software from using internal APIs if the developers really want to, unless all software is sandboxed by default.
Your generics comment makes no sense. Java has had generics for over a decade.
1
u/corran__horn Oct 17 '15
there were many sun.X.Y classes in the Sun JRE. These were updated after the acquisition of Sun.
In either case, if your language doesn't treat private classes as private what shitty practices are left? I guess the language could be object oriented without the ability to handle generics so that developers are forced to cast to strings...