By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
NextGen SoftwareNextGen SoftwareNextGen Software
  • Development
  • Languages
  • Software
  • Microservices
  • Infrastructure
  • Research Center
Search

Archives

  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023

Categories

  • Agile Development
  • Agile Methodologies
  • Agile Tools and Techniques
  • AI Pair Programming
  • AI-based Testing
  • AI-enhanced Development
  • API Development and Integration
  • Automated Code Review
  • Back-end Development
  • Best Practices and Use Cases
  • Cloud Computing
  • Cloud Storage
  • Continuous Integration and Deployment
  • DevOps
  • Education
  • Frameworks and Libraries
  • Front-end Development
  • IaC Tools and Technologies
  • Infrastructure-as-code (IaC)
  • Language Updates and Features
  • Low-code Platforms
  • Low-code/No-code Development
  • Microservice Architecture
  • Microservices and APIs
  • Monitoring and Logging
  • No-code Platforms
  • Programming Languages
  • Software Development
  • Uncategorized
  • Web Development
  • About us
  • Contact us
  • Research Center
  • Disclaimer
  • Privacy
  • Terms & Conditions
© 2024 Nextgen Software, a Talk About Tech brand. All rights Reserved.
Reading: JDK 24 Prepares for Restrictions on JNI Usage
Share
NextGen SoftwareNextGen Software
  • Development
  • Languages
  • Software
  • Microservices
  • Infrastructure
  • Research Center
Search
  • About us
  • Contact us
  • Research Center
  • Disclaimer
  • Privacy
  • Terms & Conditions
Have an existing account? Sign In
Follow US
© 2024 Nextgen Software, a Talk About Tech brand. All rights Reserved.
NextGen Software > Programming Languages > Frameworks and Libraries > JDK 24 Prepares for Restrictions on JNI Usage
Frameworks and LibrariesLanguage Updates and FeaturesProgramming LanguagesSoftware Development

JDK 24 Prepares for Restrictions on JNI Usage

JDK 24 introduces warnings for future JNI restrictions, preparing the Java ecosystem for changes in native interface handling. Learn about upcoming Java 24 features.

Conal Cram
Last updated: July 3, 2025 2:49 pm
Conal Cram
Share
5 Min Read
JDK 24 Prepares for Restrictions on JNI Usage
SHARE

Preparing for JNI Restrictions in JDK 24

With the release of Java Development Kit (JDK) 23 just around the corner, the focus has already shifted toward JDK 24, set for a March 2025 debut. Among the first features targeted for JDK 24 is a significant move toward tightening how Java handles the Java Native Interface (JNI). This feature introduces warnings that aim to prepare developers for future restrictions on using JNI, signaling an important shift in the evolution of Java. As these changes unfold, developers are encouraged to pay attention to these updates to stay ahead of any compatibility or security issues.

Contents
Preparing for JNI Restrictions in JDK 24Why JNI Restrictions MatterOther Potential Features in JDK 24Understanding the Release Cadence and Adoption TrendsPreparing for Future Java ChangesWhat’s Your Take?

Watch @gsaab present the #JVMLS keynote on the state of #Java in 2024. https://t.co/kD0HP2adjQ

— Java (@java) August 21, 2024

Why JNI Restrictions Matter

JNI has long been the standard for enabling Java code to interact with native code. However, as Java evolves, the need to enhance the security and integrity of these interactions is becoming more critical. JDK 24’s new warnings regarding JNI use represent the initial phase of a plan that will eventually see stricter default restrictions on native code interactions. This change is a proactive step to mitigate risks, particularly as Java’s ecosystem grows more complex and expansive.

The planned alignment of these warnings with the Foreign Function and Memory (FFM) API, introduced in JDK 22, ensures consistent messaging and offers developers an alternative pathway. The end goal is to streamline the transition for developers who will eventually need to migrate away from relying heavily on JNI, ensuring smoother interoperability while maintaining security best practices.

Other Potential Features in JDK 24

Beyond the critical updates to JNI handling, JDK 24 could see several other significant features, many of which are currently being previewed in JDK 23:

  • Class-File API: Enhances capabilities for parsing, generating, and transforming Java class files.
  • Stream Gatherers: Adds improvements to the stream API, allowing for more customized intermediate operations.
  • Module Import Declarations: Simplifies importing all packages exported by a module, reducing complexity for library reuse.
  • Structured Concurrency: Introduces a more straightforward approach to managing concurrent programming.
  • Primitive Types in Patterns, Instanceof, and Switch: Expands pattern matching by allowing primitive type patterns across all pattern contexts.
  • Vector API (Eighth Incubation): Advances vector computations, enabling better runtime optimization on supported CPU architectures.

