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
             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.

Reply via email to