Skip to content

Commit 64f4d28

Browse files
committed
BIG WIP: TEst double module path
1 parent c35a8b0 commit 64f4d28

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

scijava/scijava-discovery-therapi/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
${scijava.allowedDuplicateClasses}
9191
</scijava-discovery-therapi.allowedDuplicateClasses>
9292
<allowedDuplicateClasses>${scijava-discovery-therapi.allowedDuplicateClasses}</allowedDuplicateClasses>
93+
<therapi.packages></therapi.packages>
9394
</properties>
9495
<dependencies>
9596
<dependency>

scijava/scijava-discovery-therapi/src/main/java/module-info.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module org.scijava.discovery.therapi {
22

33
exports org.scijava.discovery.therapi;
4+
opens org.scijava.discovery.therapi to therapi.runtime.javadoc;
45

56
requires org.scijava.discovery;
67
requires therapi.runtime.javadoc;

scijava/scijava-discovery-therapi/src/main/java/org/scijava/discovery/therapi/TherapiDiscoverer.java

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ private static Class<?> getClass(String name) throws ClassNotFoundException {
4040
* class loader if non-null; otherwise it will be the system class loader.
4141
* <p>
4242
* Forked from SciJava Common's Context class.
43+
*
44+
* @implNote test
4345
*
4446
* @see Thread#getContextClassLoader()
4547
* @see ClassLoader#getSystemClassLoader()
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
module org.scijava.discovery.therapi.test {
1+
open module org.scijava.discovery.therapi.test {
22

33
requires junit;
44

55
requires org.scijava.discovery;
66
requires org.scijava.discovery.therapi;
77

88
exports org.scijava.discovery.therapi.test to junit;
9-
opens org.scijava.discovery.therapi.test to therapi.runtime.javadoc;
109

11-
}
10+
}

scijava/scijava-discovery-therapi/src/test/java/org/scijava/discovery/therapi/test/TherapiDiscovererTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ public class TherapiDiscovererTest extends TherapiDiscoverer {
1414

1515
@Test
1616
public void discoverClass() {
17+
System.out.println("CLASS PATH: " + System.getProperty("java.class.path") + "\n");
18+
System.out.println("MODULE PATH: " + System.getProperty("jdk.module.path"));
1719
List<Discovery<AnnotatedElement>> list = new TherapiDiscoverer().elementsTaggedWith("test");
18-
System.out.println("Tagged Elements: " + list);
1920
List<AnnotatedElement> elements = list.stream().map(d -> d.discovery()).collect(Collectors.toList());
2021
Assert.assertTrue(elements.contains(ClassTest.class));
2122
}

0 commit comments

Comments
 (0)