java 6 allows @Override in this case, but java 5 does not. On Thu, Aug 16, 2012 at 2:53 PM, <jgl...@apache.org> wrote: > Author: jglick > Date: Thu Aug 16 13:53:07 2012 > New Revision: 1373836 > > URL: http://svn.apache.org/viewvc?rev=1373836&view=rev > Log: > JDK 5 javac is apparently buggy; @Override should be allowed on methods > implemented from an interface. > > Modified: > ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java > > Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java > URL: > http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java?rev=1373836&r1=1373835&r2=1373836&view=diff > ============================================================================== > --- ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java > (original) > +++ ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java Thu > Aug 16 13:53:07 2012 > @@ -207,7 +207,7 @@ public class DeweyDecimal implements Com > return sb.toString(); > } > > - @Override public int compareTo(DeweyDecimal other) { > + public int compareTo(DeweyDecimal other) { > final int max = Math.max(other.components.length, components.length); > for (int i = 0; i < max; i++) { > final int component1 = (i < components.length) ? components[ i ] > : 0; > >
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org