-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Problem with java 6 version (4.2.1-java6-release): incompatible class version (1.7) #74
Comments
Oh hmm, I see. Thanks for the report, I'll try to have it fixed this weekend. |
I tried to use the enforcer plugin in the project as well, but I'm not able to get it complaining about the dependencies. Not sure what I'm doing wrong. I'll keep on it though. |
I also tried to recompile your project with Java 6 target level, but I did not understand how did you manage java 6 compatibility since I came accross some classes that only available from Java 7 like StandardCharsets and Phaser. After the recompilation I included it in my project and got a ClassNotFoundException since StandardCharsets is not present in JDK 6, obviously. |
To be honest, I'm taking a quite naive approach in hindsight; I simply set the target compiler version to 1.6, but that doesn't give any guarantees about the dependencies, which I package along. This approach worked while Simple Java Mail had fewer features, but it won't work anymore. I'm not sure I can still support Java6 now. Do you have suggestions? |
Thanks for your time and your fast response! |
I'll see what it takes to make a reduced java6 version. Otherwise I will deprecate the java6 releases and stick to java7. |
Sounds good, thank you for your effort! |
I've released a customised 4.2.3-java6-release with a customised outlook-message-parser 1.1.16-java6-release. This is the last java6 release I will do, as it is simply too much manual labor to create a limited second edition. I've removed the Phaser completely which has the following consequences:
This means your server/application might not stop properly due to lingering processes. To be completely safe, only send emails in sync mode (used by default) and don't use authenticated proxy config. |
Hi,
I have a maven enforcer rule on my project so that I can only use Java 6 compatible maven dependencies.
I imported your simple-java-mail:4.2.1-java6-release, I got this output from maven:
Seems that org.simplejavamail:outlook-message-parser is compiled with Java 7.
My maven enforcer rule, for reference:
Please fix,
Thanks!
The text was updated successfully, but these errors were encountered: