He's writing Scala - the Scala compiler needs all annotation classes on the compile time class path, unlike javac which doesn't mind them.
> On 16 Dec 2014, at 06:24, Ceki Gülcü <[email protected]> wrote: > > > I am assuming it's a build time error (not runtime) and you are using gradle. > Can you clean gradle cache? > >> On 12/16/2014 7:22, Ceki Gülcü wrote: >> Hi Elliot, >> >> We added the JSR 305 @Nonnull into ILoggerFactory interface and >> LoggerFactory class in version 1.7.8. >> >> I have just verified that client code builds just fine without >> com.google.code.findbugs:jsr305 being present on the class path. >> >> Can you tell use more about your build environment. JDK version. Build >> tool etc. >> >> Are you doing a clean build? >> >> Cheers, >> >> -- >> Ceki >> >>> On 12/15/2014 23:58, Elliot Huntington wrote: >>> slf4j-api version 1.7.8 was released to the maven central repository on >>> 2014-12-14, which was yesterday. Today one of my builds that depended on >>> slf4j-api with a version range from 1.7.5 -> 1.7.8 started to break. I'm >>> getting error messages like this: >>> >>> Class javax.annotation.Nonnull not found - continuing with a stub. >>> Caught: java.lang.NullPointerException while parsing annotations in >>> /home/username/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.8/40d4abec9e853fd9f17fb144f1e7c2c5bab52af9/slf4j-api-1.7.8.jar(org/slf4j/LoggerFactory.class) >>> >>> error while loading LoggerFactory, class file >>> '/home/username/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.8/40d4abec9e853fd9f17fb144f1e7c2c5bab52af9/slf4j-api-1.7.8.jar(org/slf4j/LoggerFactory.class)' >>> >>> is broken >>> (class java.lang.RuntimeException/bad constant pool index: 0 at pos: >>> 9496) >>> /home/username/projects/1.0.5-gradle/common/src/main/scala/company/product/common/LogHelper.scala:14: >>> >>> value getLogger is not a member of object org.slf4j.LoggerFactory >>> lazy val logger = LoggerFactory.getLogger(this.getClass) >>> ^ >>> >>> Has getLogger purposefully been removed from the slf4j-api version 1.7.8 >>> or is it possible that the artifact uploaded to the maven central >>> repository is corrupted? This is a breaking change. >>> >>> After excluding all transitive dependencies to slf4j-api from my project >>> and explicitly using version 1.7.7, my project builds fine again. What >>> happened in version 1.7.8 that was released to the maven central >>> repository yesterday? >>> >>> >>> _______________________________________________ >>> slf4j-user mailing list >>> [email protected] >>> http://mailman.qos.ch/mailman/listinfo/slf4j-user >> _______________________________________________ >> slf4j-user mailing list >> [email protected] >> http://mailman.qos.ch/mailman/listinfo/slf4j-user > _______________________________________________ > slf4j-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/slf4j-user _______________________________________________ slf4j-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/slf4j-user
