Hi Dev,

Thanks for the good work, this library helps us a lot!

In version 2.0.5, org.apache.neethi.PolicyEngine:

    public static Policy getPolicy(OMElement element) {
        return getPolicyOperator(element);
    }

Above method handles just fine if root element is not a policy element.

In version 3.0.2, org.apache.neethi.PolicyEngine:

    public static Policy getPolicy(OMElement element) {
        return getBuilder().getPolicy(element);
    }

Above method throws IllegalArgumentException if root element is not a
policy element.
I suppose this is due to following fix:
https://issues.apache.org/jira/browse/NEETHI-12

Question: Is the behavior in 3.0.2 by design and the behavior in 2.0.5 is a bug?

Thanks!
CH Lee

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to