You have to change 
List<Map<String, String>> featureCountList = FastList.newInstance();
to
List<Map<String, ? extends Object>> featureCountList =
FastList.newInstance();

and
public static List<Map<String, String>> listCountByFeatureForType
to
public static List<Map<String, ? extends Object>>
listCountByFeatureForType

save and rebuild.



在 2010-10-06三的 09:45 +0200,[email protected]写道:
> Hello,
> 
> Here is what I've done :
>   svn co http://svn.apache.org/repos/asf/ofbiz/branches/release10.04
>          Ofbiz-10.04
>   cd Ofbiz-10.04
>   ant run-install
> 
> Here, I'm using the Sun (well, Oracle) jdk on a linux Debian amd64 laptop :
>   ~ § java -version
>   java version "1.6.0_21"
>   Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
>   Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
> The build is successful. Then, ./startofbiz.sh :
> 
>   Set OFBIZ_HOME to - /srv/www/Ofbiz-10.04
>   Exception in thread "main" java.net.SocketException: Invalid argument
>       at java.net.PlainSocketImpl.socketBind(Native Method)
>       at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
>       at java.net.ServerSocket.bind(ServerSocket.java:319)
>       at java.net.ServerSocket.<init>(ServerSocket.java:185)
>       at org.ofbiz.base.start.Start.initListenerThread(Start.java:167)
>       at org.ofbiz.base.start.Start.init(Start.java:93)
>       at org.ofbiz.base.start.Start.main(Start.java:410)
> 
> Same story with stable release 9.04.
> 
> BUT, when I use OpenJDK :
>   ~ § java -version
>   java version "1.6.0_18"
>   OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-2)
>   OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)
> 
> 9.04 builds successfully, and starts like a charm, whereas 10.04 fails
> to compile :
> 
>   build:
>      [echo] [build] ========== Start Building Framework (Compile) ==========
>   .../...
>   classes:
>     [javac16] /srv/www/Ofbiz-10.04/common.xml:93: warning: 
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set 
> to false for repeatable builds
>     [javac16] Compiling 55 source files to 
> /srv/www/Ofbiz-10.04/applications/product/build/classes
>     [javac16] 
> /srv/www/Ofbiz-10.04/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1231:
>  cannot find symbol
>     [javac16] symbol  : method 
> add(java.util.Map<java.lang.String,java.lang.Object>)
>     [javac16] location: interface 
> java.util.List<java.util.Map<java.lang.String,java.lang.String>>
>     [javac16]             
> featureCountList.add(UtilMisc.toMap("productFeatureId", (String) 
> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) 
> searchResult.get("pfcProductFeatureTypeId"), "description", (String) 
> searchResult.get("pfcDescription"), "featureCount", Long.toString((Long) 
> searchResult.get("featureCount"))));
>     [javac16]                             ^
>     [javac16] 1 error
> 
>   BUILD FAILED
>   /srv/www/Ofbiz-10.04/build.xml:186: The following error occurred while 
> executing this line:
>   /srv/www/Ofbiz-10.04/applications/build.xml:67: The following error 
> occurred while executing this line:
>   /srv/www/Ofbiz-10.04/macros.xml:27: The following error occurred while 
> executing this line:
>   /srv/www/Ofbiz-10.04/common.xml:93: Compile failed; see the compiler error 
> output for details.
> 
> I'm using ant 1.8 :
>   ~ § ant -version
>   Apache Ant version 1.8.0 compiled on March 11 2010
> 
> Any idea ?
> 

Reply via email to