Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.6.1.M1
-
Component/s: Compiler Integration
-
Labels:
-
Environment:Eclipse SDK; Version: 3.6.1; Build id: M20100909-0800
Groovy-Eclipse Feature 2.1.1.xx-20101215-2100-e36 (groovy 1.7.5)
jdk1.6.0_20; groovy-1.7.4
-
Number of attachments :
Description
I've tried to add log_code_guard.jar to the project classpath (the whole global AST is written in pure Java), but it wasn't enough. Am i missing something? It seems nothing is going on...
If i try to run using the command line, it "works" (i've inserted a bug
to be sure that the transformation was happening):
[daniel@anyhost test_log]$ groovy
-cp ./lib/log4j-1.2.15.jar:./lib/log_code_guard.jar:./bin
src/Bla.groovy
visitClass(): node Bla
log exp: LOGGER.debug(ok)
log method: debug
log method enabled: isDebugEnabled
parent if null
replacing...
1
Caught: groovy.lang.MissingMethodException: No signature of method:
org.apache.log4j.Logger.isDebugEnabled_() is applicable for argument
types: () values: []
Possible solutions: isDebugEnabled()
at Bla.main(Bla.groovy:9)
=====
Thread: