-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name clash between Service methods with the same name in one Java package #1326
Comments
Thanks for the report and especially for the reproducer @akil-rails! It is a naming clash. When generating the ancillary classes, the default name of the operation is taken from the method name. Then for the two There are several ways how you can work around the issue:
Let me check whether/how we can fix it. |
I'd say the issue is in CXF code around here: It looks like the class name is not taken into account when creating the name of the generated request and response class. For the record, here is the stack trace from the reproducer:
|
I have filed this CXF issue: https://issues.apache.org/jira/browse/CXF-9003 On Quarkus CXF side, we could at least make the class generation fail at build time when this kind of a clash happens. |
same-name sevice methods in the same Java package quarkiverse#1326
same-name sevice methods in the same Java package quarkiverse#1326
same-name sevice methods in the same Java package quarkiverse#1326
same-name sevice methods in the same Java package #1326
same-name sevice methods in the same Java package quarkiverse#1326
same-name sevice methods in the same Java package #1326
Had reported it in the main repo, but have been asked to raise here --
Describe the bug
Expected behavior
Actual behavior
No response
How to Reproduce?
Reproducer
The steps are mentioned in ReadMe.
Output of
uname -a
orver
Darwin Akhileshs-Air.domain.name 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 arm64
Output of
java -version
openjdk version "21" 2023-09-19 LTS OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS) OpenJDK 64-Bit Server VM Temurin-21+35 (build 21+35-LTS, mixed mode)
Quarkus version or git rev
3.9.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: /Users/akil/.m2/wrapper/dists/apache-maven-3.9.6-bin/3311e1d4/apache-maven-3.9.6 Java version: 21, vendor: Eclipse Adoptium, runtime: /Users/akil/.sdkman/candidates/java/21-tem Default locale: en_IN, platform encoding: UTF-8 OS name: "mac os x", version: "14.4.1", arch: "aarch64", family: "mac"
Additional information
Adding a @RequestWrapper annotation removes this error - but this annotation is optional, and should not be required.
The text was updated successfully, but these errors were encountered: