Remove remaining pseudo dependency of E4-Injector to jakarta annotations#2649
Remove remaining pseudo dependency of E4-Injector to jakarta annotations#2649HannesWell wants to merge 1 commit intoeclipse-platform:masterfrom
Conversation
| org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore | ||
| org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning | ||
| org.eclipse.jdt.core.compiler.problem.invalidJavadoc=error | ||
| org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning |
There was a problem hiding this comment.
Even with invalidJavadoc turned to warning the javadoc links below report errors because the jakarta.annotation/inject annotations are not accessible anymore.
The only way I found to silence the errors was to add them back as additional.bundles in the build.properties below.
Does anyone know a JDT preference to ignore inaccessible types in javadoc? Or is this a bug?
There was a problem hiding this comment.
eclipse-jdt/eclipse.jdt.core#4923
Apart from that I think the javadoc references are not that valuable so we can remove them if needed.
There was a problem hiding this comment.
Thanks for the pointer.
Apart from that I think the javadoc references are not that valuable so we can remove them if needed.
Yes, they are not essential. But I think they're nice to have and if possible, I'd like to retain them
|
That way the DI will not make sure there is at least one annotation provider - it opens the door for products crafted with either javax or jakarta or both or none even. |
Sadly the bugzilla link is inaccessible - do you have a copy of what this is talking about?
Is this maybe somewhere else used (e.g. via reflection?) as it is a public static field ... it might be used for some kind of triggering a (reinjection) of dependencies. |
55a1c43 to
6ff7e39
Compare
Bugzilla seems to have had some temporary issues today. It was available when I wrote the comment and is now available again for me. But besides that the resolving commit might provide more context: 6cf3c7c
I didn't find any such reflective reference. And something like that was also not done in the commit that introduced that class. My assumption is that it was just added to return a non empty array in |
This ensures that the E4-Injector does not work with any specific annotation class.
6ff7e39 to
459844e
Compare

This ensures that the E4-Injector does not work with any specific annotation class.
The pseudo dependency was introduced when resolving Bug 301462, but just returning an empty array as dependencies of the ClassRequestor also passes the then added
DisposeClassLinkTest.I stepped through the code a bit when using the
ClassRequestorand thepseudoVariabledoesn't seem to have an effect.Or does anyone know a reason to keep it?
Follow-up on