[libinline-java-perl] 237/398: ok
Jonas Smedegaard
dr at jones.dk
Thu Feb 26 11:43:08 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 550d593f7f2c409f1f0683a32dd5c86d80bf0ca3
Author: patrick_leb <>
Date: Fri Sep 5 13:42:44 2003 +0000
ok
---
CHANGES | 9 +++++++++
Java.pm | 9 +++++----
Java.pod | 3 ++-
README | 8 +++++---
4 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/CHANGES b/CHANGES
index 98b0583..dc6a3ec 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,15 @@
Revision history for Perl extension Inline::Java
------------------------------------------------
+0.42 Fri Sep 5 13:18:25 EDT 200
+ - Fixed more CLASSPATH issues. CLASSPATH now works like this:
+ * CLASSPATH environment variable is global
+ * CLASSPATH configuration option is local to the user class loader
+ - Added method cache to increase performance and decrease reflection
+ API calls
+ - Altered and documented the study_classes() function
+ - Added EXTRA_JAVA_ARGS and EXTRA_JAVAC_ARGS config options
+
0.41 Mon Jul 14 13:18:25 EDT 200
- Fixed CLASSPATH bug
- Possibly (!) fixed test suite problems under heavy load
diff --git a/Java.pm b/Java.pm
index 3bf12bb..700f126 100644
--- a/Java.pm
+++ b/Java.pm
@@ -1005,9 +1005,11 @@ sub study_classes {
my $package = shift || caller() ;
my $o = undef ;
+ my %pkgs = () ;
foreach (@INLINES){
my $i = $_ ;
my $pkg = $i->get_api('pkg') || 'main' ;
+ $pkgs{$pkg} = 1 ;
if ($pkg eq $package){
$o = $i ;
last ;
@@ -1018,12 +1020,11 @@ sub study_classes {
$o->_study($classes, 0) ;
}
else {
- my $msg = "Can't place studied classes under package since Inline::Java was not used there. Valid packages are:\n" ;
- foreach (@INLINES){
- my $i = $_ ;
- my $pkg = $i->get_api('pkg') || 'main' ;
+ my $msg = "Can't place studied classes under package '$package' since Inline::Java was not used there. Valid packages are:\n" ;
+ foreach my $pkg (keys %pkgs){
$msg .= " $pkg\n" ;
}
+ croak($msg) ;
}
}
diff --git a/Java.pod b/Java.pod
index 0c95bbe..3cbb148 100644
--- a/Java.pod
+++ b/Java.pod
@@ -160,7 +160,8 @@ behavior of C<Inline::Java>:
EXTRA_JAVA_ARGS:
EXTRA_JAVAC_ARGS:
Specify extra command line parameters to be passed to, respectively,
- the JVM and the Java compiler.
+ the JVM and the Java compiler. Use with caution as some options may
+ alter normal C<Inline::Java> behavior.
Ex: EXTRA_JAVA_ARGS => '-Xmx96m'
Note: EXTRA_JAVA_ARGS only has an effect on the first
'use Inline Java' call inside a Perl script, since all other calls
diff --git a/README b/README
index fd88bff..b0660f9 100644
--- a/README
+++ b/README
@@ -72,10 +72,12 @@ WARNING: THIS IS ALPHA SOFTWARE. It is incomplete and possibly unreliable.
Inline::Java version 0.42 is a minor upgrade that includes:
+ Fixed more CLASSPATH issues. CLASSPATH now works like this:
- - CLASSPATH environment variable is global.
- - CLASSPATH configuration option is local to the current script.
+ * CLASSPATH environment variable is global
+ * CLASSPATH configuration option is local to the user class loader
+ Added method cache to increase performance and decrease reflection
- API calls.
+ API calls
++ Altered and documented the study_classes() function
++ Added EXTRA_JAVA_ARGS and EXTRA_JAVAC_ARGS config options
Inline::Java version 0.41 is a minor upgrade that includes:
+ Fixed CLASSPATH bug
--
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