Modify

Ticket #2229 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[patch] Problems compiling (ant) revision 1436

Reported by: sanna Owned by: team
Priority: minor 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

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

Change History

Changed 3 years ago by xeen

comment:1 Changed 3 years ago by xeen

  • Priority changed from major to minor
  • Summary changed from Problems compiling (ant) revision 1436 to [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 Changed 3 years ago by anonymous

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 Changed 3 years ago by stoecker

  • Status changed from new to closed
  • Resolution set to fixed

Applied in r1437.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.