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

Error: java.lang.ClassCastException: org.treblereel.dto.Import cannot be cast to org.treblereel.Import #42

Open
treblereel opened this issue Oct 13, 2020 · 0 comments
Assignees
Labels

Comments

@treblereel
Copy link
Contributor

i have two classes:

  • org.treblereel.dto.Import
  • org.treblereel.Import

But processor produce only one pair of ser/deserializers under org.treblereel package, so ExtensionElementBeanJsonSerializerImpl use ImportBeanJsonSerializerImpl for org.treblereel.Import, not for org.treblereel.dto.Import and it leads to ClassCastException. I think it could be fix by placing serializers under package, their type belongs to.

reproducer https://github.com/treblereel/j2cl-tests/tree/ClassCastException

Thanks !

@vegegoku vegegoku self-assigned this Oct 13, 2020
@vegegoku vegegoku added the bug label Oct 13, 2020
@vegegoku vegegoku added this to the 1.0 milestone Oct 13, 2020
treblereel pushed a commit to treblereel/domino-jackson that referenced this issue Oct 15, 2020
treblereel pushed a commit to treblereel/domino-jackson that referenced this issue Oct 18, 2020
treblereel pushed a commit to treblereel/domino-jackson that referenced this issue Oct 20, 2020
vegegoku pushed a commit that referenced this issue Oct 21, 2020
… be cast to org.treblereel.Import (#43)

* fix for #42

* issue 42 tests

* fix for inner classes

* inner classes tests
@vegegoku vegegoku removed this from the 1.0 milestone Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants