---
title: "Deprecated"
description: "Deprecated: everything deprecated, for removal first."
kind: "index"
module: "polyglot"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/deprecated.html"
---

# Deprecated

Everything deprecated in polyglot; what will be removed comes first.

## Members

- [`allowHostAccess(boolean)`](org/graalvm/polyglot/Context.Builder.md#allowHostAccess%28boolean%29), method in Context.Builder (deprecated) Since 19.0. use [`allowHostAccess(HostAccess)`](org/graalvm/polyglot/Context.Builder.md#allowHostAccess%28org.graalvm.polyglot.HostAccess%29) or [`allowHostClassLookup(Predicate)`](org/graalvm/polyglot/Context.Builder.md#allowHostClassLookup%28java.util.function.Predicate%29) instead.
- [`allowInternalResourceAccess(FileSystem)`](org/graalvm/polyglot/io/FileSystem.md#allowInternalResourceAccess%28org.graalvm.polyglot.io.FileSystem%29), method in FileSystem (deprecated) Since 25.1. Use [`allowInternalResources(FileSystem)`](org/graalvm/polyglot/io/FileSystem.md#allowInternalResources%28org.graalvm.polyglot.io.FileSystem%29) instead when migrating code that only reads internal resources. The replacement exposes internal resources and language homes through a read-only view. Code that needs mutable files based on internal resources should copy the resources to an application-controlled location, for example with [`Engine.copyResources(Path, String...)`](org/graalvm/polyglot/Engine.md#copyResources%28java.nio.file.Path,java.lang.String...%29), and expose that location through its configured `fileSystem`.
- [`allowIO(boolean)`](org/graalvm/polyglot/Context.Builder.md#allowIO%28boolean%29), method in Context.Builder (deprecated) Since 23.0. If the value was previously `true` pass [`IOAccess.ALL`](org/graalvm/polyglot/io/IOAccess.md#ALL), otherwise pass [`IOAccess.NONE`](org/graalvm/polyglot/io/IOAccess.md#NONE).
- [`allowLanguageHomeAccess(FileSystem)`](org/graalvm/polyglot/io/FileSystem.md#allowLanguageHomeAccess%28org.graalvm.polyglot.io.FileSystem%29), method in FileSystem (deprecated) Use [`allowInternalResources(FileSystem)`](org/graalvm/polyglot/io/FileSystem.md#allowInternalResources%28org.graalvm.polyglot.io.FileSystem%29) instead to expose language homes and other internal resources through a read-only view.
- [`fileSystem(FileSystem)`](org/graalvm/polyglot/Context.Builder.md#fileSystem%28org.graalvm.polyglot.io.FileSystem%29), method in Context.Builder (deprecated) Since 23.0. If a file system was previously set use `allowIO(IOAccess.newBuilder().fileSystem(fileSystem).build())`.
- [`getCode()`](org/graalvm/polyglot/SourceSection.md#getCode%28%29), method in SourceSection (deprecated) Since 19.0. use [`getCharacters()`](org/graalvm/polyglot/SourceSection.md#getCharacters%28%29) instead.
- [`getDefaultValue()`](org/graalvm/options/OptionType.md#getDefaultValue%28%29), method in OptionType (deprecated) Since 19.0.
- [`getInputStream()`](org/graalvm/polyglot/Source.md#getInputStream%28%29), method in Source (deprecated) Since 19.0. use [`getReader()`](org/graalvm/polyglot/Source.md#getReader%28%29), [`getCharacters()`](org/graalvm/polyglot/Source.md#getCharacters%28%29) or [`getBytes()`](org/graalvm/polyglot/Source.md#getBytes%28%29) instead. The implementation is inefficient and can not distinguish byte and character based sources.
- [`hostClassFilter(Predicate)`](org/graalvm/polyglot/Context.Builder.md#hostClassFilter%28java.util.function.Predicate%29), method in Context.Builder (deprecated) Since 19.0. use [`allowHostClassLookup(Predicate)`](org/graalvm/polyglot/Context.Builder.md#allowHostClassLookup%28java.util.function.Predicate%29) instead.
- [`OptionType(String, T, Function)`](org/graalvm/options/OptionType.md#%3Cinit%3E%28java.lang.String,T,java.util.function.Function%29), constructor in OptionType (deprecated) Since 19.0. Use [`OptionType(String, Function)`](org/graalvm/options/OptionType.md#%3Cinit%3E%28java.lang.String,java.util.function.Function%29)
- [`OptionType(String, T, …)`](org/graalvm/options/OptionType.md#%3Cinit%3E%28java.lang.String,T,java.util.function.Function,java.util.function.Consumer%29), constructor in OptionType (deprecated) Since 19.0. Use [`OptionType(String, Function, Consumer)`](org/graalvm/options/OptionType.md#%3Cinit%3E%28java.lang.String,java.util.function.Function,java.util.function.Consumer%29)
- [`set(OptionKey, T)`](org/graalvm/options/OptionValues.md#set%28org.graalvm.options.OptionKey,T%29), method in OptionValues (deprecated) Since 22.0. [`OptionValues`](org/graalvm/options/OptionValues.md) should be read-only. If the value of an option needs to be altered after options are set, then the new value should be stored in the language's context or instrument fields and read from there.
