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

Properties aquired through ConfigLoader should be typed explicitly and converted if necessary #168

Closed
jmorenojuez opened this issue Sep 21, 2018 · 4 comments
Assignees
Milestone

Comments

@jmorenojuez
Copy link

Hi there,

Nice work with your email library; It has made my life much easier.

I think that I migth have found a little bug. Basically if you set a property that it is supposed to be a String like "simplejavamail.smtp.password" to an integer number, I get the followiing Exception when builind a Mailer instance:

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

By setting quoting the property on the propertis file I can bypass the issue but the problem afterwards is that the value of the property has these quotes. Same using double quotes.

Best regards.

@bbottema
Copy link
Owner

Hi @jmorenojuez, thanks for the report! Can you post up a small example code?

@jmorenojuez
Copy link
Author

jmorenojuez commented Sep 21, 2018 via email

@bbottema bbottema self-assigned this Sep 22, 2018
@bbottema bbottema changed the title ClassCastException when setting "simplejavamail.smtp.password" property to an integer number Properties aquired through ConfigLoader should be typed explicitly and converted if necessary Sep 22, 2018
@bbottema
Copy link
Owner

Can you please verify that this was solved in 5.0.4?

@bbottema bbottema added this to the 5.0.4 milestone Sep 22, 2018
@jmorenojuez
Copy link
Author

jmorenojuez commented Sep 22, 2018 via email

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

No branches or pull requests

2 participants