ServiceLoader throws NCDEF instead of ServiceConfigurationError

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • 26
    • Affects Version/s: 24, 25
    • Component/s: core-libs

      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

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: