How to replace BigDecimal
Brought to you by:
alexandrefau,
mauceric
I would like to use a C# implementation of BigDecimal in the translated code.
I tried adding the following immediately before the final </packages> in the project
mapping file, but it did not work:
<!-- -->
<!-- class java.math.BigDecimal -->
<!-- -->
<class packageName="java.math" name="BigDecimal">
<target packageName="Ca.Work.Compatibility" name="BigDecimal" >
</target>
</class>
</package>
How would I go about this??
Thanks /D
Hi,
You have to declare each class mapping *inside* a package mapping :
<package name="java.math">
<class name="BigDecimal">
[...]
</class>
</package>
Se an example here : http://j2cstranslator.svn.sourceforge.net/viewvc/j2cstranslator/trunk/EclipsePlugin/configuration/java.math.mappingml?revision=221&view=markup
@
Hi,
I think this was a problem with my cut/paste It is now working. Thanks.
/D