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

Fix - setConfiguration not being called on classes that extend ConfigurableSocketFactory #157

Merged
merged 1 commit into from Sep 24, 2020

Conversation

shahmirn
Copy link
Contributor

@shahmirn shahmirn commented Aug 5, 2020

In my project, I have a class that extends ConfigurableSocketFactory, but the setConfiguration method is never called. I added a breakpoint to if (socketFactoryClass.isInstance(ConfigurableSocketFactory.class)) {, and the expression was evaluating to false.

From my googling, I landed at https://stackoverflow.com/questions/31083699/java-class-isinstance-always-returns-false, which indicated that the evaluation was being done backwards.

When I evaluated ConfigurableSocketFactory.class.isInstance(socketFactory), the result was true

@rusher
Copy link
Collaborator

rusher commented Aug 19, 2020

Thanks for detail and fix 👍

associate Jira task: https://jira.mariadb.org/browse/CONJ-813
fix is merged into develop branch ( a88d392) so will be part of 2.6.3 release

@rusher rusher merged commit a88d392 into mariadb-corporation:master Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants