On 20/08/2009, Jörg Schaible <joerg.schai...@gmx.de> wrote: > Hi Sebb, > > sebb wrote at Donnerstag, 20. August 2009 11:32: > > > > LANG trunk currently includes some use of JCIP annotations. > > > > The annotations were defined with Runtime retention. > > > > Although the annotation jar is not needed to run applications, it > > turns out that the Sun Java 1.5 compiler reports an error if the jar > > is not present. [Java 1.6 only issues a warning] > > > When exactly? Compiling lang or compiling code using it?
Sorry, I meant compiling code using it. Of course it's also needed for compiling LANG. > > > Obviously this is not ideal ;-) > > > If the latter - yes. > > > > Possible options: > > * remove JCIP (leave the annotations as comments) > > * bundle JCIP (license is CC Attribution) > > * write our own annotations - with class-file retention > > > > Seems to me that annotations are in scope for LANG. > > > > Comments? I should also have said that the reason for using the annotations was to document the thread-safety of classes, and to document which locks (if any) are needed to access mutable variables. This can be done using comments, but annotations offer more flexibility, e.g. possiility of using bug detectors, javadoc. > > - Jörg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org