|
24 | 24 | */
|
25 | 25 | package com.oracle.svm.core;
|
26 | 26 |
|
27 |
| -import jdk.graal.compiler.options.Option; |
28 |
| - |
29 | 27 | import com.oracle.svm.core.option.APIOption;
|
30 |
| -import com.oracle.svm.core.option.HostedOptionKey; |
31 | 28 | import com.oracle.svm.core.option.AccumulatingLocatableMultiOptionValue;
|
| 29 | +import com.oracle.svm.core.option.HostedOptionKey; |
| 30 | +import com.oracle.svm.core.option.LayerVerification; |
| 31 | +import com.oracle.svm.core.option.LayerVerification.Kind; |
| 32 | +import com.oracle.svm.core.option.LayerVerification.Severity; |
| 33 | + |
| 34 | +import jdk.graal.compiler.options.Option; |
32 | 35 |
|
33 | 36 | public class NativeImageClassLoaderOptions {
|
34 | 37 | public static final String AddExportsAndOpensFormat = "<module>/<package>=<target-module>(,<target-module>)*";
|
35 | 38 | public static final String AddReadsFormat = "<module>=<target-module>(,<target-module>)*";
|
36 | 39 |
|
| 40 | + @LayerVerification(Kind = Kind.Removed, Severity = Severity.Error)// |
37 | 41 | @APIOption(name = "add-exports", extra = true, launcherOption = true, valueSeparator = {APIOption.WHITESPACE_SEPARATOR, '='})//
|
38 | 42 | @Option(help = "Value " + AddExportsAndOpensFormat + " updates <module> to export <package> to <target-module>, regardless of module declaration." +
|
39 | 43 | " <target-module> can be ALL-UNNAMED to export to all unnamed modules.")//
|
40 | 44 | public static final HostedOptionKey<AccumulatingLocatableMultiOptionValue.Strings> AddExports = new HostedOptionKey<>(AccumulatingLocatableMultiOptionValue.Strings.build());
|
41 | 45 |
|
| 46 | + @LayerVerification(Kind = Kind.Removed, Severity = Severity.Error)// |
42 | 47 | @APIOption(name = "add-opens", extra = true, launcherOption = true, valueSeparator = {APIOption.WHITESPACE_SEPARATOR, '='})//
|
43 | 48 | @Option(help = "Value " + AddExportsAndOpensFormat + " updates <module> to open <package> to <target-module>, regardless of module declaration.")//
|
44 | 49 | public static final HostedOptionKey<AccumulatingLocatableMultiOptionValue.Strings> AddOpens = new HostedOptionKey<>(AccumulatingLocatableMultiOptionValue.Strings.build());
|
45 | 50 |
|
| 51 | + @LayerVerification(Kind = Kind.Removed, Severity = Severity.Error)// |
46 | 52 | @APIOption(name = "add-reads", extra = true, valueSeparator = {APIOption.WHITESPACE_SEPARATOR, '='})//
|
47 | 53 | @Option(help = "Value " + AddReadsFormat + " updates <module> to read <target-module>, regardless of module declaration." +
|
48 | 54 | " <target-module> can be ALL-UNNAMED to read all unnamed modules.")//
|
49 | 55 | public static final HostedOptionKey<AccumulatingLocatableMultiOptionValue.Strings> AddReads = new HostedOptionKey<>(AccumulatingLocatableMultiOptionValue.Strings.build());
|
50 | 56 |
|
| 57 | + @LayerVerification(Kind = Kind.Removed, Severity = Severity.Error)// |
51 | 58 | @APIOption(name = "enable-native-access", launcherOption = true, valueSeparator = {APIOption.WHITESPACE_SEPARATOR, '='})//
|
52 | 59 | @Option(help = "A comma-separated list of modules that are permitted to perform restricted native operations." +
|
53 | 60 | " The module name can also be ALL-UNNAMED.")//
|
|
0 commit comments