Skip to content
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

Avoid illegal reflective access in RabbitAutoConfigurationTests #26954

Conversation

dreis2211
Copy link
Contributor

Hi,

this is an attempt to avoid some illegal reflective access in RabbitAutoConfigurationTests. The idea is that rather than using reflection in order to get down to the used TrustManager we look for output that TrustEverythingTrustManager is producing when in use. It's not pretty, but it works and is reflection free. It's also the least invasive option without opening modules and/or changing the production code that I could find.

As this is part of the overall JDK 17 story under #26767, it should probably go into 2.5.x.

Let me know what you think.
Cheers,
Christoph

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 17, 2021
@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 17, 2021
@philwebb philwebb added this to the 2.5.x milestone Jun 17, 2021
@snicoll snicoll modified the milestones: 2.5.x, 2.5.2 Jun 22, 2021
@snicoll snicoll closed this in a2a69ad Jun 22, 2021
@snicoll
Copy link
Member

snicoll commented Jun 22, 2021

Thanks @dreis2211, I am not a big fan of asserting the console output but, looking at the previous version, I think it's an acceptable trade-off.

@dreis2211
Copy link
Contributor Author

Me neither, @snicoll . But thanks for accepting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants