#3386 not recognising "assert"

For some reason, #3386 isn't recognisng the assert keyword as valid when
using JDK level 5....

Just me?

8 comments
Comment actions Permalink

For some reason, #3386 isn't recognisng the assert keyword as valid
when using JDK level 5....

>

It works fine for me.

Alain

0
Comment actions Permalink

If you just changed the language level, close and reopen the project. IDEA doesn't recognize language level changes until the project is reopened.

0
Comment actions Permalink

Alain Ravet wrote:

>> For some reason, #3386 isn't recognisng the assert keyword as valid
>> when using JDK level 5....

Weird - restarted IDEA and it picked it up. I'm pretty sure I had my
project already set as JDK5 but maybe I didn't... mmm.

0
Comment actions Permalink

This has been confusing for some time now.

Even though the JDK level field clearly states "requires restart" - many people over look that and
become baffled.

Perhaps IDEA should show a dialog when pressing the OK button after changing that field, stating
that this requires a restart - and ask the user whether he/she wants to reload the project.

What do you think?

Marcus Brito wrote:

If you just changed the language level, close and reopen the project. IDEA doesn't recognize language level changes until the project is reopened.

0
Comment actions Permalink

An excellent IDEA :)

0
Comment actions Permalink

Arik Kfir wrote:

Perhaps IDEA should show a dialog when pressing the OK button after changing that field, stating
that this requires a restart - and ask the user whether he/she wants to reload the project.


http://www.jetbrains.net/jira/browse/IDEADEV-182

Bas

0
Comment actions Permalink

10x, voted.


Bas Leijdekkers wrote:

Arik Kfir wrote:

>> Perhaps IDEA should show a dialog when pressing the OK button after
>> changing that field, stating that this requires a restart - and ask
>> the user whether he/she wants to reload the project.


http://www.jetbrains.net/jira/browse/IDEADEV-182

Bas

0
Comment actions Permalink

Arik Kfir wrote:

This has been confusing for some time now.
Even though the JDK level field clearly states "requires restart" - many
people over look that and become baffled.


I'm pretty sure I -had- already restarted (although I think I may have
just gone for a coffee and thought I had...).

Perhaps IDEA should show a dialog when pressing the OK button after
changing that field, stating that this requires a restart - and ask the
user whether he/she wants to reload the project.
What do you think?


Maybe, or IDEA should just not require a restart.

(One minor thought, which hasn't hurt me yet, but it would also be good
to have language level at the module, not project level- I'm sure theres
projects where that would be helpfull).


Marcus Brito wrote:

>> If you just changed the language level, close and reopen the project.
>> IDEA doesn't recognize language level changes until the project is
>> reopened.

0

Please sign in to leave a comment.