Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
jtsk_2.0
-
None
-
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.