JVM: restore incorrect DFS logic in JavaModuleGraph for compatibility
The problem is tracked in KT-66622. It should be fixed later, with a proper deprecation, because otherwise it can potentially break a lot of code.
This commit is contained in:
committed by
Space Team
parent
94e5cafb61
commit
621fe41b17
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo;
|
||||
|
||||
public class Foo {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
OK
|
||||
+1
@@ -0,0 +1 @@
|
||||
OK
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
module main {
|
||||
requires transitive kotlin.stdlib;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
val a = foo.Foo()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo;
|
||||
|
||||
public class Foo {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
OK
|
||||
+1
@@ -0,0 +1 @@
|
||||
OK
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
module main {
|
||||
requires kotlin.stdlib;
|
||||
|
||||
requires transitive unrelated;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
val a = foo.Foo()
|
||||
compiler/testData/javaModules/namedDoesNotReadAutomaticWithUnrelatedNamed/unrelated/module-info.java
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
module unrelated {
|
||||
exports unrelated;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package unrelated;
|
||||
|
||||
public class Unrelated {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo;
|
||||
|
||||
public class Foo {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
OK
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
module main {
|
||||
requires kotlin.stdlib;
|
||||
requires unrelated;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
val a = foo.Foo()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package unrelated;
|
||||
|
||||
public class Unrelated {}
|
||||
Reference in New Issue
Block a user