Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-185

Lease.renew treatment of non-positive duration not specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • jtsk_2.0
    • None
    • net_jini_core
    • None
    • 4968751

    Description

      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4968751

      The leasing spec does not specify what Lease.renew should do for non-positive durations (other than Lease.ANY). Existing implementations throw IllegalArgumentException for negative durations, but are mixed as to whether a zero duration is accepted. What are the permitted outcomes?

      On a related note, service specifications are not consistent about the treatment of non-positive initial durations when creating resources. Some specify that IllegalArgumentException is thrown for non-positive, one specifies IAE is thrown for negative, and some are silent.The leasing spec does not specify what Lease.renew should do for non-positive durations (other than Lease.ANY). Existing implementations throw IllegalArgumentException for negative durations, but are mixed as to whether a zero duration is accepted. What are the permitted outcomes?

      On a related note, service specifications are not consistent about the treatment of non-positive initial durations when creating resources. Some specify that IllegalArgumentException is thrown for non-positive, one specifies IAE is thrown for negative, and some are silent.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dancreswell Dan Creswell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: