- Fork openjdk/jdk
- Clone my/jdk into
jdk/
- Check that
jdk/test/jdk/TEST.ROOT
exists
This file contains hidden or 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
J:\jdks\jdk-22.0.1\bin\java.exe | |
-ea | |
-Didea.test.cyclic.buffer.size=1048576 | |
"-javaagent:C:\Users\Sor\AppData\Local\Programs\IntelliJ IDEA Community Edition\lib\idea_rt.jar=56078:C:\Users\Sor\AppData\Local\Programs\IntelliJ IDEA Community Edition\bin" | |
--add-reads com.io7m.idstore.tests=ALL-UNNAMED | |
--add-opens com.io7m.idstore.tests/com.io7m.idstore.tests=ALL-UNNAMED | |
--add-opens com.io7m.idstore.tests/com.io7m.idstore.tests.integration=ALL-UNNAMED | |
--add-opens com.io7m.idstore.tests/com.io7m.idstore.tests.shell=ALL-UNNAMED | |
--add-opens com.io7m.idstore.tests/com.io7m.idstore.tests.server=ALL-UNNAMED |
This file contains hidden or 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
Subject: [PATCH] Cleanup conversion | |
--- | |
Index: test/langtools/lib/combo/tools/javac/combo/ComboWatcher.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/test/langtools/lib/combo/tools/javac/combo/ComboWatcher.java b/test/langtools/lib/combo/tools/javac/combo/ComboWatcher.java | |
new file mode 100644 | |
--- /dev/null (revision 7b1af0140a6819bc7837dfa18a39420f9ac1c8b6) |
This file contains hidden or 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
org.opentest4j.AssertionFailedError: Run[stdOut=, stdErr=j:\github\sormuras\jdk\build\windows-x86_64-server-release\test-support\jtreg_test_langtools_tools_javac_launcher\tmp\junit10123584331460239903\Hello.java:3: error: cannot find symbol | |
System.out.println("Hello " + new World("Noname")); | |
^ | |
symbol: class World | |
location: interface Hello | |
1 error | |
, exception=com.sun.tools.javac.launcher.Main$Fault: error: compilation failed] ==> expected: <null> but was: <com.sun.tools.javac.launcher.Main$Fault: error: compilation failed> | |
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) | |
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) | |
at org.junit.jupiter.api.AssertNull.failNotNull(AssertNull.java:50) |
This file contains hidden or 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
class Program { | |
public static void main(String... args) { | |
new Program().printGreeting(); | |
} | |
void printGreeting() { | |
// just scaffolded | |
throw new UnsupportedOperationException("Not implemented, yet"); | |
// will be replaced | |
} |
This file contains hidden or 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
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.function.UnaryOperator; | |
import java.util.regex.Pattern; | |
public class Generator extends Program { | |
public static void main(String... args) { | |
var program = loadString("Program.java"); | |
var replacer = new Replacer(loadString("Generator.java")); | |
program = replacer.replace( |
This file contains hidden or 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
{ | |
"apiVersion": "0.0.1", | |
"kind": "hashedrekord", | |
"spec": { | |
"data": { | |
"hash": { | |
"algorithm": "sha256", | |
"value": "d32655126138500f04c8b02c229c1d2de80cec0f3a72b3aaf2c8f4898543e306" | |
} | |
}, |
This file contains hidden or 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
jshell> Integer i = 5 | |
i ==> 5 | |
jshell> switch(i) { | |
...> case Integer i && i > 9 -> System.out.println(">9"); | |
...> default -> System.out.println("..."); | |
...> } | |
... | |
jshell> Integer i = 50 |
This file contains hidden or 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
class build { | |
public static void main(String... args) { | |
var classes = Path.of(".bach/workspace/classes"); | |
var modules = Path.of(".bach/workspace/modules"); | |
try (var bach = Bach.of(args)) { | |
Call.tool("javac") | |
.with("--module", "com.greetings,org.astro") | |
.with("--module-source-path", ".") | |
.with("-d", classes) | |
.run(bach, Run::requireSuccessful); |
Initialized Bach (unnamed)
api
in file:///D:/dev/github/sormuras/bach/test.projects/MultiReleaseMultiModule/api/java-module/module-info.javabar
in file:///D:/dev/github/sormuras/bach/test.projects/RecordingEvents/bar/test/java/module-info.javacom.github.sormuras.bach
in file:///D:/dev/github/sormuras/bach/com.github.sormuras.bach/main/java/module-info.java
NewerOlder