![]() Please wait while updating issue type...
Could not save your changes
This issue has been changed since you started editing it
Data that has been changed is highlighted in red below. Undo your changes to see the updated information
You have changed this issue, but haven't saved your changes yet. To save it, press the Save changes button to the right
This issue is blocking the next release
![]() There are no comments
There is nothing attached to this issue
This issue has no duplicates
2b37fc2
Oct 20, 05:54 - Preceeded by 7043b5bd35adfdb8b64afa99b006393ff2899dba
Log entry
implemented issue JPPF-554 in master Changed files
Affected issues
6a7d0c1
Oct 20, 05:54 - Preceeded by 750ea10fe3f4d7bb45db00361290d4deb16eb303
Log entry
implemented issue JPPF-554 in b_6_0 Changed files
Affected issues
|
|||||||||||||||||||||||||||||
Really delete this comment?
I'm not sure I understand the use case for a "reject all" policy. Is this to be used as a convenience, to easily disable parts of complex policies?
Really delete this comment?
Really delete this comment?
True - but this applies only to job's execution policy, and not to policy itself. In many other places you cannot, and shouldn't, use null as "empty policy". Like - OrRule/AndRule doesn't handle null as "accept all".
I actually was quite suprised that
returns null for empty policy. So
will throw NPE.
I agree on RejectAll - you can always have Not(AcceptAll) - assuming positive one is there :). As "no policy applied" means "accept all" - it seems ok even to name it "empty" policy.
Finally - adding "empty" element, your policy algebra becomes monoid (so one will be able to fold on it).
And as always - world without nulls is much nicer. Null is something like unchecked exception in java. Everyone knows it can appear here and there, but you are always suprised when this actually happens :P.
marcin
Really delete this comment?
There is also the problem of missing arguments checks for execution policy rules constructors, for which I registered a separate Bug report JPPF-555 - No argument checking in execution policies constructors.
Regarding RejectAll, I finally decided to implement it. If we want to make things convenient, we might as well make them as convenient as possible.
Really delete this comment?