The original code used that.beanName
to access the private field beanName
, which is not allowed. Changed to use getter method.
Comment From: pivotal-cla
@Alioth4J Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@Alioth4J Thank you for signing the Contributor License Agreement!
Comment From: sbrannen
Hi @Alioth4J,
Congratulations on submitting your first PR for the Spring Framework! 👍
Unfortunately, your analysis is incorrect: in Java it is permissible to access a private field of an instance of the same type within methods of that type.
In light of that, I am closing this PR.
Regards,
Sam