You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "dion gillard (JIRA)" <ji...@apache.org> on 2006/09/26 14:55:50 UTC

[jira] Created: (JEXL-23) Fix jdk1.3 only code that has crept into Jexl tests

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


[jira] Resolved: (JEXL-23) Fix jdk1.3 only code that has crept into Jexl tests

Posted by "dion gillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JEXL-23?page=all ]

dion gillard resolved JEXL-23.
------------------------------

    Resolution: Fixed

Code committed in http://svn.apache.org/viewvc?view=rev&revision=450035

> 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