Ticket #2229 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months 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 17 months ago.

Change History

Changed 17 months ago by xeen

Changed 17 months 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?

Changed 17 months 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.

Changed 17 months ago by stoecker

  • status changed from new to closed
  • resolution set to fixed

Applied in r1437.

Add/Change #2229 ([patch] Problems compiling (ant) revision 1436)

Author


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


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'
 
Note: See TracTickets for help on using tickets.