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

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

ClassPathScanner fails with enum #801

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

Comments

@larry-s
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: au.com.smarthealth.smartrm.entity.ViewMode
at org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner.scanForClasses(ClassPathScanner.java:114)

...

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

@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.

Cheers
Axel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
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.