[
https://issues.apache.org/jira/browse/TUSCANY-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Laws reassigned TUSCANY-2615:
-----------------------------------
Assignee: Simon Laws
> Fix exception handling causing NPE in databinding and incomplete test in
> componentContext vtest
> -----------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2615
> URL: https://issues.apache.org/jira/browse/TUSCANY-2615
> Project: Tuscany
> Issue Type: Bug
> Environment: All
> Reporter: Simon Laws
> Assignee: Simon Laws
> Fix For: Java-SCA-1.3.2
>
>
> In databinding-jaxb-axiom ONElement2JAXB
> Check that the reader is not null before closing it. as follows;
> } finally {
> if (reader != null) {
> reader.close();
> }
> In vtest/java-api/apis/ComponentContext ComponentContextTestCase.java
> testCast() method extend the catch block to take account of nested exceptions
> as follows.
> String check = "";
> try {
> a.illegalCast();
> } catch (IllegalArgumentException iae) {
> check = "IllegalCast";
> } catch (ServiceRuntimeException sre) {
> if (sre.getCause() instanceof IllegalArgumentException) {
> check = "IllegalCast";
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.