We are Java consulting team based in India, addressing a controversy on Java 9 unsupported but functional API in this article. To solve the problem, Java expert team has been decide to make most of the APIs inaccessible in Java 9 by default. However, some of them are accessible by default that is not considered as part of recent controversy.
The issue orbits around unsupported API – sun.misc.unsafe that may cause problem in memory storage and application may stop working in between. According to one JDK enhancement proposal, all of the APIs will kept encapsulated in Java 9 except few. APIs have been filtered after lots of research and practice only.
The next Java version is supposed to release next year with major focus on modularization and porting Java to major operating systems. Encapsulation of APIs is also a part of modularization in Java 9 that will affect overall performance of an application. By default, Developers would not be able to access internal APIs outside JDK.
The change will assure platform integrity and it will be highly good for security sensitive operations. It may also reduce overall cost of JDK libraries and other maintainers during app development. Java consulting team in India addressing one problem, popular libraries invoke unsupported APIs and it would be impossible to access now outside JDK. The possible solution is to mount API in Java 8 outside JDK or you can take help of professional software consultants too.
For now, we can assume the risks and benefits of encapsulation plan until it does not come true. However, APIs could be critical issue if it will not be handled carefully. According to Java consulting team based in India, experts are planning to give unsupported APIs as package that can be quickly exported outside JDK.