[slf4j-user] slf4j-api 1.7.8 broken?
Elliot Huntington
elliot.huntington at gmail.com
Mon Dec 15 23:58:57 CET 2014
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20141215/ab7eb784/attachment.html>
More information about the slf4j-user
mailing list