[ BUILD # : RC1 ]
[ JDK VERSION : 1.6.0 ]
I have run.jvmargs=-ea, but assertions are not executed.
See attachment ...
Created attachment 73113 [details]
Assertions not processed
Check out project from here:
reassigning to java team for evaluation
Works for me on Java Application Project. What is your project type? Do you execute it from command line or IDE?
Can you attach some how to reproduce?
Can you try to add -ea to your Project/Properties/Run/VM Options?
I don't understand the reason for your question.
I have written, that I have run.jvmargs=-ea. This will implicit:
- I execute from IDE (there is no run.jvmargs option for java commandline execution)
- I still have added -ea
Having a look to my attachment, and also to the given link will additionally twice answer your questions.
Have you really executed my reproducible example project from the given link ?
Statement assert is basic JLS construct, it should work -> P2
This issue likely depends on Issue 46298, 122677
I can reproduce it with provided project, but not with fresh J2se project
Not able to reproduce with normal project --> P3.
This issue is likely reproducible with every project which runs on supplemental/external Java platform.
Not having assertion check on external Java platform while running tests IMHO is big regression.
Works fine in dev (NB 7.2).
Hard to say when it was actually fixed, the JavaRunner was changed, testing in build-impl.xsl was several time changed.