summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/castor/files/1.1.1-jdk-1.4.patch')
-rw-r--r--dev-java/castor/files/1.1.1-jdk-1.4.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-java/castor/files/1.1.1-jdk-1.4.patch b/dev-java/castor/files/1.1.1-jdk-1.4.patch
new file mode 100644
index 000000000000..b2da71002139
--- /dev/null
+++ b/dev-java/castor/files/1.1.1-jdk-1.4.patch
@@ -0,0 +1,18 @@
+diff -ru castor-1.1.1.old/src/main/java/org/exolab/castor/mapping/loader/Types.java castor-1.1.1/src/main/java/org/exolab/castor/mapping/loader/Types.java
+--- castor-1.1.1.old/src/main/java/org/exolab/castor/mapping/loader/Types.java 2007-06-09 16:54:52.000000000 +0300
++++ castor-1.1.1/src/main/java/org/exolab/castor/mapping/loader/Types.java 2007-06-09 16:56:57.000000000 +0300
+@@ -500,11 +500,11 @@
+ new TypeInfo( "boolean", java.lang.Boolean.TYPE,
+ java.lang.Boolean.class, true, Boolean.FALSE ),
+ new TypeInfo( "double", java.lang.Double.TYPE,
+- java.lang.Double.class, true, new Double( 0 ) ),
++ java.lang.Double.class, true, new Double( 0.0 ) ),
+ new TypeInfo( "float", java.lang.Float.TYPE,
+- java.lang.Float.class, true, new Float( 0 ) ),
++ java.lang.Float.class, true, new Float( 0.0f ) ),
+ new TypeInfo( "big-decimal", null,
+- java.math.BigDecimal.class, true, new BigDecimal( 0 ) ),
++ java.math.BigDecimal.class, true, new BigDecimal( 0.0 ) ),
+ new TypeInfo( "byte", java.lang.Byte.TYPE,
+ java.lang.Byte.class, true, new Byte( (byte) 0 ) ),
+ new TypeInfo( "date", null,