Skip to content

Bump teavm.version from 0.16.0 to 0.17.0 - #26

Merged
github-actions[bot] merged 1 commit into
masterfrom
dependabot/maven/teavm.version-0.17.0
Nov 25, 2026
Merged

github-actions[bot] merged 1 commit into
masterfrom
dependabot/maven/teavm.version-0.17.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps teavm.version from 0.16.0 to 0.17.0.
Updates org.teavm:teavm-classlib from 0.16.0 to 0.17.0

Release notes

Sourced from org.teavm:teavm-classlib's releases.

0.17.0

Async support is now opt-in

Coroutine transformation (the thing that lets Thread.sleep, Object.wait, @Async methods etc. suspend execution in JS and Wasm GC) is now disabled by default. It has a noticeable cost for the whole application, not only for the code that uses threads, while most applications don't need it at all.

When async support is disabled and a reachable method requires it, TeaVM reports a compilation error pointing to that method, together with the call stack that leads to it. synchronized blocks still work without async support.

If your application relies on threads or other blocking APIs, enable async support explicitly:

teavm.js {
    asyncEnabled = true
}

In Maven, use the asyncEnabled parameter (teavm.asyncEnabled property). In tests, annotate classes or methods that need threads with @AsyncEnabled.

See Coroutines for details and Troubleshooting for advice on how to find what pulls in async code.

New code generator for Wasm GC

Previously, Wasm GC backend reused the pipeline of JavaScript backend: methods were decompiled from TeaVM's intermediate representation to another intermediate representation, used by JS backend, which in turn was translated into Wasm. This used to work for older (pre-MVP) versions of Wasm back in 2016, but as Wasm became a stack machine, this approach did not allow to produce efficient code. A lot of time has passed and we finally got an opportunity to fix this gap. The new generator translates TeaVM's intermediate representation directly into Wasm instructions.

As a result, Wasm GC modules produced by TeaVM are now smaller and faster. It will also allow to easily add more features, like generation of full debug info for Wasm modules.

Bootstrapping

TeaVM has been able to compile itself for a while. Together with (slightly patched) javac, the compiler is built into a Wasm GC module that runs in the browser and turns Java source code into Wasm GC modules, with no server involved. This is done by the teavm-javac project, which also powers our Playground.

Previously, the TeaVM-specific parts of this setup lived in teavm-javac. In this release, they were moved to the main TeaVM repository, and TeaVM now publishes the bootstrap compiler as an artifact, which teavm-javac consumes. This allowed to run TeaVM's own test suite against the bootstrap compiler (i.e. the part that translates bytecode to Wasm GC), which revealed and fixed a lot of issues.

This does not change anything for most users, but it's an important milestone: the ability to bootstrap is commonly considered an indicator of compiler maturity. Both javac and TeaVM are large codebases which make heavy use of collections, generics, lambdas and streams, so the fact that TeaVM compiles them correctly, and that the result passes TeaVM's own tests, shows that the compiler and the class library are capable of handling complex real-world code.

For now, the bootstrap compiler is available for Wasm GC backend only.

System.exit support

System.exit and Runtime.exit are now supported on all backends. After the call, no more Java code runs. In Node.js, process.exit is called automatically. In the browser, you can set a handler to learn that the module has terminated:

  • in JavaScript, via setExitHandler of the teavmRuntime object, exported by the module, see JavaScript modules;
  • in Wasm GC, via onExit option of the loader, see Wasm GC loader.

Any subsequent call from JavaScript into the terminated module throws ExitError.

Assertion removal

... (truncated)

Commits
  • 7405c6a wasm gc: fix bug in array construction optimizer
  • 037043a js: fix switch statements not being optimized
  • 706e8f1 wasm gc: fix flow reconstruction for case when catch leads in a loop leads to...
  • cc40230 wasm gc: fix common try/catch size calculation in flow reconstructor
  • 3ad9cec Guard division of MIN_VALUE / -1 in compiler code
  • 677cf93 wasm: implement ReferenceQueue.remove
  • 3515313 wasm: fix support of loops without guarding block in CoroutineTransformation
  • 534dd7a Fix WeakReference bugs in JS and Wasm, make tests more reliable
  • 64c9e4b Add missing locations to instructions, synthesized by BoundCheckInsertion
  • c6a6cea Fix performance issue in PostProcessingClassHolderSource for lazy pipeline
  • Additional commits viewable in compare view

Updates org.teavm:teavm-jso-apis from 0.16.0 to 0.17.0

