Affects: \


Spring 6.1.5-SNAPSHOT Spring The C namespace parameters in do not match in Spring 6.1 Spring The C namespace parameters in do not match in Spring 6.1 Why do the results of name and gender not match? Spring The C namespace parameters in do not match in Spring 6.1

Comment From: snicoll

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.

Comment From: hnx-ctrl

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.

Comment From: sbrannen

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