Lorenz Quack created QPID-6508:
----------------------------------

             Summary: PropertiesFileInitialContextFactory silences important 
exceptions and is non-compliant with the InitialContext interface
                 Key: QPID-6508
                 URL: https://issues.apache.org/jira/browse/QPID-6508
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.32
            Reporter: Lorenz Quack
            Priority: Minor


1) PropertiesFileInitialContextFactory.getInitialContext catches IOExceptions 
and URISyntaxExceptions logs a warning and then does not re-throw the exception.
If users don't have logging set to warning they will miss important information.

2) PropertiesFileInitialContextFactory.getInitialContext modifies the 
environment parameter which is not conformant. To quote the 
InitialContextFactory.getInitialContext JavaDoc: "The environment parameter is 
owned by the caller. The implementation will _not modify the object_ or keep a 
reference to it \[...\]" (emphasis mine) 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to