> From: Patrick LeBoutillier <[EMAIL PROTECTED]>
> Date: Fri, 12 Jan 2007 13:08:57 -0500
> To: Ken Williams <[EMAIL PROTECTED]>
> Cc: Inline list <inline@perl.org>
> Subject: Re: Inline::Java tests fail on OS X
> 
> Ken,
> 
> This might be of interest regarding the first issue:
> 
> http://www.mail-archive.com/inline@perl.org/msg03266.html

Yeah, that's indeed the problem.  The following one-line (platform-specific)
patch makes all tests pass:

===============================
--- Java/JVM.pm~    2006-05-23 19:39:04.000000000 -0500
+++ Java/JVM.pm    2007-01-12 13:49:35.000000000 -0600
@@ -174,7 +174,7 @@
 
     my $out = ">&STDOUT" ;
     if ($this->{shared}){
-        $out = new IO::File(">$dn") ;
+        $out = "/dev/null";
         if (! defined($out)){
             croak "Can't open $dn for writing" ;
         }
===============================

No such luck on the JNI front, but I can live without JNI for a while.

 -Ken

Reply via email to