Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Build problems with recent platform4.11-I-builds

o.e.jdt.annotation 2.0.0 exploits Java 7 type annotations which persist at run-time. You must therefore require o.e.jdt.annotation just like any other bundle.

You meant Java 8. And they are not available at runtime (they use RetentionPolicy.CLASS), therefore the bundle.properties mechanism still works well with jdt.annotations 2.x, and bundle requirements are not necessary.

To quote the Eclipse help on these annotations: "The PDE specific mechanism in file build.properties is problematic because it doesn't support specifying a version range." (and that is why they recommend optional bundle requirement). Therefore if you can manage your target platform to explicitly contain only the 2.x annotations, build.properties work well. At least that is my experience with several commercial applications built that way. Nevertheless, I have not tried this with recent builds like Bernd, so this may no longer work and my remarks might be useless.

Ciao, Michael

Back to the top