Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1
-
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