Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1279

IOExceptions used in an incompatible way with Java 5.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.2.6
    • 2.2.6
    • None
    • 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);
      }
      

      Attachments

        Activity

          People

            jgoodyear Jamie Mark Goodyear
            jgoodyear Jamie Mark Goodyear
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: