Skip to content

Commit 3198bb0

Browse files
committed
Just have module finder tell us the damn module name, if it fails then proceed to do our fallback of checking the manifest...
1 parent f99ab8f commit 3198bb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/mangorage/bootstrap/internal/JarHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface UnsafeRunnable {
2424
enum ModuleNameOrigin {
2525
MODULE_INFO, // Takes Highest priority
2626
MANIFEST,
27+
MULTI_RELEASE,
2728
GUESSED // Takes lowest
2829
}
2930

@@ -132,7 +133,7 @@ private static Result resolveModuleName(Path jarPath) {
132133
jarPath
133134
);
134135
} else if (jarFile.isMultiRelease() && moduleName != null) {
135-
return new Result(moduleName, ModuleNameOrigin.GUESSED, jarPath);
136+
return new Result(moduleName, ModuleNameOrigin.MULTI_RELEASE, jarPath);
136137
}
137138

138139
// 2. Check MANIFEST.MF for Automatic-Module-Name

0 commit comments

Comments
 (0)