File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,9 +100,7 @@ audience_identifier: jvm
100100{%- highlight java -%}
101101import org.graalvm.polyglot.Context;
102102
103- try (Context context = Context.newBuilder()
104- .allowAllAccess(true) // See documentation for options
105- .build()) {
103+ try (Context context = Context.newBuilder().build()) {
106104 context.eval("python", "print('Hello from GraalPy!')");
107105}
108106{%- endhighlight -%}
@@ -131,9 +129,7 @@ dependencies {
131129{%- highlight java -%}
132130import org.graalvm.polyglot.Context;
133131
134- try (Context context = Context.newBuilder()
135- .allowAllAccess(true) // See documentation for options
136- .build()) {
132+ try (Context context = Context.newBuilder().build()) {
137133 context.eval("python", "print('Hello from GraalPy!')");
138134}
139135{%- endhighlight -%}
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ layout: base
2727{%- highlight java -%}
2828import org.graalvm.polyglot.Context;
2929
30- try (Context context = Context.newBuilder()
31- .allowAllAccess(true) // See documentation for options
32- .build()) {
30+ try (Context context = Context.newBuilder().build()) {
3331 context.eval("python", "print('Hello from GraalPy!')");
3432}
3533{%- endhighlight -%}
You can’t perform that action at this time.
0 commit comments