You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Hansen Wang <ha...@gemmall.com> on 2008/02/29 23:33:54 UTC
release4.0 compilation error
The follow error happen when run 'ant run-install'. I am using jdk1.5 and
ant 1.7. The problem is due to the conflict between the code and build.xml.
The code is using auto-boxing while the build.xml javac task has source="1.4".
Was I doing something wrong or this is a known issue.
Thanks,
Hansen
[javac] Compiling 33 source files to
/opt/ofbiz/release4.0/applications/order/build/classes
[javac]
/opt/ofbiz/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java:1527:
incompatible types
[javac] found : java.lang.Double
[javac] required: double
[javac] double cashAmount = cart.getPaymentAmount
(cashId);
[javac] ^
[javac] 1 error
[subant] Failure for target 'null' of:
/opt/ofbiz/release4.0/applications/build.xml
[subant] The following error occurred while executing this line:
Re: release4.0 compilation error
Posted by Mark Ellul <ma...@catalystic.com>.
HI,
I second that on the JDK 1.6.0_3 it seems to work for me...
Regards
Mark
On Sat, Mar 1, 2008 at 8:49 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:
> Sorry BJ,
>
> That's not totaly true, release4.0 should work (compile and run) with 1.5,
> but should also compile and run with 1.4. This is what
> mean source="1.4" in build.xml files.
>
> Actually it works also with 1.6. It's my workstation default running java
> version and the server running at
>
> http://docs.ofbiz.org/display/OFBIZ/Alternative+Demo+Servers#AlternativeDemoServers-Release4.0runs also with
> 1.6.0_03 (as you can
> check in Webtools/threadList). I did not see any problems for a long time
> now.
>
> Jacques
>
> From: "BJ Freeman" <bj...@free-man.net>
> > that is because release4.0 does not work with 1.5 only 1.4
> >
> > Hansen Wang sent the following on 2/29/2008 2:33 PM:
> >> The follow error happen when run 'ant run-install'. I am using jdk1.5and
> >> ant 1.7. The problem is due to the conflict between the code and
> build.xml.
> >> The code is using auto-boxing while the build.xml javac task has
> source="1.4".
> >>
> >>
> >> Was I doing something wrong or this is a known issue.
> >>
> >> Thanks,
> >> Hansen
> >>
> >> [javac] Compiling 33 source files to
> >> /opt/ofbiz/release4.0/applications/order/build/classes
> >> [javac]
> >>
> /opt/ofbiz/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java:1527:
> >> incompatible types
> >> [javac] found : java.lang.Double
> >> [javac] required: double
> >> [javac] double cashAmount = cart.getPaymentAmount
> >> (cashId);
> >> [javac] ^
> >> [javac] 1 error
> >> [subant] Failure for target 'null' of:
> >> /opt/ofbiz/release4.0/applications/build.xml
> >> [subant] The following error occurred while executing this line:
> >>
> >
> >
>
>
Re: release4.0 compilation error
Posted by Jacques Le Roux <ja...@les7arts.com>.
Sorry BJ,
That's not totaly true, release4.0 should work (compile and run) with 1.5, but should also compile and run with 1.4. This is what
mean source="1.4" in build.xml files.
Actually it works also with 1.6. It's my workstation default running java version and the server running at
http://docs.ofbiz.org/display/OFBIZ/Alternative+Demo+Servers#AlternativeDemoServers-Release4.0 runs also with 1.6.0_03 (as you can
check in Webtools/threadList). I did not see any problems for a long time now.
Jacques
From: "BJ Freeman" <bj...@free-man.net>
> that is because release4.0 does not work with 1.5 only 1.4
>
> Hansen Wang sent the following on 2/29/2008 2:33 PM:
>> The follow error happen when run 'ant run-install'. I am using jdk1.5 and
>> ant 1.7. The problem is due to the conflict between the code and build.xml.
>> The code is using auto-boxing while the build.xml javac task has source="1.4".
>>
>>
>> Was I doing something wrong or this is a known issue.
>>
>> Thanks,
>> Hansen
>>
>> [javac] Compiling 33 source files to
>> /opt/ofbiz/release4.0/applications/order/build/classes
>> [javac]
>> /opt/ofbiz/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java:1527:
>> incompatible types
>> [javac] found : java.lang.Double
>> [javac] required: double
>> [javac] double cashAmount = cart.getPaymentAmount
>> (cashId);
>> [javac] ^
>> [javac] 1 error
>> [subant] Failure for target 'null' of:
>> /opt/ofbiz/release4.0/applications/build.xml
>> [subant] The following error occurred while executing this line:
>>
>
>
Re: release4.0 compilation error
Posted by BJ Freeman <bj...@free-man.net>.
that is because release4.0 does not work with 1.5 only 1.4
Hansen Wang sent the following on 2/29/2008 2:33 PM:
> The follow error happen when run 'ant run-install'. I am using jdk1.5 and
> ant 1.7. The problem is due to the conflict between the code and build.xml.
> The code is using auto-boxing while the build.xml javac task has source="1.4".
>
>
> Was I doing something wrong or this is a known issue.
>
> Thanks,
> Hansen
>
> [javac] Compiling 33 source files to
> /opt/ofbiz/release4.0/applications/order/build/classes
> [javac]
> /opt/ofbiz/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java:1527:
> incompatible types
> [javac] found : java.lang.Double
> [javac] required: double
> [javac] double cashAmount = cart.getPaymentAmount
> (cashId);
> [javac] ^
> [javac] 1 error
> [subant] Failure for target 'null' of:
> /opt/ofbiz/release4.0/applications/build.xml
> [subant] The following error occurred while executing this line:
>
Re: release4.0 compilation error
Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks,
This is fixed in rev. 632497
Jacques
From: "Hansen Wang" <ha...@gemmall.com>
> The follow error happen when run 'ant run-install'. I am using jdk1.5 and
> ant 1.7. The problem is due to the conflict between the code and build.xml.
> The code is using auto-boxing while the build.xml javac task has source="1.4".
>
>
> Was I doing something wrong or this is a known issue.
>
> Thanks,
> Hansen
>
> [javac] Compiling 33 source files to
> /opt/ofbiz/release4.0/applications/order/build/classes
> [javac]
> /opt/ofbiz/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java:1527:
> incompatible types
> [javac] found : java.lang.Double
> [javac] required: double
> [javac] double cashAmount = cart.getPaymentAmount
> (cashId);
> [javac] ^
> [javac] 1 error
> [subant] Failure for target 'null' of:
> /opt/ofbiz/release4.0/applications/build.xml
> [subant] The following error occurred while executing this line:
>