You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ This changelog summarizes major changes between GraalVM SDK versions. The main f
15
15
* GR-22699(EE-only) Added the ability to spawn `Engine` or `Context` isolated in a separate process by setting `Context.Builder.option("engine.IsolateMode", "external").`.
16
16
* GR-64087 Removed the dependency on `org.graalvm.truffle:truffle-enterprise` from all language and tool POM artifacts. As a result, the community Maven artifacts (those with an artifact ID ending in `-community`) are now identical to their corresponding non-community artifacts. Consequently, all community language and tool POM artifacts have been deprecated. The only exception is `org.graalvm.truffle:java-community` vs. `org.graalvm.truffle:java`, which differ in the bundled Java runtime. Embedders using auxiliary engine caching, polyglot isolates, a isolated/untrusted sandbox policy, or the sandbox resource limits must now explicitly add the `org.graalvm.truffle:truffle-enterprise` Maven artifact to the classpath or module path.
17
17
* GR-66339 Truffle now checks that its multi-release classes ([JEP 238](https://openjdk.org/jeps/238)) are loaded correctly and provides a descriptive error message if they are not.
18
+
* GR-65561 Added `Context.Builder#apply`, `ContextBuilder#extendIO`, and `ContextBuilder#extendHostAccess` to enable composable Context configuration
18
19
19
20
## Version 24.2.0
20
21
* GR-54905 When using Truffle NFI with the Panama backend, native access must now be granted to the Truffle module instead of the NFI Panama module. Use the `--enable-native-access=org.graalvm.truffle` Java command line option to enable the native access for the NFI Panama backend.
CLSS public abstract interface java.lang.annotation.Annotation
@@ -178,12 +178,15 @@ meth public org.graalvm.polyglot.Context$Builder allowInnerContextOptions(boolea
178
178
meth public org.graalvm.polyglot.Context$Builder allowNativeAccess(boolean)
179
179
meth public org.graalvm.polyglot.Context$Builder allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)
180
180
meth public org.graalvm.polyglot.Context$Builder allowValueSharing(boolean)
181
+
meth public org.graalvm.polyglot.Context$Builder apply(java.util.function.Consumer<org.graalvm.polyglot.Context$Builder>)
181
182
meth public org.graalvm.polyglot.Context$Builder arguments(java.lang.String,java.lang.String[])
182
183
meth public org.graalvm.polyglot.Context$Builder currentWorkingDirectory(java.nio.file.Path)
183
184
meth public org.graalvm.polyglot.Context$Builder engine(org.graalvm.polyglot.Engine)
184
185
meth public org.graalvm.polyglot.Context$Builder environment(java.lang.String,java.lang.String)
185
186
meth public org.graalvm.polyglot.Context$Builder environment(java.util.Map<java.lang.String,java.lang.String>)
186
187
meth public org.graalvm.polyglot.Context$Builder err(java.io.OutputStream)
188
+
meth public org.graalvm.polyglot.Context$Builder extendHostAccess(org.graalvm.polyglot.HostAccess,java.util.function.Consumer<org.graalvm.polyglot.HostAccess$Builder>)
189
+
meth public org.graalvm.polyglot.Context$Builder extendIO(org.graalvm.polyglot.io.IOAccess,java.util.function.Consumer<org.graalvm.polyglot.io.IOAccess$Builder>)
187
190
meth public org.graalvm.polyglot.Context$Builder fileSystem(org.graalvm.polyglot.io.FileSystem)
188
191
anno 0 java.lang.Deprecated(boolean forRemoval=false, java.lang.String since="23.0")
189
192
meth public org.graalvm.polyglot.Context$Builder hostClassFilter(java.util.function.Predicate<java.lang.String>)
* If <code>true</code>, allows guest language to perform unrestricted IO operations on host
1573
1727
* system. Default is <code>false</code>. If {@link #allowAllAccess(boolean) all access} is
@@ -1866,10 +2020,12 @@ public Context build() {
1866
2020
thrownewIllegalArgumentException("The method Context.Builder.allowHostAccess(boolean) and the method Context.Builder.allowHostAccess(HostAccess) are mutually exclusive.");
1867
2021
}
1868
2022
if (ioAccess != null && allowIO != null) {
1869
-
thrownewIllegalArgumentException("The method Context.Builder.allowIO(boolean) and the method Context.Builder.allowIO(IOAccess) are mutually exclusive.");
2023
+
thrownewIllegalArgumentException(
2024
+
"The method Context.Builder.allowIO(boolean) and the method Context.Builder.allowIO(IOAccess) or Context.Builder.extendIO(IOAccess, Consumer<IOAccess.Builder>) are mutually exclusive.");
1870
2025
}
1871
2026
if (ioAccess != null && customFileSystem != null) {
1872
-
thrownewIllegalArgumentException("The method Context.Builder.allowIO(IOAccess) and the method Context.Builder.fileSystem(FileSystem) are mutually exclusive.");
2027
+
thrownewIllegalArgumentException(
2028
+
"The method Context.Builder.allowIO(IOAccess) or Context.Builder.extendIO(IOAccess, Consumer<IOAccess.Builder>) and the method Context.Builder.fileSystem(FileSystem) are mutually exclusive.");
0 commit comments