RVM

Support for Java 1.4 assertions

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 2.9.0, 2.9.0.1, 2.9.1, 2.9.2
  • Fix Version/s: 2.9.3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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

Issue Links

Activity

Hide
Ian Rogers added a comment -

Patch committed in r13822.

Show
Ian Rogers added a comment - Patch committed in r13822.
Hide
Ian Rogers added a comment -

TODO: integrate this properly with VMClassLoader.

Show
Ian Rogers added a comment - TODO: integrate this properly with VMClassLoader.
Hide
Ian Rogers added a comment -

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.

Show
Ian Rogers added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: