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

DefaultClassResolver should resolve classes in the default package #93

Merged
merged 1 commit into from
Dec 16, 2019

Conversation

harawata
Copy link
Contributor

@harawata harawata commented Dec 5, 2019

DefaultClassResolver#classForName() throws ClassNotFoundException if the specified class is in the default package (i.e. no dot in the className).
Using the default package should be avoided, but we have received a few bug reports about it.
mybatis/mybatis-3#1524
mybatis/mybatis-3#1768
And the reporters said that it was working fine with the older versions, so it probably is related to #46 .

To write a test, I had to create a class in the default package.
If you don't like it, I will remove the class along with the test.
The comment in the source might be good enough to avoid regression.

Copy link
Collaborator

@lukaszlenart lukaszlenart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lukaszlenart lukaszlenart merged commit c405571 into orphan-oss:master Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants