[ 
https://issues.apache.org/jira/browse/OFBIZ-4749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406334#comment-13406334
 ] 

Sergey commented on OFBIZ-4749:
-------------------------------

After patching new error appears. Build log is bellow.
  
[javac16] c:\Program Files\Apache Software 
Foundation\apache-ofbiz\applications\product\src\org\ofbiz\product\product\ProductSearchEvents.java:317:
 error: invalid inferred types for V; inferred type does not conform to 
declared bound(s)
  [javac16]                 Map<String, String> messageMap = 
UtilMisc.toMap("numAdded", Integer.valueOf(numAdded), "productFeatureId", 
productFeatureId);
  [javac16]                                                                ^
  [javac16]     inferred: Integer
  [javac16]     bound(s): String
  [javac16]   where V,V1,V2 are type-variables:
  [javac16]     V extends Object declared in method 
<V,V1,V2>toMap(String,V1,String,V2)
  [javac16]     V1 extends V declared in method 
<V,V1,V2>toMap(String,V1,String,V2)
  [javac16]     V2 extends V declared in method 
<V,V1,V2>toMap(String,V1,String,V2)
  [javac16] c:\Program Files\Apache Software 
Foundation\apache-ofbiz\applications\product\src\org\ofbiz\product\product\ProductSearchEvents.java:367:
 error: invalid inferred types for V; inferred type does not conform to 
declared bound(s)
  [javac16]                 Map<String, String> messageMap = 
UtilMisc.toMap("numRemoved", Integer.valueOf(numRemoved), "productFeatureId", 
productFeatureId);
  [javac16]                                                                ^
  [javac16]     inferred: Integer
  [javac16]     bound(s): String
  [javac16]   where V,V1,V2 are type-variables:
  [javac16]     V extends Object declared in method 
<V,V1,V2>toMap(String,V1,String,V2)
  [javac16]     V1 extends V declared in method 
<V,V1,V2>toMap(String,V1,String,V2)
  [javac16]     V2 extends V declared in method 
<V,V1,V2>toMap(String,V1,String,V2)
  [javac16] c:\Program Files\Apache Software 
Foundation\apache-ofbiz\applications\product\src\org\ofbiz\product\product\ProductSearchSession.java:1231:
 error: no suitable method found for add(Map<String,Object>)
  [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]     method List.add(int,Map<String,String>) is not applicable
  [javac16]       (actual and formal argument lists differ in length)
  [javac16]     method List.add(Map<String,String>) is not applicable
  [javac16]       (actual argument Map<String,Object> cannot be converted to 
Map<String,String> by method invocation conversion)
  [javac16] c:\Program Files\Apache Software 
Foundation\apache-ofbiz\applications\product\src\org\ofbiz\shipment\shipment\ShipmentServices.java:1002:
 error: invalid inferred types for V; inferred type does not conform to 
declared bound(s)
  [javac16]             Map<String, String> input = 
UtilMisc.toMap("shipmentId", shipmentId, "shipmentRouteSegmentId", 
shipmentRouteSegmentId, "userLogin", userLogin);
  [javac16]                                                       ^
  [javac16]     inferred: GenericValue
  [javac16]     bound(s): String
  [javac16]   where V,V1,V2,V3 are type-variables:
  [javac16]     V extends Object declared in method 
<V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
  [javac16]     V1 extends V declared in method 
<V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
  [javac16]     V2 extends V declared in method 
<V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
  [javac16]     V3 extends V declared in method 
<V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
  [javac16] 4 errors
  [javac16] 1 warning
                
> OfBiz 10.04 Does not compile with Oracle JDK 7
> ----------------------------------------------
>
>                 Key: OFBIZ-4749
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4749
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Release 10.04
>         Environment: Windows 7, Oracle JDK 7
>            Reporter: Karl Laird
>            Priority: Critical
>              Labels: build-failure
>             Fix For: Release 10.04
>
>
> The OFBIZ version is apache-ofbiz-10.04
> When I'm compiling the project with the embedded and using ant run-install 
> run there is a error message
> classes:
>   [javac16] Compiling 13 source files to 
> C:\_portable\PortableApps\apache-ofbiz-10.04\framework\security\build\classes
>   [javac16] warning: [options] bootstrap class path not set in conjunction 
> with -source 1.6
>   [javac16] 
> C:\_portable\PortableApps\apache-ofbiz-10.04\framework\security\src\org\ofbiz\security\OFBizSecurity.java:52:
>  error: invalid inferred types for V; inferred type does not conform to 
> declared bound(s)
>   [javac16]     protected static final Map<String, Map<String, String>> 
> simpleRoleEntity = UtilMisc.toMap(
>   [javac16]                                                                   
>                            ^
>   [javac16]     inferred: Map<String,Object>
>   [javac16]     bound(s): Map<String,String>
>   [javac16]   where V,V1,V2,V3 are type-variables:
>   [javac16]     V extends Object declared in method 
> <V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
>   [javac16]     V1 extends V declared in method 
> <V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
>   [javac16]     V2 extends V declared in method 
> <V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
>   [javac16]     V3 extends V declared in method 
> <V,V1,V2,V3>toMap(String,V1,String,V2,String,V3)
>   [javac16] 1 error
>   [javac16] 1 warning
> Changing to use JDK 6 works around this issue - however given that EOL for 
> JDK6 is November 2012 (IE this year, already extended from July) this is not 
> a long term solution.
> Regards
> Karl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to