Skip to content

Support hiding some JRE packages from the plugin #697

Closed Answered by tjwatson
testforstephen asked this question in Q&A
Discussion options

You must be logged in to vote

I agree with @laeubi there must be something strange with your bundle. Like requiring the system bundle or org.eclipse.osgi. Keep in mind that using require-bundle here will cause issues. For example, using Require-Bundle for org.eclipse.core.runtime will pull in all of org.eclipse.osgi which in-turn exposes you to all the JDK packages because this horrible re-export:

https://github.com/eclipse-platform/eclipse.platform/blob/6dd67323474b1b49d541bcd1e4ea8007ab2a36a4/runtime/bundles/org.eclipse.core.runtime/META-INF/MANIFEST.MF#L12C17-L12C87

Something like that will prevent you from loading the packages from your bundle's class path.

Replies: 14 comments 20 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by testforstephen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@mickaelistria
Comment options

@laeubi
Comment options

@testforstephen
Comment options

@mickaelistria
Comment options

@jukzi
Comment options

jukzi Dec 4, 2024
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@merks
Comment options

merks Dec 11, 2024
Collaborator

@laeubi
Comment options

@laeubi
Comment options

@mickaelistria
Comment options

@tjwatson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #696 on November 15, 2024 04:49.