-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate p2 engine to agent properties #439
Migrate p2 engine to agent properties #439
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems okay. But it causes one deprecation warning in Oomph for the phase set factory changes. I can't actually get rid of it by using the new method because I need to be able to run in older IDEs. I can't safely ignore the warning either because it's marked for removal. I could use reflection, but that is also ugly and error prone. So mostly I'm stuck with an ugly problem for which there are only ugly solutions.
There isn't a single iota of documentation to explain why I must use the new improved method. In fact, the deprecation doesn't even document which method should be used instead, nor even an indication when the removal will happen (no since). There's nothing the in Javadoc to suggest the agent could be null and why the agent is needed at all. If there is going to be disruptive change, the documentation should be better.
See eclipse-equinox/p2#439 Fix #3437 (cherry picked from commit 87563c6)
See eclipse-equinox/p2#439 Fix #3437 (cherry picked from commit 87563c6)
08d7135
to
53aec3d
Compare
c7bdbd3
to
3bca248
Compare
@merks I was now able to rework this even without any deprecations! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks less disruptive.
3bca248
to
b1d0dc1
Compare
Now that agent properties are possible we should use them in the engine, to not rely on only static OSGi context properties.
b1d0dc1
to
6397aad
Compare
Now that agent properties are possible we should use them in the engine, to not rely on only static OSGi context properties.