-
Bug
-
Resolution: Won't Fix
-
P4
-
6
-
generic
-
generic
Tried on Solaris -10
JDK :java version "1.6.0-ea" (build 1.6.0-ea-b46)
Compiler issues same [deprecation] warning twise in the following condition
<code>
@Deprecated
abstract class TestOne{
@Deprecated
protected abstract void abstractMethod();
}
abstract class TestTwo extends TestOne{
public void abstractMethod(){
//...
}
@Deprecated
protected abstract void abstractMethod1();
}
</code>
output of the code when compiled
<output>
bash-3.00$ javac -Xlint Test7.java
Test7.java:7: warning: [deprecation] abstractMethod() in TestOne has been deprecated
public void abstractMethod(){
^
Test7.java:7: warning: [deprecation] abstractMethod() in TestOne has been deprecated
public void abstractMethod(){
^
2 warnings
bash-3.00$
</output>
JDK :java version "1.6.0-ea" (build 1.6.0-ea-b46)
Compiler issues same [deprecation] warning twise in the following condition
<code>
@Deprecated
abstract class TestOne{
@Deprecated
protected abstract void abstractMethod();
}
abstract class TestTwo extends TestOne{
public void abstractMethod(){
//...
}
@Deprecated
protected abstract void abstractMethod1();
}
</code>
output of the code when compiled
<output>
bash-3.00$ javac -Xlint Test7.java
Test7.java:7: warning: [deprecation] abstractMethod() in TestOne has been deprecated
public void abstractMethod(){
^
Test7.java:7: warning: [deprecation] abstractMethod() in TestOne has been deprecated
public void abstractMethod(){
^
2 warnings
bash-3.00$
</output>