Release notes

Sourced from org.teavm:teavm-jso-apis's releases.

0.17.0

Async support is now opt-in

Coroutine transformation (the thing that lets Thread.sleep, Object.wait, @Async methods etc. suspend execution in JS and Wasm GC) is now disabled by default. It has a noticeable cost for the whole application, not only for the code that uses threads, while most applications don't need it at all.

When async support is disabled and a reachable method requires it, TeaVM reports a compilation error pointing to that method, together with the call stack that leads to it. synchronized blocks still work without async support.

If your application relies on threads or other blocking APIs, enable async support explicitly:

teavm.js {
    asyncEnabled = true
}

In Maven, use the asyncEnabled parameter (teavm.asyncEnabled property). In tests, annotate classes or methods that need threads with @AsyncEnabled.

See Coroutines for details and Troubleshooting for advice on how to find what pulls in async code.

New code generator for Wasm GC

Previously, Wasm GC backend reused the pipeline of JavaScript backend: methods were decompiled from TeaVM's intermediate representation to another intermediate representation, used by JS backend, which in turn was translated into Wasm. This used to work for older (pre-MVP) versions of Wasm back in 2016, but as Wasm became a stack machine, this approach did not allow to produce efficient code. A lot of time has passed and we finally got an opportunity to fix this gap. The new generator translates TeaVM's intermediate representation directly into Wasm instructions.

As a result, Wasm GC modules produced by TeaVM are now smaller and faster. It will also allow to easily add more features, like generation of full debug info for Wasm modules.

Bootstrapping

TeaVM has been able to compile itself for a while. Together with (slightly patched) javac, the compiler is built into a Wasm GC module that runs in the browser and turns Java source code into Wasm GC modules, with no server involved. This is done by the teavm-javac project, which also powers our Playground.

Previously, the TeaVM-specific parts of this setup lived in teavm-javac. In this release, they were moved to the main TeaVM repository, and TeaVM now publishes the bootstrap compiler as an artifact, which teavm-javac consumes. This allowed to run TeaVM's own test suite against the bootstrap compiler (i.e. the part that translates bytecode to Wasm GC), which revealed and fixed a lot of issues.

This does not change anything for most users, but it's an important milestone: the ability to bootstrap is commonly considered an indicator of compiler maturity. Both javac and TeaVM are large codebases which make heavy use of collections, generics, lambdas and streams, so the fact that TeaVM compiles them correctly, and that the result passes TeaVM's own tests, shows that the compiler and the class library are capable of handling complex real-world code.

For now, the bootstrap compiler is available for Wasm GC backend only.

System.exit support

System.exit and Runtime.exit are now supported on all backends. After the call, no more Java code runs. In Node.js, process.exit is called automatically. In the browser, you can set a handler to learn that the module has terminated:

  • in JavaScript, via setExitHandler of the teavmRuntime object, exported by the module, see JavaScript modules;
  • in Wasm GC, via onExit option of the loader, see Wasm GC loader.

Any subsequent call from JavaScript into the terminated module throws ExitError.

Assertion removal

... (truncated)

Commits
  • 7405c6a wasm gc: fix bug in array construction optimizer
  • 037043a js: fix switch statements not being optimized
  • 706e8f1 wasm gc: fix flow reconstruction for case when catch leads in a loop leads to...
  • cc40230 wasm gc: fix common try/catch size calculation in flow reconstructor
  • 3ad9cec Guard division of MIN_VALUE / -1 in compiler code
  • 677cf93 wasm: implement ReferenceQueue.remove
  • 3515313 wasm: fix support of loops without guarding block in CoroutineTransformation
  • 534dd7a Fix WeakReference bugs in JS and Wasm, make tests more reliable
  • 64c9e4b Add missing locations to instructions, synthesized by BoundCheckInsertion
  • c6a6cea Fix performance issue in PostProcessingClassHolderSource for lazy pipeline
  • Additional commits viewable in compare view

Updates org.teavm:teavm-maven-plugin from 0.16.0 to 0.17.0

Release notes

Sourced from org.teavm:teavm-maven-plugin's releases.

0.17.0

Async support is now opt-in

Coroutine transformation (the thing that lets Thread.sleep, Object.wait, @Async methods etc. suspend execution in JS and Wasm GC) is now disabled by default. It has a noticeable cost for the whole application, not only for the code that uses threads, while most applications don't need it at all.

When async support is disabled and a reachable method requires it, TeaVM reports a compilation error pointing to that method, together with the call stack that leads to it. synchronized blocks still work without async support.

