Questions about generics support

A few Qs for JB or knowledgeable community members:
1) It seems that all I have to do to enable generics support is to
specify a 1.5 (sorry, 5.0) JDK and enable the 5.0 language-level support
- so what does the "Use generics-enabled compiler" flag do?
2) Is the "Enable JSR-014" wizard still useful, now that we have access
to betas of 5.0? (Do Sun still provide separate JSR-014 betas?)
3) Once I change the project JDK to be 5.0, the parser doesn't complain
about generics constructs, even when the language level is 1.4 (although
the compiler complains). Is this a bug?

R

1 comment
Comment actions Permalink


"Robert Gibson" <robbie_usenet@yahoo.co.uk> wrote in message
news:ccm5th$1vb$1@is.intellij.net...

A few Qs for JB or knowledgeable community members:
1) It seems that all I have to do to enable generics support is to
specify a 1.5 (sorry, 5.0) JDK and enable the 5.0 language-level support

Exactly

- so what does the "Use generics-enabled compiler" flag do?

It allows to use early access compiler instead of jdk beta. This is still
useful to many developers, for example those on Macs.

3) Once I change the project JDK to be 5.0, the parser doesn't complain
about generics constructs, even when the language level is 1.4 (although
the compiler complains). Is this a bug?

You may consider it a minor bug. Though I don't see the reason not to parse
generics always: not parsing generics constructs for 1.4 language level
cannot result in valid jdk1.4 syntax program, so it is safe.

Eugene


0

Please sign in to leave a comment.