[libinline-java-perl] 362/398: ok

Jonas Smedegaard dr at jones.dk
Thu Feb 26 11:43:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.55
in repository libinline-java-perl.

commit 05ce62c89c03c0f98a09e219fa5704fc0b9dbb82
Author: patrick_leb <>
Date:   Sat Dec 3 15:35:13 2005 +0000

    ok
---
 CHANGES        |  9 ++++++---
 Java.pod       | 12 ++++++++++++
 TODO           |  3 +--
 t/13_handles.t |  2 +-
 4 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/CHANGES b/CHANGES
index 9ee043d..b03dfa0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,11 +1,14 @@
 Revision history for Perl extension Inline::Java
 ------------------------------------------------
-0.51  Mon Sep 19 20:17:49 EDT 2005
-    - Several major speed optimizations
-    - Introduction of support for I/O mapping between Perl and Java
+0.51
+    - Inline::Java now requires Perl 5.8.0 or greater.
+    - Several major speed optimizations.
+    - Introduction of support for I/O mapping between Perl and Java (Inline::Java::Handle)
     - Applied patches by Andrew Bruno and Tim Bunce for MAC OSX
     - JNI fix for system property passing
         (thanks to Brian Gugliemetti and Jason Stelzer)
+    - Added NATIVE_DOUBLES configuration option to avoid loss of precision
+      whne passing double values between Perl and Java
     - Other minor bug fixes
 
 0.50  Mon Jan 31 20:14:43 EST 2005
diff --git a/Java.pod b/Java.pod
index b932a17..be024e1 100644
--- a/Java.pod
+++ b/Java.pod
@@ -305,6 +305,18 @@ package instead of under the current (caller) package.
 
    Ex: PACKAGE => 'main'
 
+=item NATIVE_DOUBLES
+
+Normally, C<Inline::Java> stringifies floating point numbers when passing 
+them between Perl and Java. In certain cases, this can lead to loss of
+precision. When NATIVE_DOUBLES is set, C<Inline::Java> will send the actual
+double bytes in order to preserve precision. 
+Note: This applies only to doubles, not floats.
+Note: This option may not be portable and may not work properly on some
+platforms.
+
+   Ex: NATIVE_DOUBLES => 1
+
 =back 
 
 
diff --git a/TODO b/TODO
index 4463853..f8028e8 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,6 @@
 CODE:
 - Finish PerlInterpreter test suite
-- Send doubles and floats bytes instead of string representation to preserve precision. If that doesn't work, use sprintf with a user configurable precision.
-- Finish PerlHandle stuff
+- Finish PerlHandle stuff and document
 
 DOCUMENTATION:
 - Document InlineJavaPerlObject when finished
diff --git a/t/13_handles.t b/t/13_handles.t
index e744d3d..9abec99 100755
--- a/t/13_handles.t
+++ b/t/13_handles.t
@@ -41,7 +41,7 @@ my $t = new t13() ;
 
 
 # It seems that filehandle destruction leaks on certain version
-# of Perl. We will change this test top a warning.
+# of Perl. We will change this test to a warning.
 if ($t->__get_private()->{proto}->ObjectCount() != 1){
 	warn "\nWARNING: Your Perl version ($]) seems to leak tied filehandles. Using\n" .
 		"Inline::Java::Handle objects will result in memory leaks both in Perl\n" .

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libinline-java-perl.git



More information about the Pkg-perl-cvs-commits mailing list