If your application relies on threads or other blocking APIs, enable async support explicitly:

teavm.js {
    asyncEnabled = true
}

In Maven, use the asyncEnabled parameter (teavm.asyncEnabled property). In tests, annotate classes or methods that need threads with @AsyncEnabled.

See Coroutines for details and Troubleshooting for advice on how to find what pulls in async code.

New code generator for Wasm GC

Previously, Wasm GC backend reused the pipeline of JavaScript backend: methods were decompiled from TeaVM's intermediate representation to another intermediate representation, used by JS backend, which in turn was translated into Wasm. This used to work for older (pre-MVP) versions of Wasm back in 2016, but as Wasm became a stack machine, this approach did not allow to produce efficient code. A lot of time has passed and we finally got an opportunity to fix this gap. The new generator translates TeaVM's intermediate representation directly into Wasm instructions.

As a result, Wasm GC modules produced by TeaVM are now smaller and faster. It will also allow to easily add more features, like generation of full debug info for Wasm modules.

Bootstrapping

TeaVM has been able to compile itself for a while. Together with (slightly patched) javac, the compiler is built into a Wasm GC module that runs in the browser and turns Java source code into Wasm GC modules, with no server involved. This is done by the teavm-javac project, which also powers our Playground.

Previously, the TeaVM-specific parts of this setup lived in teavm-javac. In this release, they were moved to the main TeaVM repository, and TeaVM now publishes the bootstrap compiler as an artifact, which teavm-javac consumes. This allowed to run TeaVM's own test suite against the bootstrap compiler (i.e. the part that translates bytecode to Wasm GC), which revealed and fixed a lot of issues.

This does not change anything for most users, but it's an important milestone: the ability to bootstrap is commonly considered an indicator of compiler maturity. Both javac and TeaVM are large codebases which make heavy use of collections, generics, lambdas and streams, so the fact that TeaVM compiles them correctly, and that the result passes TeaVM's own tests, shows that the compiler and the class library are capable of handling complex real-world code.

For now, the bootstrap compiler is available for Wasm GC backend only.

System.exit support

System.exit and Runtime.exit are now supported on all backends. After the call, no more Java code runs. In Node.js, process.exit is called automatically. In the browser, you can set a handler to learn that the module has terminated:

  • in JavaScript, via setExitHandler of the teavmRuntime object, exported by the module, see JavaScript modules;
  • in Wasm GC, via onExit option of the loader, see Wasm GC loader.

Any subsequent call from JavaScript into the terminated module throws ExitError.

Assertion removal

... (truncated)

Commits
  • 7405c6a wasm gc: fix bug in array construction optimizer
  • 037043a js: fix switch statements not being optimized
  • 706e8f1 wasm gc: fix flow reconstruction for case when catch leads in a loop leads to...
  • cc40230 wasm gc: fix common try/catch size calculation in flow reconstructor
  • 3ad9cec Guard division of MIN_VALUE / -1 in compiler code
  • 677cf93 wasm: implement ReferenceQueue.remove
  • 3515313 wasm: fix support of loops without guarding block in CoroutineTransformation
  • 534dd7a Fix WeakReference bugs in JS and Wasm, make tests more reliable
  • 64c9e4b Add missing locations to instructions, synthesized by BoundCheckInsertion
  • c6a6cea Fix performance issue in PostProcessingClassHolderSource for lazy pipeline
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps `teavm.version` from 0.16.0 to 0.17.0.

Updates `org.teavm:teavm-classlib` from 0.16.0 to 0.17.0
- [Release notes](https://github.com/konsoletyper/teavm/releases)
- [Commits](konsoletyper/teavm@0.16.0...0.17.0)

Updates `org.teavm:teavm-jso-apis` from 0.16.0 to 0.17.0
- [Release notes](https://github.com/konsoletyper/teavm/releases)
- [Commits](konsoletyper/teavm@0.16.0...0.17.0)

Updates `org.teavm:teavm-maven-plugin` from 0.16.0 to 0.17.0
- [Release notes](https://github.com/konsoletyper/teavm/releases)
- [Commits](konsoletyper/teavm@0.16.0...0.17.0)

---
updated-dependencies:
- dependency-name: org.teavm:teavm-classlib
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.teavm:teavm-jso-apis
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.teavm:teavm-maven-plugin
  dependency-version: 0.17.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Nov 25, 2026
@github-actions
github-actions Bot merged commit bd0a18c into master Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants