Skip to main content



      Home
Home » Newcomers » Newcomers » How to ignore @Override under 1.4?
How to ignore @Override under 1.4? [message #254274] Fri, 18 April 2008 14:12 Go to next message
Eclipse UserFriend
Originally posted by: fake.phony_email_address.com

We've got a lot of code that uses @Override tags, and we need it to
compile under JDK 1.4. They cause compile errors. I'd rather not remove
the tags because they're really useful under 1.5.

Is there any way in Eclipse Preferences to temporarily ignore the
@Override tags when compiling under 1.4?
Re: How to ignore @Override under 1.4? [message #254287 is a reply to message #254274] Fri, 18 April 2008 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Try setting the compiler level to 1.6, but the "generated .class files
compatibility" to 1.4

Wayne

On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
> We've got a lot of code that uses @Override tags, and we need it to
> compile under JDK 1.4. They cause compile errors. I'd rather not remove
> the tags because they're really useful under 1.5.
>
> Is there any way in Eclipse Preferences to temporarily ignore the
> @Override tags when compiling under 1.4?
Re: How to ignore @Override under 1.4? [message #254299 is a reply to message #254287] Sat, 19 April 2008 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------090705050708090206010303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Wayne,

I think the .class file compatibility must be greater or equal to the
source compatibility... It would be nice if Java could compile 1.5
level source down to 1.4 compatible byte code...


Wayne Beaton wrote:
> Try setting the compiler level to 1.6, but the "generated .class files
> compatibility" to 1.4
>
> Wayne
>
> On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
>
>> We've got a lot of code that uses @Override tags, and we need it to
>> compile under JDK 1.4. They cause compile errors. I'd rather not remove
>> the tags because they're really useful under 1.5.
>>
>> Is there any way in Eclipse Preferences to temporarily ignore the
>> @Override tags when compiling under 1.4?
>>
>
>


--------------090705050708090206010303
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Wayne,<br>
<br>
I think the .class file compatibility must be greater or equal to the
source compatibility...&nbsp; It would be nice if Java could compile 1.5
level source down to 1.4 compatible byte code...<br>
<br>
<br>
Wayne Beaton wrote:
<blockquote cite="mid:1208551584.6093.98.camel@BADWOLF" type="cite">
<pre wrap="">Try setting the compiler level to 1.6, but the "generated .class files
compatibility" to 1.4

Wayne

On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
</pre>
<blockquote type="cite">
<pre wrap="">We've got a lot of code that uses @Override tags, and we need it to
compile under JDK 1.4. They cause compile errors. I'd rather not remove
the tags because they're really useful under 1.5.

Is there any way in Eclipse Preferences to temporarily ignore the
@Override tags when compiling under 1.4?
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>

--------------090705050708090206010303--
Re: How to ignore @Override under 1.4? [message #254306 is a reply to message #254299] Sat, 19 April 2008 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

It can some if you are using only things compatible with Java-1.4.

See http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg2 0212.html

Tom

Ed Merks schrieb:
> Wayne,
>
> I think the .class file compatibility must be greater or equal to the
> source compatibility... It would be nice if Java could compile 1.5
> level source down to 1.4 compatible byte code...
>
>
> Wayne Beaton wrote:
>> Try setting the compiler level to 1.6, but the "generated .class files
>> compatibility" to 1.4
>>
>> Wayne
>>
>> On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
>>
>>> We've got a lot of code that uses @Override tags, and we need it to
>>> compile under JDK 1.4. They cause compile errors. I'd rather not remove
>>> the tags because they're really useful under 1.5.
>>>
>>> Is there any way in Eclipse Preferences to temporarily ignore the
>>> @Override tags when compiling under 1.4?
>>>
>>
>>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: How to ignore @Override under 1.4? [message #254312 is a reply to message #254306] Sat, 19 April 2008 11:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Tom,

Interesting. I suppose that doesn't mean it tosses generics away if you
use them, which would be an interesting capability...


Tom Schindl wrote:
> Hi Ed,
>
> It can some if you are using only things compatible with Java-1.4.
>
> See http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg2 0212.html
>
> Tom
>
> Ed Merks schrieb:
>> Wayne,
>>
>> I think the .class file compatibility must be greater or equal to the
>> source compatibility... It would be nice if Java could compile 1.5
>> level source down to 1.4 compatible byte code...
>>
>>
>> Wayne Beaton wrote:
>>> Try setting the compiler level to 1.6, but the "generated .class files
>>> compatibility" to 1.4
>>>
>>> Wayne
>>>
>>> On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
>>>
>>>> We've got a lot of code that uses @Override tags, and we need it to
>>>> compile under JDK 1.4. They cause compile errors. I'd rather not
>>>> remove the tags because they're really useful under 1.5.
>>>>
>>>> Is there any way in Eclipse Preferences to temporarily ignore the
>>>> @Override tags when compiling under 1.4?
>>>>
>>>
>>>
>>
>
>
Re: How to ignore @Override under 1.4? [message #254316 is a reply to message #254312] Sat, 19 April 2008 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Well not at all if I read the document i referenced there appropiately
what the compiler does is simply adding casts inside the byte-code. This
could also be a pointer for our Java-5 discussion on the e4 mailinglist.

Tom

Ed Merks schrieb:
> Tom,
>
> Interesting. I suppose that doesn't mean it tosses generics away if you
> use them, which would be an interesting capability...
>
>
> Tom Schindl wrote:
>> Hi Ed,
>>
>> It can some if you are using only things compatible with Java-1.4.
>>
>> See http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg2 0212.html
>>
>> Tom
>>
>> Ed Merks schrieb:
>>> Wayne,
>>>
>>> I think the .class file compatibility must be greater or equal to the
>>> source compatibility... It would be nice if Java could compile 1.5
>>> level source down to 1.4 compatible byte code...
>>>
>>>
>>> Wayne Beaton wrote:
>>>> Try setting the compiler level to 1.6, but the "generated .class files
>>>> compatibility" to 1.4
>>>>
>>>> Wayne
>>>>
>>>> On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
>>>>
>>>>> We've got a lot of code that uses @Override tags, and we need it to
>>>>> compile under JDK 1.4. They cause compile errors. I'd rather not
>>>>> remove the tags because they're really useful under 1.5.
>>>>>
>>>>> Is there any way in Eclipse Preferences to temporarily ignore the
>>>>> @Override tags when compiling under 1.4?
>>>>>
>>>>
>>>>
>>>
>>
>>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: How to ignore @Override under 1.4? [message #254348 is a reply to message #254299] Sun, 20 April 2008 14:42 Go to previous message
Eclipse UserFriend
Thanks Ed. I was too lazy to try it myself; however, the properties let
you do this, so I thought it was worth a crack.

Wayne

On Sat, 2008-04-19 at 07:25 -0400, Ed Merks wrote:
> Wayne,
>
> I think the .class file compatibility must be greater or equal to the
> source compatibility... It would be nice if Java could compile 1.5
> level source down to 1.4 compatible byte code...
>
>
> Wayne Beaton wrote:
> > Try setting the compiler level to 1.6, but the "generated .class files
> > compatibility" to 1.4
> >
> > Wayne
> >
> > On Fri, 2008-04-18 at 13:12 -0500, Chris wrote:
> >
> > > We've got a lot of code that uses @Override tags, and we need it to
> > > compile under JDK 1.4. They cause compile errors. I'd rather not remove
> > > the tags because they're really useful under 1.5.
> > >
> > > Is there any way in Eclipse Preferences to temporarily ignore the
> > > @Override tags when compiling under 1.4?
> > >
> >
> >
>
Previous Topic:Move J2ee interfaces to other package with xdoclet
Next Topic:rse; dstore connector service; using port 0 error
Goto Forum:
  


Current Time: Thu Jul 17 11:55:48 EDT 2025

Powered by FUDForum. Page generated in 0.66338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top