[
https://issues.apache.org/jira/browse/RANGER-4243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
hunter updated RANGER-4243:
---------------------------
Description:
{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
public class RangerPolicy extends RangerBaseModelObject implements
java.io.Serializable {
...
private List<Map<String, RangerPolicyResource>> additionalResources;
...
}{code}
java.util.Map is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.util.Map
at private java.util.List
org.apache.ranger.plugin.model.RangerPolicy.additionalResources
Whether the class that implements the XmlAdapter interface should be configured?
was:
{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
public class RangerPolicy extends RangerBaseModelObject implements
java.io.Serializable {
...
private List<Map<String, RangerPolicyResource>> additionalResources;
}{code}
java.util.Map is an interface, and JAXB can't handle interfaces, whether the
class that implements the XmlAdapter interface should be configured?
> java.util.Map is an interface, and JAXB can't handle interfaces
> ---------------------------------------------------------------
>
> Key: RANGER-4243
> URL: https://issues.apache.org/jira/browse/RANGER-4243
> Project: Ranger
> Issue Type: Improvement
> Components: plugins
> Affects Versions: 2.4.0
> Reporter: hunter
> Priority: Major
>
> {code:java}
> @XmlAccessorType(XmlAccessType.FIELD)
> public class RangerPolicy extends RangerBaseModelObject implements
> java.io.Serializable {
> ...
> private List<Map<String, RangerPolicyResource>> additionalResources;
> ...
> }{code}
> java.util.Map is an interface, and JAXB can't handle interfaces.
> this problem is related to the following location:
> at java.util.Map
> at private java.util.List
> org.apache.ranger.plugin.model.RangerPolicy.additionalResources
> Whether the class that implements the XmlAdapter interface should be
> configured?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)