I wrote a post about this a while ago. You need to use the 1.6
compiler, but set the target to 1.5 -- this way you can keep @Override
annotations, but emit valid 1.5 code anyway. I don't know about Maven
(javac), but it definitely works in Eclipse (can be set manually via
project properties).

D.

On Mon, Feb 8, 2010 at 3:51 AM, Benson Margulies <bimargul...@gmail.com> wrote:
> I thought we were trying for 1.5 compat after all. If we are, someone
> (me) should fix all of these. If not, we should change the compiler
> plugin in the POM to say 1.6.
>
> Eclipse treats this as a fatal compilation error if the setting is '1.5.'.
>
> On Sun, Feb 7, 2010 at 9:46 PM, Sean <sro...@gmail.com> wrote:
>> Yes, that's all correct, what's the issue?
>>
>> On Mon, Feb 8, 2010 at 2:37 AM, Benson Margulies <bimargul...@gmail.com> 
>> wrote:
>>> Eclipse thinks that the collections code has about 1000 instance of
>>> @Override of an INTERFACE method, which is supposed to be invalid in
>>> 1.5 and valid in 1.6.
>>>
>>
>

Reply via email to