Skip to content

fix - Update to Jacoco 0.8.14#1798

Merged
wenytang-ms merged 1 commit into
microsoft:mainfrom
fbricon:update-asm
Oct 15, 2025
Merged

fix - Update to Jacoco 0.8.14#1798
wenytang-ms merged 1 commit into
microsoft:mainfrom
fbricon:update-asm

Conversation

@fbricon

@fbricon fbricon commented Oct 13, 2025

Copy link
Copy Markdown
Contributor

Fixes #1796

Update to Jacoco 0.8.14, which requires org.objectweb.asm:9.9.0.
The caveat is the extension requires vscode-java 1.47.0 to work, i.e. the current vscode-java pre-release, since jacoco no longer works with asm 9.8.0.

@testforstephen

Copy link
Copy Markdown
Contributor

@wenytang-ms and @chagong could you please review the PR? We may need to fix the failed tests via a separate PR.

@wenytang-ms wenytang-ms left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR also fix the ASM error in current npm run build-plugin issue

@wenytang-ms wenytang-ms merged commit 44d0408 into microsoft:main Oct 15, 2025
4 of 7 checks passed
@dbi1463

dbi1463 commented Oct 23, 2025

Copy link
Copy Markdown

Thanks for fixing this!
Any idea when the release containing this change will go out?

wenytang-ms added a commit that referenced this pull request Jun 8, 2026
…1872)

* fix: ship org.objectweb.asm bundles to satisfy Jacoco 0.8.14 (#1866)

The plugin and bundled Jacoco 0.8.14 require org.objectweb.asm
[9.9.0,9.10.0), but the Eclipse platform/JDT-LS provided by vscode-java
only ships asm 9.8.0. Since #1798 bumped Jacoco to 0.8.14 (asm 9.9) the
asm bundle was never added to the copy allow-list in buildJdtlsExt.js,
so it was never shipped in server/ nor registered in javaExtensions.

At runtime this leaves com.microsoft.java.test.plugin and
org.jacoco.core unresolved (BundleException: Unresolved requirement:
org.objectweb.asm [9.9.0,9.10.0)), so the test plugin fails to load and
no test UI appears.

Add the org.objectweb.asm prefix to bundleList so asm, asm.commons and
asm.tree 9.9.x are shipped with the extension and the requirement is
satisfied independently of the platform-provided asm version.
* refactor: list required asm bundles explicitly with _ suffix

Address review feedback: bundleList prefixes are matched with
startsWith, so the bare 'org.objectweb.asm' prefix could also match
unrelated bundles like org.objectweb.asm.source_*. List the three
bundles Jacoco 0.8.14 actually requires (asm, asm.commons, asm.tree)
explicitly with the underscore delimiter, consistent with the other
entries. Verified this is the complete closure: asm.commons/asm.tree
import only asm, asm.tree and asm.signature (the latter is exported by
the base asm bundle); nothing imports asm.analysis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundle startup failed

4 participants