Skip to content

Refactor Permission and PermissionCollection classes  #32

@pfirmstone

Description

@pfirmstone

Does anyone really require Serializable Permission's?

If anyone wants to serialize a Permission or PermissionCollection, it's easy enough to serialize a list of strings, then parse those strings back into Permission objects.

It has a significant negative impact on Permission implementation code, the Permission spec states Permission's should be immutable, but often they are lazily initialized, in ConcurrentPolicyFile, each Permission must be initialized following construction to ensure safe publication, however we have no control over safe publication when a Permission is used by client code in permission checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions