Skip to content

Commit aec4b39

Browse files
wenytang-msCopilot
andcommitted
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. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b15232d commit aec4b39

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
"./server/org.eclipse.jdt.junit5.runtime_1.2.0.v20251113-1434.jar",
8282
"./server/org.eclipse.jdt.junit6.runtime_1.0.0.v20251112-1701.jar",
8383
"./server/org.jacoco.core_0.8.14.202510111229.jar",
84+
"./server/org.objectweb.asm.commons_9.9.1.jar",
85+
"./server/org.objectweb.asm.tree_9.9.1.jar",
86+
"./server/org.objectweb.asm_9.9.1.jar",
8487
"./server/org.opentest4j_1.3.0.jar"
8588
],
8689
"viewsWelcome": [

scripts/buildJdtlsExt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const bundleList = [
3030
'junit-platform-suite-commons_',
3131
'junit-platform-suite-engine_',
3232
'org.apiguardian.api_',
33-
'org.jacoco.core_'
33+
'org.jacoco.core_',
34+
'org.objectweb.asm'
3435
];
3536
// Set MAVEN_OPTS to disable XML entity size limits for JDK XML parser
3637
const env = { ...process.env };

0 commit comments

Comments
 (0)