d6ccccf96a
When deploying Gerrit in an osgi container we see an issue where the javax.annotation.Nullable annotation is not available at runtime. As a consequence Guice injection throws an error if a (Nullable) parameter is null. A research on that topic reveals that this is caused by the Split Package issue in osgi [1]. The javax.annotation.* package is split as one part of it comes from JRE and another one from the jsr305 packaged in gerrit.war. Since guice supports usage of any Nullable annotation type whose simple name is "Nullable" [2], we can use own Nullable annotation type. [1] http://wiki.osgi.org/wiki/Split_Packages [2] https://code.google.com/p/google-guice/source/browse/core/src/com/google/inject/internal/Nullability.java Change-Id: I63b27be6d695e73fd92940e42169d09f751d7274 |
||
---|---|---|
.. | ||
.settings | ||
src/main/java/com/google/gerrit/util/cli | ||
.gitignore | ||
BUCK |