forked from ceedubs/ficus
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Wrong value parsed when having a key that starts with the value of another key using hyphens #82
Comments
It seems to be a bug in the scala compiler: scala/bug#8831, as pointed out by @jcazevedo from pureconfig. |
Philippus
added a commit
to Philippus/ficus
that referenced
this issue
Feb 14, 2021
kailuowang
pushed a commit
that referenced
this issue
Jun 22, 2021
* Extend scala.annotation.Annotation * Supply empty argument list explicitly * Update scala 2.13.0 to 2.13.4 * Update sbt-scoverage to 1.6.1 * Add test for issue #82
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When having both
foo-bar
andfoo
present in a case class, Ficus attempts to parse the value offoo-bar
and assign it tofoo
. When they both have different types this results in a ClassCastException, however when the types are the same, ficus will assign the value offoo-bar
to bothfoo
andfoo-bar
.Example that fails with ClassCastException.
Example that doesn't fail, but assigns the value of
foo-bar
tofoo
.The text was updated successfully, but these errors were encountered: