Mixing JDKs

Hi!

In a project I have a module that uses JDK 1.4.2 and two dependent modules - one of them using JDK 5 and the other JDK 1.4.2 .
The problem is now that I can only select the language level for the whole project but not for the specific modules.
IDEA now and then proposes to add @Overwrite annotations to the 1.4.2-modules and won't notice it as an error when I use a JDK 5 construct in the 1.4.2-modules.
Would it be possible to change the language level selection to a module specific setting. Just like with the JDK selection there could be a project wide setting and a modules-specific one.

Cheers,
Robert

4 comments

Hi Robert,
this has been requested quite often.
There is already a Jira issue for that and IIRC it will be fixed for Idea 6.0.

Robert F. Beeger wrote:

Hi!

In a project I have a module that uses JDK 1.4.2 and two dependent modules - one of them using JDK 5 and the other JDK 1.4.2 .
The problem is now that I can only select the language level for the whole project but not for the specific modules.
IDEA now and then proposes to add @Overwrite annotations to the 1.4.2-modules and won't notice it as an error when I use a JDK 5 construct in the 1.4.2-modules.
Would it be possible to change the language level selection to a module specific setting. Just like with the JDK selection there could be a project wide setting and a modules-specific one.

Cheers,
Robert

0

Robert,
this was indeed discussed quite often, and we are seeking for a solution. To
make us more productive in solving the problem, which is indeed not easy to
solve, you could vote for the request in jira (don't remember the number,
excuse me)

Eugene.

"Robert F. Beeger" <no_mail@jetbrains.com> wrote in message
news:24592569.1135021096816.JavaMail.itn@is.intellij.net...

Hi!

>

In a project I have a module that uses JDK 1.4.2 and two dependent

modules - one of them using JDK 5 and the other JDK 1.4.2 .

The problem is now that I can only select the language level for the whole

project but not for the specific modules.

IDEA now and then proposes to add @Overwrite annotations to the

1.4.2-modules and won't notice it as an error when I use a JDK 5 construct
in the 1.4.2-modules.

Would it be possible to change the language level selection to a module

specific setting. Just like with the JDK selection there could be a project
wide setting and a modules-specific one.
>

Cheers,
Robert



0

Oh, seems I was to lazy, should have checked jira first. It's #2450 BTW.

0

Please sign in to leave a comment.