JAXWS: Generic parameters are missed when determining JAXBContext packages
--------------------------------------------------------------------------
Key: AXIS2-4765
URL: https://issues.apache.org/jira/browse/AXIS2-4765
Project: Axis2
Issue Type: Bug
Reporter: Rich Scheuerle
Assignee: Rich Scheuerle
Background:
The JAX-WS runtime uses the information in the metadata *Description classes to
determine a list of referenced packages and classes.
This information is built and stored in the MarshalServiceRuntimeDescription
getPackages method.
And the package information is used to build a complete JAXBContext for
marshaling and unmarshaling data.
Problem:
The *Description classes do not handle generics. Thus the OperationDescription
for the return type only captures (List) and not (Foo) from
web methods like the following:
public List<Foo> myMethod();
The missing reference and subsequent missing package reference results in an
incomplete JAXBContext.
The incomplete JAXBContext may result in UnmarshalException or MarshalException
errors.
Proposal:
I am working on a code change to the MarshalServiceRuntimeDesc builder logic to
find the generic parameter arguments (like Foo in the sample above).
I am also designing two validation tests.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]