SWT and JDK 1.5 [message #455091] |
Thu, 05 May 2005 22:20  |
Eclipse User |
|
|
|
Hello,
I just switched to JDK 1.5 and was playing around with the SWT source
code. When I built the SWT code using the given build.xml, the compiler
complained about my generic types (see error messages below). However, I
can use generic types in another Java project that I created in Eclipse.
I've already changed the compiler compliance level to 5.0.
What's possibly wrong?
----------
1. ERROR in C:\projects\org.eclipse.swt\Eclipse
SWT\common\org\eclipse\swt\graphics\ImageLoader.java
(at line 83)
Vector<ImageLoaderListener> imageLoaderListeners;
^^^^^^
The type Vector is not generic; it cannot be parameterized with arguments
<ImageLoaderListener>
----------
2. ERROR in C:\projects\org.eclipse.swt\Eclipse
SWT\common\org\eclipse\swt\graphics\ImageLoader.java
(at line 83)
Vector<ImageLoaderListener> imageLoaderListeners;
^^^^^^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
|
|
|
|
|
|
|
|
|
|
|
|
Re: SWT and JDK 1.5 [message #455860 is a reply to message #455703] |
Fri, 20 May 2005 13:17  |
Eclipse User |
|
|
|
It is true for all platforms.
When using the SWT/AWT integration class (SWT_AWT), it will "work" on
Windows with JDK 1.4 but many bugs with keyboard events etc are fixed by
using JDK 1.5.
"Jim Adams" <jim.adams@sas.com> wrote in message
news:d6imtn$kc9$2@news.eclipse.org...
> Is that true for all platforms or just linux?
>
> Veronika Irvine wrote:
>> JDK 1.2 is all that is required for standalone SWT. If you wish to use
>> the SWT/AWT integration class (SWT_AWT) then you need JDK 1.5.
>>
>> "Max Rotvel" <this.address@is.invalid> wrote in message
>> news:op.sqt8j1m6nl651a@trixie.katlan...
>>
>>>Hmm, I was browsing around on eclipse.org but couldn't find an answer to
>>>this:
>>>What is minimum version of the JRE required to run standalone SWT
>>>applications?
>>>
>>>On Tue, 10 May 2005 01:00:46 +0200, Steve Northover
>>><steve_northover@ca.ibm.com> wrote:
>>>
>>>
>>>>Eventually I imagine. It's not that we aren't following standards but
>>>>we
>>>>need to run on older verisons of the JDK.
>>>>
>>>>"kkconcome" <kkconcome@yahoo.com> wrote in message
>>>>news:c7a2d93fcbe415784e056e9bbd588795$1@www.eclipse.org...
>>>>
>>>>>Thanks Steve for your reply.
>>>>>
>>>>>So is SWT going to migrate to J2SE 5.0 and follow its standards?
>>>
>>>Regards
>>>--
>>> Max - rotvel AT bolignet-aarhus DOT dk
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.06866 seconds