Issue Details (XML | Word | Printable)

Key: RVM-314
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Ian Rogers
Reporter: Ian Rogers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RVM

Support for Java 1.4 assertions

Created: 22/Oct/07 06:31 AM   Updated: 24/Oct/07 02:49 AM
Component/s: None
Affects Version/s: 2.9.0, 2.9.0.1, 2.9.1, 2.9.2
Fix Version/s: 2.9.3

Time Tracking:
Not Specified

Issue Links:
Supercedes
 


 Description  « Hide
Currently we always return true for java.lang.Class.desiredAssertionStatus and swallow -ea/-da/-esa/-dsa command line arguments. Some programs (the X10 compiler for one) fail assertions during their execution and therefore returning true causes these program to die with an AssertionError. We should implement this properly so that we are equivalent to a standard JVM.

This bug replaces bug 1147437 on sourceforge which has more details and poses the unanswered question as to whether we want to move from VM._assert to assert:
http://sourceforge.net/tracker/index.php?func=detail&aid=1147437&group_id=128805&atid=712768



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Ian Rogers added a comment - 23/Oct/07 11:30 AM
Patch committed in r13822.

Ian Rogers added a comment - 23/Oct/07 11:38 AM
TODO: integrate this properly with VMClassLoader.

Ian Rogers added a comment - 24/Oct/07 02:48 AM
Command line support for assertions works, however, this patch requires integration with the class loader. I've created a new issue (RVM-317) to track this.