Java SE JSR 250 annotations module renamed to

Claes Redestad claes.redestad at
Mon Feb 13 14:08:09 UTC 2017

Hi Guillaume,

On 02/13/2017 02:34 PM, Guillaume Smet wrote:
> At the end, I'm wondering if these classes shouldn't be part of the default
> set of classes exposed without requiring an --add-modules option.

one of the main reasons why is not resolved
by default is that there are many projects out there with dependencies
on various JSR 305 implementations[1], which is a non-final and dormant
JSR which happen to clash with JSR 250 by adding more annotations to
the same packages... thus if is resolved at
boot time using --add-modules then any project with a dependency on
one of the rogue JSR 305 implementations is likely to break[2].

A perhaps less fragile alternative here is to not depend on the
JDK-bundled at all but instead depend directly
on the JSR 250 API as published by the JCP[3] as an explicit dependency.

Hope this helps!


[2] See for more info
[3] E.g.:

More information about the jigsaw-dev mailing list