Hi, I've observed, that JDT has problems working with class file plus source attachment of org.osgi.framework.Bundle et al. Reason: when compiling the attached sources we can't find the annotation type org.osgi.annotation.versioning.ProviderType. I see that Equinox has the corresponding jar in its git repo, but the deployed org.eclipse.osgi doesn't seem to contain any hint on where this type could be found.
Now, if the annotation had retention SOURCE, one might argue that after compilation the annotation no longer exists (which would still create a challenge for the compiler to find that the annotation we don't find is missing for a good reason - for detecting the SOURCE retention we would need to find the annotation in the first place). With a CLASS retention, however, this annotation should IMHO be considered part of the API and without a dependency this makes it a secret clause as part of the public API, mhhh... Am I misreading something? Any suggestions how the compiler can cope with this fatal error on a published artifact? Who is supposed to use the information about this annotation? How does that instance get access to the annotation definition? FYI, the problem occurs when JDT/UI functionality requests the resolved types of methods in the given interface. thanks, Stephan _______________________________________________ equinox-dev mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
