OpenLiberty / liberty-tools-intellij

IntelliJ IDEA extension for Liberty
https://plugins.jetbrains.com/plugin/14856-open-liberty-tools
Eclipse Public License 2.0
12 stars 24 forks source link

ResourceMethodMultipleEntityParamsQuickFix (Jakarta EE): Round tripping of integer value in CodeActionResolveData fails. #956

Open mrglavas opened 3 weeks ago

mrglavas commented 3 weeks ago

When LTI upgrades to LSP4Jakarta 0.2.2 this will finally enable support for resolveCodeAction(). ResourceMethodMultipleEntityParamsQuickFix stores an integer and list of integers in the extended data which will be serialized to JSON and then later deserialized back into the CodeActionResolveData object that is processed by resolveCodeAction(). In JSON, floating point numbers are used to represent all numbers and so on the round-trip the integer becomes a double causing a ClassCastException to be thrown.

This issue is similar to https://github.com/OpenLiberty/liberty-tools-intellij/issues/924 and can be fixed in a similar way.