BusinessNewsSmartphones

A new proposal would temporarily permit illegal reflective access from code on class path by default, so more older code would function in Java 9

Oracle has a plan to make Java 9 migration easier

Oracle has a plan to make Java 9 migration easier

It will be easier to migrate code to the planned Java 9 release, due in late July, if the committee that managed Java approves a proposal just made by Oracle to better accommodate modularity, the key new feature in Java 9. Oracle made the proposal after getting strong opposition to its modularization plans from the Java community

In a proposal floated Thursday, Mark Reinhold, Oracle’s chief Java architect, said strong encapsulation of JDK-internal APIs has caused worries that code that works on JDK 8 will not work on JDK 9 and that no advance warning of this was given in JDK 8. “To help the entire ecosystem migrate to the modular Java platform at a more relaxed pace, I hereby propose to allow illegal reflective access from code on the class path by default in JDK 9, and to disallow it in a future release,” he said.

Under the proposal, the existing “big kill switch” of the —permit-illegal-access option would become the default behavior of the JDK 9 runtime system, though without as many warnings, Reinhold said. “The current behavior of JDK 9, in which illegal reflective-access operations from code on the class path are not permitted, will become the default in a future release. Nothing will change at compile time.”

The change, Reinhold noted, “will not magically solve every JDK 9 adoption problem.” Concrete types of the built-in class loaders are still different, rt.jar is still gone, the layout of a system image is not the same, and the version string still has a new format.

Computerword

0 0 votes
Article Rating

Receive Job Alerts via Our Social Media Channels:

Telegram Lagmen Net job Alert
X Lagmen Net job Alert
Facebook Lagmen Net job Alert
Instagram Lagmen Net job Alert

Join Our WhatsApp Groups

Lagmen Limited Job Alert 1
Lagmen Limited Job Alert 2

Submit Your Discover News

discovernews@lagmen.net
reachus@lagmen.net Send us an update or tip via WhatsApp: 07060528734

Contact Us Now

Tel: +2348051324267
Tel: +2348094097992 Download Our App

Download App

Get the latest version of our Android app

Download APK
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x