Willena / sqlite-jdbc-crypt

SQLite JDBC Driver with encryption support
Apache License 2.0
172 stars 33 forks source link

Missing "org.sqlite.mc" Export in "module-info.class" #75

Closed HalfKraut closed 1 year ago

HalfKraut commented 1 year ago

Describe the bug I get an error that Eclipse cannot resolve the type of any of the classes from the org.sqlite.mc package. I had the jar added as an external jar in my build path. I notice this package was the only one not exported in the module-info.class file. image

I'm new to how modules work, but I guess "The packages in a module are accessible to other modules only if the module explicitly exports them." according to Oracle. I just made a package with the name "org.sqlite.mc" and put all the source files from the repo in there as a workaround for my project for now.

To Reproduce I had downloaded the .jar file available for the latest release and added it to my project in Eclipse. I was following the encryption usage tutorial where you start by making a Connection, and I was attempting to use the "SQLiteMCWxAES256Config" for encryption.

Expected behavior I expected it to just sort out what the classes in the .mc package were, but it wouldn't. It turned out that all of the classes for this package and this package only were unable to have their types resolved by Eclipse.

Environment (please complete the following information):

Willena commented 1 year ago

The should be now fixed. It will be available in the next version.