Github user necouchman commented on a diff in the pull request:

    
https://github.com/apache/incubator-guacamole-client/pull/206#discussion_r147567513
  
    --- Diff: 
extensions/guacamole-auth-cas/src/main/java/org/apache/guacamole/auth/cas/conf/PrivateKeyGuacamoleProperty.java
 ---
    @@ -49,38 +49,45 @@ public PrivateKey parseValue(String value) throws 
GuacamoleServerException {
             if (value == null || value.isEmpty())
                 return null;
     
    +        FileInputStream keyStreamIn = null;
    +
             try {
    +            try {
    --- End diff --
    
    So, the problem I'm running into is that the `close()` operation can 
actually throw an `IOException`, which is why I have to nest the `try{}` 
statements.  Apparently with Java 7+ it gets a little easier, but 6 is a little 
onerous:
    
    https://stackoverflow.com/questions/156508/closing-a-java-fileinputstream


---

Reply via email to