Karaf
  1. Karaf
  2. KARAF-1279

IOExceptions used in an incompatible way with Java 5.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2.6
    • Fix Version/s: 2.2.6
    • Component/s: None
    • Labels:
      None

      Description

      2.2.6-snapshot builds fail on Java 5.

      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
      

      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

      } catch (Exception e) {
          throw new IOException(e);
      }
      

        Activity

        Jamie goodyear created issue -
        Jamie goodyear made changes -
        Field Original Value New Value
        Assignee Jamie goodyear [ jgoodyear ]
        Jamie goodyear made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Jamie goodyear made changes -
        Fix Version/s 2.2.6 [ 12319142 ]
        Affects Version/s 2.2.6 [ 12319142 ]
        Hide
        Jamie goodyear added a comment -

        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.

        Show
        Jamie goodyear added a comment - 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.
        Jamie goodyear made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Jamie goodyear added a comment -

        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.

        Show
        Jamie goodyear added a comment - 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.
        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jamie goodyear
            Reporter:
            Jamie goodyear
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development