Skip to content

GROOVY-11987: groovydoc CLI fails with "Unsupported Java Version: fal…#2511

Merged
daniellansun merged 1 commit into
apache:masterfrom
paulk-asert:groovy11987
May 5, 2026
Merged

GROOVY-11987: groovydoc CLI fails with "Unsupported Java Version: fal…#2511
daniellansun merged 1 commit into
apache:masterfrom
paulk-asert:groovy11987

Conversation

@paulk-asert
Copy link
Copy Markdown
Contributor

…se" when --javaVersion omitted

@testlens-app
Copy link
Copy Markdown

testlens-app Bot commented May 4, 2026

✅ All tests passed ✅

⚠️ TestLens detected flakiness ⚠️

Test Summary

Check Project/Task Test Runs
Build and test / lts (17, macos-latest) :test TempTest > testCode() ⚠️ 🚫
Build and test / lts (17, ubuntu-latest) :test TempTest > testCode() ⚠️ 🚫
Build and test / lts (17, windows-latest, 1) :test TempTest > testCode() ⚠️ ⚠️
Build and test / lts (21, ubuntu-latest) :test TempTest > testCode() ⚠️ 🚫

🏷️ Commit: d8e4946
▶️ Tests: 19488 executed
⚪️ Checks: 24/24 completed

Test Failures

TempTest > testCode() (:test in Build and test / lts (17, windows-latest, 1))
groovy.lang.MissingMethodException: No signature of method: assertScript for class: TempTest is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [@GrabResolver('file:/D:/a/groovy/groovy/build/testFixtures/extmodule/repo/jars')
                @Grab(value='module-test:module-test:1.4', changing='true')
                import org.codehaus.groovy.runtime.m12n.*

                def map = [:]
                assert 'foo'.taille() == 3
                assert map.taille() == 0
            ]
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:83)
	at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163)
	at TempTest.testCode(Temp.groovy:16)
TempTest > testCode() (:test in Build and test / lts (17, windows-latest, 1))
groovy.lang.MissingMethodException: No signature of method: assertScript for class: TempTest is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [@GrabResolver('file:/D:/a/groovy/groovy/build/testFixtures/extmodule/repo/jars')
                @Grab(value='module-test:module-test:1.4', changing='true')
                import org.codehaus.groovy.runtime.m12n.*

                // ensure that the module is now loaded
                ExtensionModuleRegistry registry = GroovySystem.metaClassRegistry.moduleRegistry
                assert registry.modules.any { it.name == 'Test module for Grab' && it.version == '1.4' }

                // the following methods are added by the 'Test module for Grab' module
                def str = 'This is a string'
                assert str.reverseToUpperCase2() == str.toUpperCase().reverse()
                assert String.answer2() == 42
            ]
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:83)
	at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163)
	at TempTest.testCode(Temp.groovy:16)
TempTest > testCode() (:test in Build and test / lts (17, windows-latest, 1))
groovy.lang.MissingMethodException: No signature of method: assertScript for class: TempTest is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [
                @GrabResolver('file:/D:/a/groovy/groovy/build/testFixtures/extmodule/repo/jars')
                @Grab(value='module-test:module-test:1.4', changing='true')
                import org.codehaus.groovy.runtime.m12n.*

                assert 'test'.groovy7225() == 'test: ok'
                assert {->}.groovy7225() == '{"field":"value"}'
            ]
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:83)
	at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163)
	at TempTest.testCode(Temp.groovy:14)

Learn more about TestLens at testlens.app.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 67.3329%. Comparing base (a4caaa4) to head (d8e4946).
⚠️ Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
...vy/org/codehaus/groovy/tools/groovydoc/Main.groovy 0.0000% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##               master      #2511        +/-   ##
==================================================
+ Coverage     67.3242%   67.3329%   +0.0087%     
- Complexity      32268      32279        +11     
==================================================
  Files            1490       1490                
  Lines          125062     125080        +18     
  Branches        22519      22526         +7     
==================================================
+ Hits            84197      84220        +23     
+ Misses          33538      33533         -5     
  Partials         7327       7327                
Files with missing lines Coverage Δ
...vy/org/codehaus/groovy/tools/groovydoc/Main.groovy 0.0000% <0.0000%> (ø)

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@daniellansun daniellansun merged commit 97e6557 into apache:master May 5, 2026
36 of 37 checks passed
@daniellansun
Copy link
Copy Markdown
Contributor

Merged. Thanks.

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.

3 participants