문제

I have constant with type byte[] which contains only one symbol { 0 }. I tried to inject this constant to another bean SomeBean which contains method setSomeField(T field) through property tag.

Type of injected value is parametrized.

I tried to inject this constant through util:constant and got Byte type instead of byte[]. Then I tried to use factory bean with method byte[] getSomeField() and got Byte type again.

Could somebody explain why this happen? And how can I avoid this behavior?

I created repository with demonstration of this issue

도움이 되었습니까?

해결책

It's a Spring beans bug, fixed in version >= 3.2.5

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top