Opened 15 years ago

Closed 15 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:


Updated svn to revision 1436 and proceeded to try to build it with ant; and received the following error message:

    [javac] Compiling 6 source files to <path_to_file>/build
    [javac] <path_to_file>/src/org/openstreetmap/josm/actions/ method does not override a method from its superclass
    [javac]     @Override
    [javac]      ^
    [javac] 1 error

<path_to_file>/build.xml:70: Compile failed; see the compiler error output for details.

Attachments (1)

Strange Build Error.patch (485 bytes ) - added by xeen 15 years ago.

Download all attachments as: .zip

Change History (4)

by xeen, 15 years ago

Attachment: Strange Build Error.patch added

comment:1 by xeen, 15 years ago

Priority: majorminor
Summary: Problems compiling (ant) revision 1436[patch] Problems compiling (ant) revision 1436

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?

comment:2 by anonymous, 15 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.

comment:3 by stoecker, 15 years ago

Resolution: fixed
Status: newclosed

Applied in r1437.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.