jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • RVM
  • RVM-317

Integrate assertion support with Classpath

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.9.3
  • Fix Version/s: 1000
  • Component/s: Runtime: Class Library: GNU Classpath
  • Labels:
    None

Description

RVM-314 added support for assertions from the command line to the RVM. This is done by support in our own java.lang.Class, VM_Class and VM_ClassLoader. There is some support for assertions in Classpath for assertions set using the java.lang.ClassLoader methods of setDefaultAssertionStatus, setPackageAssertionStatus and setClassAssertionStatus. The RVM java.lang.Class desiredAssertionStatus method doesn't integrate with these methods in ClassLoader, so enabling assertions via this API won't work.

In a situation like this we'd normally switch to using the Classpath implementation of Class desiredAssertionStatus however this doesn't seem a good idea here because, using a map to match package names doesn't seem likely to work to me, and the Class desiredAssertionStatus method doesn't just return a final field (which is typically accessed via a Class literal and can therefore be folded away) and as such looks deeply suboptimal.

Part of the problem here is that assertions have received a lack of TLC from Classpath, so in doing a proper implementation we'd need to rewrite a substantial part of Classpath.

Issue Links

supercedes

Bug - A problem which impairs or prevents the functions of the product. RVM-314 Support for Java 1.4 assertions

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Ian Rogers
Vote (0)
Watch (0)

Dates

  • Created:
    24/Oct/07 2:48 AM
    Updated:
    09/Jun/08 7:19 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.