ICEfaces
  1. ICEfaces
  2. ICE-7485

JDK 1.6+ API use in ACE components preventing compiling with JDK 1.5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta2
    • Fix Version/s: 3.0.RC1, 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3, rvn # 26490
    • Assignee Priority:
      P1

      Description

      The following ACE components are using a JDK 1.6 method that fails compilation using JDK 1.5 on the build server:

      [loading /home/builder/jdk1.5.0_10/jre/lib/rt.jar(java/lang/UnsupportedOperationException.class)]
      /home/builder/cruise-builds/checkout/ICEfaces3-Nightly/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java:517: cannot find symbol
      symbol : method isEmpty()
      location: class java.lang.String
      if (value != null && !value.isEmpty())
      ^

      [checking org.icefaces.ace.component.dataexporter.XMLExporter]
      /home/builder/cruise-builds/checkout/ICEfaces3-Nightly/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/XMLExporter.java:134: cannot find symbol
      symbol : method isEmpty()
      location: class java.lang.String
      if (!footer.isEmpty())
      ^

        Activity

        Hide
        Ken Fyten added a comment -

        Fixed.

        [15:42:22] - Committed revision 26492

        Show
        Ken Fyten added a comment - Fixed. [15:42:22] - Committed revision 26492
        Hide
        Ken Fyten added a comment -

        Another occurrence:

        home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableRowExpansion.java:73: java.util.AbstractMap.SimpleEntry is not public in java.util.AbstractMap; cannot be accessed from outside package
        detailData.add(new AbstractMap.SimpleEntry(new Car(c.getId()1000, c.getName()" Custom Spec", c.getChassis(), c.getWeight(), c.getAcceleration()*2, c.getMpg()/2, c.getCost()*3), null));
        ^
        /home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableRowExpansion.java:74: java.util.AbstractMap.SimpleEntry is not public in java.util.AbstractMap; cannot be accessed from outside package
        carsData.add(new AbstractMap.SimpleEntry(c, detailData));
        ^

        Show
        Ken Fyten added a comment - Another occurrence: home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableRowExpansion.java:73: java.util.AbstractMap.SimpleEntry is not public in java.util.AbstractMap; cannot be accessed from outside package detailData.add(new AbstractMap.SimpleEntry(new Car(c.getId() 1000, c.getName() " Custom Spec", c.getChassis(), c.getWeight(), c.getAcceleration()*2, c.getMpg()/2, c.getCost()*3), null)); ^ /home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableRowExpansion.java:74: java.util.AbstractMap.SimpleEntry is not public in java.util.AbstractMap; cannot be accessed from outside package carsData.add(new AbstractMap.SimpleEntry(c, detailData)); ^
        Hide
        Ken Fyten added a comment -

        Another case:

        [loading /home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/ace/component/build/exploded/org/icefaces/ace/component/column/ColumnBase.class]
        /home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java:27: package com.sun.servicetag does not exist
        import com.sun.servicetag.SystemEnvironment;
        ^

        Show
        Ken Fyten added a comment - Another case: [loading /home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/ace/component/build/exploded/org/icefaces/ace/component/column/ColumnBase.class] /home/builder/cruise-builds/checkout/ICEfaces3-Continuous/bundle/ICEfaces-3.0.0.SNAPSHOT-bin/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java:27: package com.sun.servicetag does not exist import com.sun.servicetag.SystemEnvironment; ^
        Hide
        Nils Lundquist added a comment -

        Removed accidental com.sun import.

        Show
        Nils Lundquist added a comment - Removed accidental com.sun import.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: