Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.6.4, 1.7-beta-1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
I have create a class in Groovy:
public class AClass
{
@Deprecated public void foo() { System.out.println("foo"); }
}
I compiled it using groovyc
groovyc AClass.groovy
Now I created a Java class as shown below:
class Test
{
public static void main(String[] args)
}
When I compile the Java code
javac Test.java
I don't get any deprecation warnings.
If I compile AClass.groovy using javac (after copying to AClass.java) and then compile Test.java using javac, I get a deprecation warning.
Proposed patch. Jochen (and others), any thoughts?
OK to not make modifiers final in ClassNode?
I have been holding off but seems the best way to solve this.
Do we need any special treatment for properties?
Should we have a flag and indicate with a warning if we encounter a deprecated node like javac does?
And support a mode like javac's -deprecation to warm for them all?