commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dion gillard (JIRA)" <j...@apache.org>
Subject [jira] Created: (JEXL-23) Fix jdk1.3 only code that has crept into Jexl tests
Date Tue, 26 Sep 2006 12:55:50 GMT
Fix jdk1.3 only code that has crept into Jexl tests
---------------------------------------------------

                 Key: JEXL-23
                 URL: http://issues.apache.org/jira/browse/JEXL-23
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 1.1
            Reporter: dion gillard
            Priority: Minor
             Fix For: 1.1.1


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message