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

Using sql2o with JAVA 10 (Question) #306

Open
ahardworker opened this issue Nov 2, 2018 · 1 comment
Open

Using sql2o with JAVA 10 (Question) #306

ahardworker opened this issue Nov 2, 2018 · 1 comment

Comments

@ahardworker
Copy link

Has anyone used this library with JAVA 9 and later?
I know that its using com.sun.reflect.* which have been deprecated starting from JAVA 9.

@ahardworker ahardworker changed the title Using sql2o with JAVA 10 label:question Using sql2o with JAVA 10 Nov 2, 2018
@ahardworker ahardworker changed the title Using sql2o with JAVA 10 Using sql2o with JAVA 10 (Question) Nov 2, 2018
@negste
Copy link

negste commented Dec 18, 2018

I have used both version 1.5.4 and 1.6.0 in a modular project.
Things to keep in mind are:

  • if you have custom converters that you load with the service loader mechanism (file in META-INF/services, as per the documentation, see https://github.com/aaberg/sql2o/wiki/Implementing-and-using-custom-converters), that doesn't work anymore: the org.sql2o.converters.ConvertersProvider is not read. Instead you have to add a line like provides org.sql2o.converters.ConvertersProvider with your.module.YourSql2OConvertersProvider
  • with version 1.6.0 you need to add --add-opens java.base/java.lang=sql2o yo you VM run parameters

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

No branches or pull requests

2 participants