Using java 5 features in plugin development [message #287116] |
Fri, 24 June 2005 08:15 |
Eclipse User |
|
|
|
Originally posted by: michael.illgner.email.de
Hi,
It is possible or allowed to use java 5.0 features like generics in
plugin development ?
What happens if a typed collection is used as an input parameter for a
plugin ?
|
|
|
|
Re: Using java 5 features in plugin development [message #287232 is a reply to message #287116] |
Mon, 27 June 2005 22:01 |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Michael Illgner wrote:
> Hi,
> It is possible or allowed to use java 5.0 features like generics in
> plugin development ?
> What happens if a typed collection is used as an input parameter for a
> plugin ?
Doing so will mean that all users of your plugin will be required to run
their Eclipse with a 1.5 JVM. I would recommend against that, since
adoption is still slow or uncertain at best.
If you DO decide that 1.5 is required, make it fail gracefully and alert
the user of what the problem is when 1.5 is not present.
Eric
|
|
|
Re: Using java 5 features in plugin development [message #287247 is a reply to message #287232] |
Tue, 28 June 2005 07:22 |
Eclipse User |
|
|
|
Originally posted by: michael.illgner.email.de
Eric Rizzo wrote:
> Michael Illgner wrote:
>
....
> Doing so will mean that all users of your plugin will be required to run
> their Eclipse with a 1.5 JVM. I would recommend against that, since
> adoption is still slow or uncertain at best.
So, if I build an RCP application it should be alright.
Our server staff wants to use jdk 5.0 features, and so some of the used
5.0 classes are leaking through the server API to the RCP frontend ...
|
|
|
Re: Using java 5 features in plugin development [message #287328 is a reply to message #287247] |
Tue, 28 June 2005 19:36 |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Michael Illgner wrote:
> Eric Rizzo wrote:
>
>> Michael Illgner wrote:
>>
> ...
>
>> Doing so will mean that all users of your plugin will be required to
>> run their Eclipse with a 1.5 JVM. I would recommend against that,
>> since adoption is still slow or uncertain at best.
>
>
> So, if I build an RCP application it should be alright.
Eclipse already runs fine under a 1.5 JVM so I would think you're OK.
> Our server staff wants to use jdk 5.0 features, and so some of the used
> 5.0 classes are leaking through the server API to the RCP frontend ...
Oooh, that sounds not-too-friendly. The client<->server API should be as
clean and simple as possible, and have as few dependencies as possible
(I consider "latest and greatest" Java version to be a dependency on par
with depending on a third-party library, which for an API is a
questionable design decision IMO).
HTH,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03212 seconds