GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 4.1.124 netty-common lists com.oracle.svm.core.annotate as a required OSGi Import-Package · Issue #15557 · netty/netty

4.1.124 netty-common lists com.oracle.svm.core.annotate as a required OSGi Import-Package #15557

New issue
Copy link
New issue
Copy link
Closed
Closed
4.1.124 netty-common lists com.oracle.svm.core.annotate as a required OSGi Import-Package#15557
Copy link
Milestone
4.1.125.Final

Description

@gemmellr
gemmellr
opened on Aug 14, 2025
Issue body actions

In 4.1.124 the netty-common module mistakenly lists com.oracle.svm.core.annotate as a required Import-Package in its OSGi manifest details, instead of it being optional as previously. This prevents resolving netty-common in OSGi without also supplying the org.graalvm.nativeimage:svm dependency to satisify the package import, breaking any existing builds that dont supply svm e.g because they also dont use graal.

This likely occurred during the #15546 4.1 backporting of #15540. The backport 4.1.x #15546 PR similarly notes it causes a generated Import-Package result including com.oracle.svm.core.annotate;resolution:=optional, however whilst that is true of 4.2.x, it isnt for 4.1.x and the actual manifest included in 4.1.124 instead contains:

Import-Package: sun.misc;resolution:=optional,com.oracle.svm.core.anno
tate,

i.e whilst it did remain optional in 4.2.4 with the original change, with the backport it actually changed the package to a hard requirement in 4.1.124, from it previously being optional in 4.1.123:

Import-Package: sun.misc;resolution:=optional,com.oracle.svm.core.anno
tate;resolution:=optional,

The likely reason for the difference is that 4.2.4 has an 'optional' dependency for svm, whilst 4.1.124 has a 'provided' dependency for svm, with the subtle difference being that the maven-bundle-plugin uses the optional indicator to decide the package import should automatically be marked optional as well, so fixing the 'packages mistakenly marked optional' bug on 4.1.x then really broke the import for com.oracle.svm.core.annotate due to the differing dependency declaration from 4.2.x.

Activity

  1. gemmellr
    added a commit that references this issue on Aug 14, 2025

    Make org.graalvm.nativeimage:svm optional in netty-common

    This issue will close once commit d351951 is merged into the '4.2' branch.
    d351951
  2. normanmaurer commented on Aug 14, 2025

    @normanmaurer
    normanmaurer
    on Aug 14, 2025
    Member
    More actions

    @gemmellr sounds like a bug 🤦 ... can you provide a PR for fixing it ?

  3. gemmellr commented on Aug 14, 2025

    @gemmellr
    gemmellr
    on Aug 14, 2025
    ContributorAuthor
    More actions

    Yep was already working on raising it: #15558

  4. normanmaurer
    added a commit that references this issue on Aug 14, 2025

    Make org.graalvm.nativeimage:svm optional in netty-common (#15558)

    This issue will close once commit 9aa3f51 is merged into the '4.2' branch.
    9aa3f51
  5. normanmaurer
    added this to the 4.1.125.Final milestone on Aug 14, 2025
  6. normanmaurer
    closed this as completedon Aug 14, 2025
  7. chrisvest
    marked Mandatory import of com.oracle.svm.core.annotate #15568 as a duplicate of this issue on Aug 18, 2025
  8. FiveO commented on Aug 22, 2025

    @FiveO
    FiveO
    on Aug 22, 2025
    More actions

    Can you release the 4.1.125 as soon as possible as the fixed GHSA-prj3-ccx8-p6x4 in 4.1.124 cannot be applied to many applications due to this GraavVM dependency

  9. DakshithaS commented on Aug 26, 2025

    @DakshithaS
    DakshithaS
    on Aug 26, 2025
    More actions

    Waiting for this fix to be released in 4.1.125.Final.

    Reacted by Andriy Redko, Anusha Jayasundara and Heshan Sudarshana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 4.1.125.Final

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.