ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C.h. Lee" <lee...@gmail.com>
Subject [neethi 3.0.2] if root element is not a policy element
Date Wed, 01 Aug 2012 20:46:14 GMT
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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message