IntelliJIDEA11を使用して開発しているプロジェクトでLombokを使用しようとしています。
IDEA用のサードパーティプラグインをインストールしましたが、IDEAはすべての自動生成されたメソッド/フィールドを参照するため、正常に機能しているようです。
だから私はSlf4jを使用するクラスを持っています。このように注釈を付けました
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class TestClass
{
public TestClass()
{
log.info("Hello!");
}
}
しかし、プロジェクトコンパイラをビルドすると、次のようになりcannot find symbol variable log
ます。
ここで欠けているものを教えてください。
更新:失敗するのはRequestFactoryアノテーションプロセスであることが判明しました。
input files: {com.zasutki.courierApp.server.TestServlet, com.mine.courierApp.server.model.DatastoreObject}
annotations: [javax.inject.Singleton, javax.inject.Inject, lombok.Getter, lombok.Setter, com.googlecode.objectify.annotation.Id, com.googlecode.objectify.annotation.OnSave]
Processor com.google.web.bindery.requestfactory.apt.RfValidator matches [lombok.Getter, com.googlecode.objectify.annotation.Id, javax.inject.Inject, lombok.Setter, com.googlecode.objectify.annotation.OnSave, javax.inject.Singleton] and returns false.
cannot find symbol variable log
回避策に関するアイデアはありますか?
Update2:おそらくそれは読者が聞きたいものではないかもしれませんが、私は結局Scalaに切り替えました。