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 (Commented) (JIRA)" <ji...@apache.org> on 2012/03/22 16:40:22 UTC
[jira] [Commented] (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: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