Additional features, such as ahead-of-time class loading for faster Java startups and string templates (previously previewed in JDK 21 and 22), could also make it into JDK 24 depending on ongoing development efforts.

Understanding the Release Cadence and Adoption Trends

As with JDK 23, JDK 24 will be a non-long-term support (LTS) release, receiving only six months of Premier-level support from Oracle. Traditionally, non-LTS releases have seen lower adoption rates, as organizations often prefer the stability of LTS versions. The most recent LTS release, JDK 21, launched in September 2023 and is set to receive at least five years of support, making it the preferred choice for enterprises focused on long-term projects.

The next LTS release, JDK 25, scheduled for September 2025, is expected to draw greater attention, meaning that JDK 24 might primarily serve as a stepping stone for developers looking to experiment with upcoming features before they are finalized in an LTS version.

Preparing for Future Java Changes

For developers and organizations relying heavily on JNI, JDK 24’s warnings are more than just advisory—they’re a signal to start adapting now. Exploring alternatives like the FFM API and rethinking native code usage should be a priority. Preparing ahead of time will not only prevent potential issues down the line but will also position your applications for a smoother transition when future Java releases enforce stricter rules around native code interoperability.

JDK 23 and JDK 24: What We Know So Far https://t.co/vhG5kOVYgQ by @mpredli

— InfoQ (@InfoQ) August 22, 2024

What’s Your Take?

Are you ready to adapt your codebase for these upcoming changes? We’d love to hear how you’re preparing for the new restrictions and what features in JDK 24 interest you the most. Share your thoughts in the comments below!

Photo by Gregory Hayes on Unsplash

Sign Up For Our Newsletter

Get the latest breaking news delivered straight to your inbox.

By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Copy Link Print
Share
By Conal Cram
Follow:
Conal is a seasoned tech industry professional and content writer for numerous tech publications. With a strong background in software engineering and digital media development, he's passionate about sharing the latest updates and insights in the tech industry, particularly in artificial intelligence and other disruptive trends. In his spare time he loves a mezze platter and a good film, and if he's not playing Fortnite or spending time with his daughter you can assume he's at the dry slopes!
Previous Article Magic.dev AI Coding Eyes $200M Funding at $1.5B Valuation AI Coding Startup Magic.dev Eyes $200M Funding at $1.5B Valuation
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts

NatWest Teams Up with Icon Solutions for Low Code Project

NatWest Teams Up with Icon Solutions for Payments Modernization Using Low Code

Conal Cram 3 Min Read

The Emerging Star in Android App Development

Conal Cram 3 Min Read
Magic.dev AI Coding Eyes $200M Funding at $1.5B Valuation

AI Coding Startup Magic.dev Eyes $200M Funding at $1.5B Valuation

Conal Cram 3 Min Read

The Inception of Infrastructure-as-Code: Planting the Seeds for Manageable and Scalable IT Environments

Conal Cram 4 Min Read

From our research center

KnowBe4 Africa (Pty) Ltd

10 Questions Every CISO Should Ask About AI-Powered Human Risk Management Tools

AI is transforming security awareness—but how much is marketing hype versus genuine value for your organisation? Human risk management (HRM) and security awareness vendors of...

Read content

Recent Posts

  • JDK 24 Prepares for Restrictions on JNI Usage
  • AI Coding Startup Magic.dev Eyes $200M Funding at $1.5B Valuation
  • Oracle Adds AI Assistant to Apex Low-Code Development App
  • Lemonado Raises $1.4M for AI-Native No-Code Platform
  • How Generative AI is Transforming Software Development in 2024

We Are Nextgen Software

Our dedicated team of experts and journalists brings in-depth analysis, breaking news, and comprehensive reports from around the globe.

Useful links

  • About us
  • Contact us
  • Research Center
  • Disclaimer
  • Privacy
  • Terms & Conditions

Popular categories

  • Agile Development
  • Programming Languages
  • DevOps
  • Web Development

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

NextGen SoftwareNextGen Software
Follow US
© 2024 Nextgen Software, a Talk About Tech brand. All rights Reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?