You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jamie goodyear (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/22 16:40:23 UTC

[jira] [Resolved] (KARAF-1279) IOExceptions used in an incompatible way with Java 5.

     [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear resolved KARAF-1279.
-----------------------------------

    Resolution: Fixed
    
> IOExceptions used in an incompatible way with Java 5.
> -----------------------------------------------------
>
>                 Key: KARAF-1279
>                 URL: https://issues.apache.org/jira/browse/KARAF-1279
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.6
>            Reporter: Jamie goodyear
>            Assignee: Jamie goodyear
>            Priority: Blocker
>             Fix For: 2.2.6
>
>
> 2.2.6-snapshot builds fail on Java 5.
> {code}
> INFO] Compilation failure
> /x1/asf/karaf-2.2.x/shell/config/src/main/java/org/apache/karaf/shell/config/ConfigCommandSupport.java:[165,22] cannot find symbol
> symbol  : constructor IOException(java.lang.Exception)
> location: class java.io.IOException
> {code}
> The below code snippet will not work with Java 5 IOException constructor: http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html
> {code}
> } catch (Exception e) {
>     throw new IOException(e);
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira