Karaf
  1. Karaf
  2. KARAF-1909

Compile error using IBM JDK on management mbeans SystemMBeanImpl

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: karaf-core
    • Labels:
      None

      Description

      Build 2.3.0-SNAPSHOT with IBM JDK, will observe compile errors:

      [INFO] Compilation failure
      
      /x1/karaf/skaraf-2.3.x/management/mbeans/system/src/main/java/org/apache/karaf/management/mbeans/system/internal/SystemMBeanImpl.java:[119,72] error: cannot find symbol
        symbol:   method setStartLevel(int,<null>)
        location: class Object
      /x1/karaf/skaraf-2.3.x/management/mbeans/system/src/main/java/org/apache/karaf/management/mbeans/system/internal/SystemMBeanImpl.java:[123,79] error: cannot find symbol
      

        Issue Links

          Activity

          Jamie goodyear created issue -
          Jamie goodyear made changes -
          Field Original Value New Value
          Link This issue is a clone of KARAF-1907 [ KARAF-1907 ]
          Jamie goodyear made changes -
          Description Build 2.3.0-SNAPSHOT with IBM JDK, will observe compile errors:

          {code}
          [INFO] Compilation failure

          /x1/karaf/karaf-2.3.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/ListBundleServices.java:[51,62] error: type ServiceReference does not take parameters
          /x1/karaf/karaf-2.3.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/ListBundleServices.java:[99,49] error: type ServiceReference does not take parameters
          /x1/karaf/karaf-2.3.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/ListBundleServices.java:[46,28] error: type ServiceReference does not take parameters
          /x1/karaf/karaf-2.3.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/ListBundleServices.java:[59,29] error: type ServiceReference does not take parameters
          {code}
          Build 2.3.0-SNAPSHOT with IBM JDK, will observe compile errors:

          {code}
          [INFO] Compilation failure

          /x1/karaf/skaraf-2.3.x/management/mbeans/system/src/main/java/org/apache/karaf/management/mbeans/system/internal/SystemMBeanImpl.java:[119,72] error: cannot find symbol
            symbol: method setStartLevel(int,<null>)
            location: class Object
          /x1/karaf/skaraf-2.3.x/management/mbeans/system/src/main/java/org/apache/karaf/management/mbeans/system/internal/SystemMBeanImpl.java:[123,79] error: cannot find symbol
          {code}
          Hide
          Jamie goodyear added a comment -

          "FrameworkStartLevel.setStartLevel(startLevel, null)" should be an ok call to make according to the API:
          http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/startlevel/FrameworkStartLevel.html

          Show
          Jamie goodyear added a comment - "FrameworkStartLevel.setStartLevel(startLevel, null)" should be an ok call to make according to the API: http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/startlevel/FrameworkStartLevel.html
          Hide
          Jamie goodyear added a comment -

          KARAF-1909 Compile error using IBM JDK on management mbeans SystemMBeanImpl

          Adding explicit casts for IBM JDK compatibility.

          Sending management/mbeans/system/src/main/java/org/apache/karaf/management/mbeans/system/internal/SystemMBeanImpl.java
          Transmitting file data .
          Committed revision 1396871.

          Show
          Jamie goodyear added a comment - KARAF-1909 Compile error using IBM JDK on management mbeans SystemMBeanImpl Adding explicit casts for IBM JDK compatibility. Sending management/mbeans/system/src/main/java/org/apache/karaf/management/mbeans/system/internal/SystemMBeanImpl.java Transmitting file data . Committed revision 1396871.
          Jamie goodyear made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Jamie goodyear made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          1h 46m 1 Jamie goodyear 11/Oct/12 00:17
          In Progress In Progress Resolved Resolved
          5s 1 Jamie goodyear 11/Oct/12 00:17

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development