1 # Welcome to the JDK!
 2 
 3 For build instructions please see the
 4 [online documentation](https://openjdk.org/groups/build/doc/building.html),
 5 or either of these files:
 6 
 7 - [doc/building.html](doc/building.html) (html version)
 8 - [doc/building.md](doc/building.md) (markdown version)
 9 
10 See <https://openjdk.org/> for more information about the OpenJDK
11 Community and the JDK and see <https://bugs.openjdk.org> for JDK issue
12 tracking.
13 
14 ## Particulars related to Babylon
15 
16 The Babylon JDK builds like any other JDK, see the build instructions above.
17 
18 ### Code shared between `java.base` and `jdk.compiler` modules
19 
20 A subset of code in `java.base` is copied with package renaming into
21 the `jdk.compiler` module. This is the set of code required to build
22 and serialize code models. Due to bootstrapping constraints, compiling
23 the compiler it cannot depend on all code in `java.base`. In the future
24 we may come up with a better solution. For now the build has been modified
25 to copy the code, which leverages the script `cr-util/copy-to-compiler.sh`.
26 
27 ### Testing
28 
29 Specific compiler tests can be executed using `jtreg`, for example:
30 
31 ```
32 jtreg -jdk:./build/macosx-x86_64-server-release/jdk/ -ea -esa -avm -va test/langtools/tools/javac/reflect/
33 ```
34 
35 Specific runtime tests can be executed using `jtreg`, for example:
36 
37 ```
38 jtreg -jdk:./build/macosx-x86_64-server-release/jdk/ -ea -esa -avm -va test/jdk/java/lang/reflect/code/
39 ```
40 
41 In addition, the runtime tests can be executed using make with the test group
42 `jdk_lang_reflect_code` as follows:
43 
44 ```
45 make test TEST=jdk_lang_reflect_code
46 ```