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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/22 15:48:22 UTC

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

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
            Reporter: Jamie goodyear


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

        

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

Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear closed KARAF-1279.
---------------------------------

    
> 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

        

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

Posted by "Jamie goodyear (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear updated KARAF-1279:
----------------------------------

    Priority: Blocker  (was: Major)
    
> 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

        

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

Posted by "Jamie goodyear (Resolved) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Jamie goodyear (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235656#comment-13235656 ] 

Jamie goodyear commented on KARAF-1279:
---------------------------------------

Fixed IOException calls to be Java 5 safe.

Sending       management/mbeans/config/src/main/java/org/apache/karaf/management/mbeans/config/internal/ConfigMBeanImpl.java
Sending shell/config/src/main/java/org/apache/karaf/shell/config/ConfigCommandSupport.java
Transmitting file data ..
Committed revision 1303843.
                
> 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

        

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

Posted by "Jamie goodyear (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear updated KARAF-1279:
----------------------------------

    Affects Version/s: 2.2.6
        Fix Version/s: 2.2.6
    
> 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

        

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

Posted by "Jamie goodyear (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238336#comment-13238336 ] 

Jamie goodyear commented on KARAF-1279:
---------------------------------------

Improve tracking of exception by setting initCause.

$ svn ci
Sending        management/mbeans/config/src/main/java/org/apache/karaf/management/mbeans/config/internal/ConfigMBeanImpl.java
Sending        shell/config/src/main/java/org/apache/karaf/shell/config/ConfigCommandSupport.java
Transmitting file data ..
Committed revision 1305334.
                
> 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

        

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

Posted by "Jamie goodyear (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear reassigned KARAF-1279:
-------------------------------------

    Assignee: Jamie goodyear
    
> 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
>            Reporter: Jamie goodyear
>            Assignee: Jamie goodyear
>
> 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