-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] [JSR-199] ECJ cannot resolve JPMS modules if using a user-provided
file manager #958 ClasspathJsr199: + various drafty additions for handling modules ModuleFinder: + find automatic modules, too + allow invocation without a parser for binary-only scans EclipseFileManager: + allow scanning all packages (by specifying an empty package name) + establish symmetry between setLocation() and setLocationFromPaths() + catch disruptive IAE from ModuleFinder.scanForModule()
- Loading branch information
1 parent
c2a99e6
commit c1212d0
Showing
7 changed files
with
171 additions
and
14 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
org.eclipse.jdt.compiler.tool.tests/resources/module_locations/GH954/module-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module org.example { | ||
requires org.example.adder; | ||
} |
11 changes: 11 additions & 0 deletions
11
...jdt.compiler.tool.tests/resources/module_locations/GH954/org/example/impl/AddNumbers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.example.impl; | ||
|
||
import org.example.adder.Adder; | ||
|
||
public class AddNumbers { | ||
public static void main(String[] args) { | ||
int a = 123; | ||
int b = 456; | ||
System.out.println(new Adder().add(a, b)); | ||
} | ||
} |
Binary file added
BIN
+1.48 KB
org.eclipse.jdt.compiler.tool.tests/resources/module_locations/automod_GH954.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters