Skip to content

The C namespace parameters in do not match in Spring 6.1 #33219

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

Closed
hnxxxxx opened this issue Jul 15, 2024 · 3 comments
Closed

The C namespace parameters in do not match in Spring 6.1 #33219

hnxxxxx opened this issue Jul 15, 2024 · 3 comments
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@hnxxxxx
Copy link

hnxxxxx commented Jul 15, 2024

Affects: <Spring Framework version>


Spring 6.1.5-SNAPSHOT
image
image
Why do the results of name and gender not match?
image

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 15, 2024
@snicoll
Copy link
Member

snicoll commented Jul 15, 2024

I am not sure why you're using 6.1.5-SNAPSHOT considering that 6.1.10 is out. Please don't paste screenshots as they make it a poor way of describing the problem you're facing. It's also unclear if that's a new problem you have on upgrading.

If you want support, take the time to provide more information. You may want also to review the upgrade notes and this section in particular.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jul 15, 2024
@hnxxxxx
Copy link
Author

hnxxxxx commented Jul 15, 2024

Thank you for your response. I apologize for not being able to describe my problem clearly. The reason I'm using version 6.1.10 is that I'm a beginner with Spring, and I directly added the dependencies to my project from GitHub.

Currently, I'm encountering an issue with using the c namespace for injection. I found that the values injected through "c:name", "c:age" are incorrect. For example, with c:name="John" and c:age="23", the expected result should be name="John" and age="23". However, the actual result is name="23" and age="John". I am not sure if this is an issue on my end, as I have checked multiple times. I also tested with version 6.1.5-SNAPSHOT, but the result was the same.

Additionally, if the types of two properties are different, such as String name and int age, it could lead to type mismatch issues, which may result in an "UnsatisfiedDependencyException "exception.

Thank you again for your reply.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jul 15, 2024
@sbrannen
Copy link
Member

sbrannen commented Jul 15, 2024

Hi @hnx-ctrl,

Congratulations on opening your first issue ever on GitHub! 👍

Unfortunately, we do not use this issue tracker for general questions like that, and the following is our official policy.

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

In light of the above, I am closing this issue.

In any case, it appears to me that the names of the constructor parameters might not be available in the compiled byte code. Consider compiling your code with the -parameters compiler flag. The Parameter Name Resolution section of the wiki may also be useful.

Regards,

Sam

@sbrannen sbrannen closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
@sbrannen sbrannen added for: stackoverflow A question that's better suited to stackoverflow.com and removed status: waiting-for-triage An issue we've not yet triaged or decided on status: feedback-provided Feedback has been provided labels Jul 15, 2024
@sbrannen sbrannen changed the title Spring 6.1.5-SNAPSHOT The C namespace parameters in Spring do not match The C namespace parameters in do not match in Spring 6.1 Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

4 participants