Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
netlib-java
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Java Maintainers
netlib-java
Commits
865d491b
Commit
865d491b
authored
6 years ago
by
Andreas Tille
Browse files
Options
Downloads
Patches
Plain Diff
Fix URLClassLoader
parent
ac83acac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+7
-0
7 additions, 0 deletions
debian/changelog
debian/patches/URLClassLoader.patch
+48
-0
48 additions, 0 deletions
debian/patches/URLClassLoader.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
56 additions
and
0 deletions
debian/changelog
+
7
−
0
View file @
865d491b
netlib-java (0.9.3-5) UNRELEASED; urgency=medium
* Fix URLClassLoader
Closes: #923759
-- Andreas Tille <tille@debian.org> Tue, 26 Mar 2019 16:46:45 +0100
netlib-java (0.9.3-4) unstable; urgency=medium
* Deactivate watch file since in debian/README.source is declared that
...
...
This diff is collapsed.
Click to expand it.
debian/patches/URLClassLoader.patch
0 → 100644
+
48
−
0
View file @
865d491b
From: Markus Koschany <apo@debian.org>
Date: Mon, 25 Mar 2019 14:44:22 +0100
Bug-Debian: https://bugs.debian.org/923759
Subject: URLClassLoader
---
src/org/netlib/generate/JavaGenerator.java | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/org/netlib/generate/JavaGenerator.java b/src/org/netlib/generate/JavaGenerator.java
index fda8e9d..15815de 100644
--- a/src/org/netlib/generate/JavaGenerator.java
+++ b/src/org/netlib/generate/JavaGenerator.java
@@ -51,6 +51,8 @@
import org.netlib.util.doubleW;
import org.netlib.util.floatW;
import org.netlib.util.intW;
+import java.net.MalformedURLException;
+
/**
* Due to the depressing number of LAPACK routines, it is much more efficient to
* auto-generate the Java code for the wrapper and corresponding Java and JNI
@@ -643,7 +645,8 @@
class JavaGenerator {
* @return all classes in a given package
* @see http://forum.java.sun.com/thread.jspa?threadID=757391&messageID=4326850
*/
- private List<Class<?>> getClasses(String packageName, IClassFilter filter) {
+ private List<Class<?>> getClasses(String packageName, IClassFilter filter)
+ throws MalformedURLException{
String packagePath = packageName.replace('.', '/');
// ArrayList<URL> classpath = new ArrayList<URL>();
// String[] classpathString = System.getProperty("java.class.path").split(":");
@@ -658,7 +661,14 @@
class JavaGenerator {
// log(Level.SEVERE, classpathString[i] + " " + ex.getMessage());
// }
// }
- URL [] classpath = ((URLClassLoader) ClassLoader.getSystemClassLoader()).getURLs();
+ URL url1 = new URL("file:///usr/share/java/junit-3.8.2.jar");
+ URL url2 = new URL("file:///usr/share/java/f2jutil-0.8.1.jar");
+ URL url3 = new URL("file:///usr/share/java/jlapack-blas-0.8.jar");
+ URL url4 = new URL("file:///usr/share/java/jlapack-lapack-0.8.jar");
+ URL url5 = new URL("file:///usr/share/java/jlapack-xerbla-0.8.jar");
+ URL url6 = new URL("file:///build/netlib-java-0.9.3/build/classes/");
+
+ URL [] classpath = { url1, url2, url3, url4, url5, url6 };
List<Class<?>> result = new ArrayList<Class<?>>();
System.out.println(Arrays.toString(classpath));
for (URL url : classpath) {
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
865d491b
update_classpath.patch
URLClassLoader.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment