river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Creswell (JIRA)" <j...@apache.org>
Subject [jira] Created: (RIVER-185) Lease.renew treatment of non-positive duration not specified
Date Sat, 04 Aug 2007 14:15:53 GMT
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.


Mime
View raw message