JDK-8350481 : ServiceLoader throws NCDEF instead of ServiceConfigurationError
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 24,25
  • Priority: P3
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2025-02-21
  • Updated: 2025-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26Unresolved
Related Reports
Relates :  
Description
There is a change in behavior in JDK 24 where an error case throws NoClassDefFoundError rather than a ServiceConfigurationError with the NCFE as cause, see bug report here:

https://mail.openjdk.org/pipermail/core-libs-dev/2025-February/140325.html
Comments
I have changes to restore the old behavior, mulling over whether to address the wider issue at the same time or not.
22-02-2025