Modify ↓
Opened 17 years ago
Closed 17 years ago
#2229 closed defect (fixed)
[patch] Problems compiling (ant) revision 1436
| Reported by: | sanna | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Updated svn to revision 1436 and proceeded to try to build it with ant; and received the following error message:
compile:
[javac] Compiling 6 source files to <path_to_file>/build
[javac] <path_to_file>/src/org/openstreetmap/josm/actions/UpdateDataAction.java:32: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] 1 error
BUILD FAILED
<path_to_file>/build.xml:70: Compile failed; see the compiler error output for details.
Attachments (1)
Change History (4)
by , 17 years ago
| Attachment: | Strange Build Error.patch added |
|---|
comment:1 by , 17 years ago
| Priority: | major → minor |
|---|---|
| Summary: | Problems compiling (ant) revision 1436 → [patch] Problems compiling (ant) revision 1436 |
comment:2 by , 17 years ago
Problems with @Override are usually based on the differences between Java 1.5 and Java 1.6. AFAIR Java 1.6 is much more relaxed regarding unnecessary @Override annotations.
Note:
See TracTickets
for help on using tickets.



This is a strange issue, it works for me both with and without @Override and I don't even get a warning. There's probably no harm in removing @Override to fix the build for you, but still…which version do you use to compile?