boonproject / boon

Simple opinionated Java for the novice to expert level Java Programmer. Low Ceremony. High Productivity.
http://richardhightower.github.io/site/Boon/Welcome.html
Apache License 2.0
521 stars 102 forks source link

NumberFormatException when parsing heroku java.version system property #367

Open cpretzer opened 7 years ago

cpretzer commented 7 years ago

When mapping a JSON string to a class using the PlayFramework 2.5.10 on Heroku, a NumberFormatException occurs because the System.getProperty("java.version") returns "1.8.0_102-cedar14" on a heroku instance.

While this is a very specific case, the logic can be updated to handle the scenario more gracefully and print better messaging which includes the value of the java.version system property.

boon_exception.txt

RichardHightower commented 7 years ago

Please send a pull request. Are you still in SF area?