We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I reflect over a case class
case class UnicodePropetyCaseClass(`class-id`: Int, name: String)
then the bean descriptor only has the name property. Could it be more appropriate to use scala.reflect.NameTransformer.decode so the class name can be unmangled? Then it would pass this test: https://github.com/scalastuff/scalabeans/blob/master/src/main/scala/org/scalastuff/scalabeans/BeanIntrospector.scala#L105
scala.reflect.NameTransformer.decode
but that will most likely break other things
The text was updated successfully, but these errors were encountered:
I got that working by allowing all names that occur in constructor params. I changed https://github.com/scalastuff/scalabeans/blob/master/src/main/scala/org/scalastuff/scalabeans/BeanIntrospector.scala#L105
to
if ctorParameterNames.contains(name) || !name.contains('$')
All the tests still pass after that change.
Sorry, something went wrong.
No branches or pull requests
When I reflect over a case class
then the bean descriptor only has the name property.
Could it be more appropriate to use
scala.reflect.NameTransformer.decode
so the class name can be unmangled?Then it would pass this test: https://github.com/scalastuff/scalabeans/blob/master/src/main/scala/org/scalastuff/scalabeans/BeanIntrospector.scala#L105
but that will most likely break other things
The text was updated successfully, but these errors were encountered: