Skip to content

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

Closed

Description

@jmorenojuez

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.

Activity

  1. bbottema commented on Sep 21, 2018

    @bbottema
    Owner

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

  2. jmorenojuez commented on Sep 21, 2018

    @jmorenojuez
    Author
  3. self-assigned this
    on Sep 22, 2018
  4. added 2 commits that reference this issue on Sep 22, 2018
  5. 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[/+] on Sep 22, 2018
  6. bbottema commented on Sep 22, 2018

    @bbottema
    Owner

    Can you please verify that this was solved in 5.0.4?

  7. added this to the 5.0.4 milestone on Sep 22, 2018
  8. jmorenojuez commented on Sep 22, 2018

    @jmorenojuez
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions