Skip to content

Commit

Permalink
Fix tests after depending on java.base/sun.invoke.util
Browse files Browse the repository at this point in the history
  • Loading branch information
biboudis committed Jul 3, 2024
1 parent ad8bf16 commit c584729
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @test
* @summary SimpleDeconstructorsTest
* @enablePreview
* @compile --enable-preview --source ${jdk.version} -parameters SimpleDeconstructorsTest.java
* @run main/othervm --enable-preview SimpleDeconstructorsTest
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public pattern Test(String name, String username) {
.run()
.getOutput(Task.OutputKind.DIRECT);

if (!javapOut.contains("public static java.lang.Object Test\\%Ljava\\|lang\\|String\\?\\%Ljava\\|lang\\|String\\?(test.Test);"))
if (!javapOut.contains("public static java.lang.Object Test\\%\\=Ljava\\|lang\\|String\\?\\%\\=Ljava\\|lang\\|String\\?(test.Test)"))
throw new AssertionError("Wrongly generated signature of pattern declaration:\n" + javapOut);
}
}
Expand Down
1 change: 1 addition & 0 deletions test/langtools/tools/jdeps/listdeps/ListModuleDeps.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public Object[][] jdkModules() {
"java.base/jdk.internal.jmod",
"java.base/jdk.internal.misc",
"java.base/jdk.internal.module",
"java.base/sun.invoke.util",
"java.base/sun.reflect.annotation",
"java.compiler",
"jdk.internal.opt/jdk.internal.opt",
Expand Down

0 comments on commit c584729

Please sign in to comment.