You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalStateException: Method OverrideParameterizedApi#get(String) not annotated with HTTP method type (ex. GET, POST)
Warnings:
Class OverrideParameterizedApi has no annotations, it may affect contract Default
at feign.Util.checkState(Util.java:121)
at feign.Contract$BaseContract.parseAndValidateMetadata(Contract.java:117)
at feign.Contract$BaseContract.parseAndValidateMetadata(Contract.java:71)
at feign.DeclarativeContract.parseAndValidateMetadata(DeclarativeContract.java:40)
at feign.DefaultContractInheritanceTest.overrideParameterizedApiSupported(DefaultContractInheritanceTest.java:88)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Less important, but all 3 tests in this test unit are failing:
feign.MultipleLoggerTest
Failure is: org.junit.platform.commons.JUnitException: Failed to close extension context
I believe that these 3 failures are because JUL is grabbing file locks, which prevents JUnit from cleaning up it's temp folders under Windows. One solution would be to add a close() method to JavaLogger...
Thanks for the Windows-specific test report. The DefaultContractInheritanceTest failures on Java 21/Windows and the JUL file-locking behavior around MultipleLoggerTest both look worth fixing, so I marked this as a bug.
Happy to pick up the remaining inheritance failures — planning to skip synthetic/bridge methods in BaseContract parsing so the existing DefaultContractInheritanceTest cases pass.
Activity
velo commentedon Jun 19, 2026
Thanks for the Windows-specific test report. The DefaultContractInheritanceTest failures on Java 21/Windows and the JUL file-locking behavior around MultipleLoggerTest both look worth fixing, so I marked this as a bug.
The path I'd welcome here is a focused PR with tests or build adjustments that make these pass on Windows without weakening the existing contract behavior. I'll review that when it's up; if you'd rather sponsor/commission the fix, I'm also available through GitHub Sponsors: https://github.com/sponsors/velo.
trumpetinc commentedon Jul 27, 2026
@velo I created a PR for fix to the JUL file locking issue. #3493
trumpetinc commentedon Jul 27, 2026
These two issues from this ticket are still outstanding:
feign.DefaultContractInheritanceTest.overrideParameterizedApiSupported()feign.DefaultContractInheritanceTest.multipleInheritanceDoneCorrectly2()AzazelSensei commentedon Aug 12, 2026
Happy to pick up the remaining inheritance failures — planning to skip synthetic/bridge methods in BaseContract parsing so the existing DefaultContractInheritanceTest cases pass.
Skip synthetic and bridge methods in contract parsing