Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-23

Fix jdk1.3 only code that has crept into Jexl tests

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0.1
    • Labels:
      None

      Description

      Download jdk1.2 from http://java.sun.com/products/jdk/1.2/download.html and install.
      Build JEXL with maven:

      maven -Dmaven.compile.fork=yes -Dmaven.compile.executable=c:\jdk1.2.2\bin\javac.exe -Dbuild.compiler=classic clean test

      Errors:

      test:compile:
      [javac] Compiling 13 source files to C:\source\jakarta\jakarta-commons\jexl\target\test-classes
      [javac] C:\source\jakarta\jakarta-commons\jexl\src\test\org\apache\commons\jexl\JexlTest.java:331: Method singletonMap(java.lang.String, java.lang.String) not found in class java.util.Collections.
      [javac] jc.getVars().put("map", Collections.singletonMap( "size", "cheese"));
      [javac] ^
      [javac] C:\source\jakarta\jakarta-commons\jexl\src\test\org\apache\commons\jexl\JexlTest.java:754: Method singletonMap(java.lang.String, java.util.List) not found in class java.util.Collections.
      [javac] Map m = Collections.singletonMap("aList", Collections.EMPTY_LIST);
      [javac] ^
      [javac] 2 errors

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              diongillard dion gillard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: