From d272e88b2d7683f5320a1b98a86e5cff675f41bf Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 11 Apr 2007 00:46:53 +0000 Subject: [PATCH] fix serialVersionUID on 64-bit systems --- bindings/java/src/jni/generate.pl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index b86344ee..70f75bb4 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -29,12 +29,7 @@ sub supported_platforms { } sub hash { - use integer; - my $hash = 0; - for (split //, shift) { - $hash = $hash*31 + ord $_; - } - return $hash; + return unpack("%32C*", shift) % 65535; } #this script generates jni code and java classes for the following table