Skip to content

Commit df0bfde

Browse files
docs(language): mention Arena limitation
1 parent 1b193a8 commit df0bfde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/io/github/treesitter/jtreesitter/Language.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ private static UnsatisfiedLinkError unresolved(String name) {
6262
* SymbolLookup symbols = SymbolLookup.libraryLookup(library, Arena.global());
6363
* Language language = Language.load(symbols, "tree_sitter_java");
6464
* }
65+
* <p>
66+
* <strong>The {@linkplain Arena} used to load the language
67+
* must not be closed while the language is being used.</strong>
6568
*
6669
* @throws RuntimeException If the language could not be loaded.
6770
*/

0 commit comments

Comments
 (0)