Karaf
  1. Karaf
  2. KARAF-1906

Compile error using IBM JDK on JAAS module.

    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/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/publickey/PublickeyLoginModule.java:[95,33] error: incompatible types
        required: String
        found:    Object
      /x1/karaf/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java:[73,36] error: incompatible types
        required: String
        found:    Object
      /x1/karaf/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java:[120,44] error: incompatible types
        required: String
        found:    Object
      /x1/karaf/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java:[135,35] error: incompatible types
        required: String
        found:    Object
      /x1/karaf/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java:[150,36] error: incompatible types
        required: String
        found:    Object
      /x1/karaf/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java:[172,36] error: incompatible types
        required: String
        found:    Object
      /x1/karaf/karaf-2.3.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesLoginModule.java:[86,33] error: incompatible types
      

        Issue Links

          Activity

          Hide
          Jamie goodyear added a comment -

          Added explicit casts for IBM JDK compatibility.

          $ svn ci
          Sending jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java
          Sending jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesLoginModule.java
          Sending jaas/modules/src/main/java/org/apache/karaf/jaas/modules/publickey/PublickeyLoginModule.java
          Transmitting file data ...
          Committed revision 1396578.

          Show
          Jamie goodyear added a comment - Added explicit casts for IBM JDK compatibility. $ svn ci Sending jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesBackingEngine.java Sending jaas/modules/src/main/java/org/apache/karaf/jaas/modules/properties/PropertiesLoginModule.java Sending jaas/modules/src/main/java/org/apache/karaf/jaas/modules/publickey/PublickeyLoginModule.java Transmitting file data ... Committed revision 1396578.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development