What steps will reproduce the problem?
1. On an OS X Tiger machine, get r318
2. ant
What is the expected output? What do you see instead?
I expect it to successfully build. Instead I see:
shlomo$ ant
Buildfile: build.xml
init:
[copy] Copying 4 files to /Users/shlomo/ec2/typica-read-only/build/classes
schema:
[echo] compiling the schema files in xsd to java files in /Users/shlomo/ec2/typica-read-
only/build/generated/com/xerox/amazonws/typica/jaxb
[xjc] Compiling file:/Users/shlomo/ec2/typica-read-only/xsd/AmazonLS.xsd and others
[xjc] removing old output files
[xjc] Writing output to /Users/shlomo/ec2/typica-read-only/build/generated
[xjc] Compiling file:/Users/shlomo/ec2/typica-read-only/xsd/sdb.xsd
[xjc] removing old output files
[xjc] Writing output to /Users/shlomo/ec2/typica-read-only/build/generated
[xjc] files are up to date
[xjc] files are up to date
[xjc] files are up to date
[xjc] Compiling file:/Users/shlomo/ec2/typica-read-only/xsd/AutoScaling.xsd
[xjc] removing old output files
[xjc] Writing output to /Users/shlomo/ec2/typica-read-only/build/generated
[xjc] files are up to date
compile:
[copy] Copying 9 files to /Users/shlomo/ec2/typica-read-only/build/classes
[javac] Compiling 437 source files to /Users/shlomo/ec2/typica-read-only/build/classes
[javac] Compiling 39 source files to /Users/shlomo/ec2/typica-read-only/build/classes
[javac] /Users/shlomo/ec2/typica-read-
only/java/com/xerox/amazonws/ec2/SpotPriceHistoryItem.java:39: method does not
override a
method from its superclass
[javac] @Override
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
BUILD FAILED
/Users/shlomo/ec2/typica-read-only/build.xml:92: Compile failed; see the
compiler error
output for details.
What version of the product are you using? On what operating system?
$ uname -a
Darwin Focus.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT
2009; root:xnu-
1228.15.4~1/RELEASE_I386 i386
$ java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)
Please provide any additional information below.
Java 6 changed the @Override annotation, allowing it to specify the
implementation of an
interface's method. Java 5 complains.
Removing the annotation fixes the problem:
$ svn diff
Index: java/com/xerox/amazonws/ec2/SpotPriceHistoryItem.java
============================================================
=======
--- java/com/xerox/amazonws/ec2/SpotPriceHistoryItem.java (revision 318)
+++ java/com/xerox/amazonws/ec2/SpotPriceHistoryItem.java (working copy)
@@ -36,7 +36,6 @@
return productDescription;
}
- @Override
public int compareTo(SpotPriceHistoryItem o) {
return timestamp.compareTo(o.timestamp);
}
Original issue reported on code.google.com by shlomo.s...@gmail.com on 2 Apr 2010 at 8:44
Original issue reported on code.google.com by
shlomo.s...@gmail.com
on 2 Apr 2010 at 8:44