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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development