summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlberner <50679601+jlberner@users.noreply.github.com>2020-06-23 02:24:28 -0500
committerGitHub <noreply@github.com>2020-06-23 02:24:28 -0500
commit1740f99665fc35a307a6981b9eab9c730a70d0dd (patch)
tree0d299a892e0fdad3a54d4c7d528ef686abe1dd3a
parent277ab80dac992ec4c6a63cb97e84a2e4af8b0298 (diff)
Append to classpath not safe without separator
It is not safe to append a new path to the CLASSPATH environment variable without a path separator that is suitable for the platform. I could not think of a good/concise way to determine the appropriate path separator, but it should not be necessary to have anything remain in it, so changing from append to assignment. This resolves the "Class t16subclass not found" outstanding issue.
-rw-r--r--t/16_subclass.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/16_subclass.t b/t/16_subclass.t
index 113fd49..d836e83 100644
--- a/t/16_subclass.t
+++ b/t/16_subclass.t
@@ -8,7 +8,7 @@ use strict;
use warnings;
BEGIN {
- $ENV{CLASSPATH} .= "t/t16subclass.jar";
+ $ENV{CLASSPATH} = "t/t16subclass.jar";
}
use Inline Java => 'STUDY', STUDY => ['t16subclass'];