You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by "Dan Creswell (JIRA)" <ji...@apache.org> on 2007/08/04 16:15:53 UTC

[jira] Created: (RIVER-185) Lease.renew treatment of non-positive duration not specified

Lease.renew treatment of non-positive duration not specified
------------------------------------------------------------

                 Key: RIVER-185
                 URL: https://issues.apache.org/jira/browse/RIVER-185
             Project: River
          Issue Type: Bug
          Components: net_jini_core
    Affects Versions: jtsk_2.0
            Reporter: Dan Creswell
            Priority: Minor


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.