Skip to content

GenericTypeAwarePropertyDescriptor warns when creating java.security.SecureRandom bean [SPR-6399] #11065

Closed
@spring-projects-issues

Description

@spring-projects-issues

Nickolay Mazurkin opened SPR-6399 and commented

I create a bean with java.security.SecureRandom type property which is injected.

GenericTypeAwarePropertyDescriptor warns me that SecureRandom has ambiguous write methods with the following message.

Invalid JavaBean property 'seed' being accessed! Ambiguous write methods found next to actually used [public void java.security.SecureRandom.setSeed(long)]: [public synchronized void java.security.SecureRandom.setSeed(byte[])]

I fully understand that it does mean. But java.security.SecureRandom is a JDK's class and I can do nothing to make this bean properly formed. And I don't want to see this warn message in my log too.


Affects: 3.0 RC2

Issue Links:

Referenced from: commits 61f2371

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions