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

ClassPathScanner fails with enum #801

larry-s opened this issue Jul 14, 2014 · 1 comment

ClassPathScanner fails with enum #801

larry-s opened this issue Jul 14, 2014 · 1 comment


Copy link

@larry-s larry-s commented Jul 14, 2014

Classpath scanner failed when there was an enum in the directory.

The code below worked until I created an enum in the package.

scanner.scanForClasses("au/com/smarthealth/smartrm/entity", Object.class);

Stack trace:

Exception in thread "main" org.flywaydb.core.api.FlywayException: Unable to instantiate class:
at org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner.scanForClasses(


@axelfontaine axelfontaine added this to the Flyway 3.1 milestone Aug 3, 2014
Copy link

@axelfontaine axelfontaine commented Aug 3, 2014

Thanks for reporting this. Technically this is "use at your own risk" private API. So be careful, as it is only meant to work for Flyway's specific usecase.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.