ops4j/org.ops4j.pax.cdi — pull request #3 by jharting (2013-08-22 13:54:33+00:00)
Title: Add javax.annotation 1.2 bundle to Weld tests

This is necessary for Weld 2.x to work correctly (the Priority annotation).

I was not able to ban the javax.annotation;version="0.0" export of the system bundle. For some reason (probably lack of knowledge on my part) the sample bundle keeps resolving to the javax.annotation package exported by the system bundle instead of the one provided by javax.annotation 1.2 bundle. This causes problems with Weld as two classes with the same name are loaded (e.g. javax.annotation.PostConstruct) Therefore, I added a hack to force the sample bundle to resolve to the javax.annotation 1.2 bundle by overriding the version of javax.annotation package provided by the system bundle to a non-sensible number. I cannot deal with the situation otherwise. Any tips welcome.