Package: libdb-je-java Version: 3.3.62-1 Severity: minor Tags: patch
Documentation says that it is possible to pass null as second argument to RawObject(RawType type, Map<String,Object> values, RawObject superObject), but this throws NullPointerException. This is solved either by changing the code or changing the documentation. -- src/com/sleepycat/persist/raw/RawObject.java.orig 2008-11-21 14:43:02.951386638 +0100 +++ src/com/sleepycat/persist/raw/RawObject.java 2008-11-21 14:43:50.943003834 +0100 @@ -10,6 +10,7 @@ import java.util.Arrays; import java.util.Map; +import java.util.HashMap; import java.util.TreeSet; import com.sleepycat.persist.evolve.Conversion; @@ -58,9 +59,12 @@ public RawObject(RawType type, Map<String,Object> values, RawObject superObject) { - if (type == null || values == null) { + if (type == null) { throw new NullPointerException(); } + if (values == null) { + values = new HashMap<String,Object>(); + } this.type = type; this.values = values; this.superObject = superObject; -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.27 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libdb-je-java depends on: ii default-jre [java2-runtime] 1.5-30 Standard Java or Java compatible R ii gij-4.1 [java1-runtime] 4.1.1-20 The GNU Java bytecode interpreter ii java-gcj-compat [java2-runtim 1.0.78-2 Java runtime environment using GIJ ii openjdk-6-jre [java2-runtime] 6b11-9 OpenJDK Java runtime, using Hotspo libdb-je-java recommends no packages. libdb-je-java suggests no packages. -- no debconf information _______________________________________________ pkg-java-maintainers mailing list pkg-java-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers