多年來,我構(gòu)建了幾個利用 AspectJ 的 Java Maven 項目。所有項目都能在 Eclipse Neon 和 Maven 命令行上正確編譯。然而,在 Photon 上,我收到了許多錯誤消息,所有這些消息都源于無法編譯 AspecJ 代碼。例如:pointcut test() : execution(@org.junit.Test * *(..));原因pointcut cannot be resolved to a type和before() : test() {
localLog(thisJoinPoint).info(format("*** Test execution @ %s", describe(thisJoinPointStaticPart)));}導致錯誤:thisJoinPoint cannot be resolved to a variable和thisJoinPointStaticPart cannot be resolved to a variable誰能告訴我如何修復 Photon 上的編譯?
添加回答
舉報
0/150
提交
取消