I've been assigned the job to porting a large 1.6 Java desktop application to java 8/11. Here and there, the code uses internal api, like, for example, sun.awt.causedfocusevent .
Is there any documentation about which public API replaced an internal API targeted to be removed ? I know that not for each internal api that has been misused I'll able to find an equivalent public API, but at least I need
to know a point to start from.
Thanks in advance !
Thanks Campbell for pointing that out. If I'm not wrong, there's no an 'official' replacement for any private, internal API classes (like the classes in sun.* packages) , just because those are intended as 'implementation details' of a vendor-specific (Sun, Oracle) implementation, right ?
Ok, if that's the case, I'll need to make my own way to replace unsupported code with public api.
Hope to find someone's else solution over the web.
I just take it as given that any package with Sun's name is radioactive. Since Sun owned Java, it mostly only used its own package path for things that were experimental or not for public use.
There was one encoding class (I think) that was VERY popular in the Sun package path. Until they took it away entirely somewhere around Java 5 and it took YEARS to flush out all the stuff that got broken by that.
I'm going to be a "small government" candidate. I'll be the government. Just me. No one else.