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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26492 Mon Nov 21 14:36:48 MST 2011 ken.fyten ICE-7485 - Remove use of JDK 1.6 APIs.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/XMLExporter.java
        Ken Fyten created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Assignee Priority P1
        Assignee Nils Lundquist [ nils.lundquist ]
        Ken Fyten made changes -
        Assignee Nils Lundquist [ nils.lundquist ] Ken Fyten [ ken.fyten ]
        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
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Priority P1
        Resolution Fixed [ 1 ]
        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)); ^
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P1
        Assignee Ken Fyten [ ken.fyten ] Nils Lundquist [ nils.lundquist ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26517 Tue Nov 22 14:23:55 MST 2011 nils.lundquist ICE-7485 - Fixed Java6 dependency via public duplicate of SimpleEntry.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableRowExpansion.java
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/util/SimpleEntry.java
        Nils Lundquist made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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; ^
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26522 Wed Nov 23 09:02:43 MST 2011 nils.lundquist ICE-7485 - Removed unused import.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
        Hide
        Nils Lundquist added a comment -

        Removed accidental com.sun import.

        Show
        Nils Lundquist added a comment - Removed accidental com.sun import.
        Nils Lundquist made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 3.0.RC1 [ 10300 ]
        Fix Version/s 3.0 [ 10241 ]
        Ken Fyten made changes -
        Fix Version/s 3.0 [ 10241 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: