Title: Java - how to handle generic types · Issue #2 · msgpack-rpc/msgpack-rpc-java · GitHub
Open Graph Title: Java - how to handle generic types · Issue #2 · msgpack-rpc/msgpack-rpc-java
X Title: Java - how to handle generic types · Issue #2 · msgpack-rpc/msgpack-rpc-java
Description: Hi, I'm using RPC with a type that uses generic types. The RPC method looks something like: public Result doCommand(Command command) { the Command class is as follows: public class Command
Open Graph Description: Hi, I'm using RPC with a type that uses generic types. The RPC method looks something like: public Result doCommand(Command command) { the Command class is as follows: public class Command X Description: Hi, I'm using RPC with a type that uses generic types. The RPC method looks something like: public Result doCommand(Command command) { the Command class is as follows: public class Command<D...
Opengraph URL: https://github.com/msgpack-rpc/msgpack-rpc-java/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java - how to handle generic types","articleBody":"Hi,\n\nI'm using RPC with a type that uses generic types.\n\nThe RPC method looks something like:\n\n``` java\npublic Result doCommand(Command command) {\n```\n\nthe Command class is as follows:\n\n``` java\npublic class Command\u003cD extends Data\u003e extends SomethingSuper {\n private String id;\n//more fields here\n private D data;\n```\n\nWhen creating the server I register the types that are being used and register command as such:\n\n``` java\nMessagePack msgPack = new MessagePack();\nmsgPack.register(ImplementationForD.class);\nmsgPack.register(Command.class);\n```\n\nand this conveniently creates a template object that handles correctly all the fields except for generic types D. I also register the implementations for types D.\n\nWhen it comes to de-serialization msgpack picks up the field data as of type D for which it doesn't have any template that could be applied to read the value.\n\nPlease advise on how to solve this - if at all possible.\n","author":{"url":"https://github.com/adicioban","@type":"Person","name":"adicioban"},"datePublished":"2013-08-19T06:06:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/msgpack-rpc-java/issues/2"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:7f8806fd-caeb-0f4c-9d12-7ed3740c8b5f current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id BB10:3B0430:4E9C1E:67E477:697F5831 html-safe-nonce 92e0739e1f1d2f23319974f72a39bf84efbe00c970fbfdecc5a09f1ab6a0254b visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjEwOjNCMDQzMDo0RTlDMUU6NjdFNDc3OjY5N0Y1ODMxIiwidmlzaXRvcl9pZCI6IjU3MjQzMTMyNDExNDQ3NDM5ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac b1699076fab2af61415343cb9e03134e2a4ca7c1c9d6312370b94b09006cc4d8 hovercard-subject-tag issue:18224088 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack-rpc/msgpack-rpc-java/2/issue_layout twitter:image https://opengraph.githubassets.com/00cbf27bfc69d7305ecad2041415077bf005333283d4f6c87d4212777f836666/msgpack-rpc/msgpack-rpc-java/issues/2 twitter:card summary_large_image og:image https://opengraph.githubassets.com/00cbf27bfc69d7305ecad2041415077bf005333283d4f6c87d4212777f836666/msgpack-rpc/msgpack-rpc-java/issues/2 og:image:alt Hi, I'm using RPC with a type that uses generic types. The RPC method looks something like: public Result doCommand(Command command) { the Command class is as follows: public class Command og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username adicioban hostname github.com expected-hostname github.com None 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 turbo-cache-control no-preview go-import github.com/msgpack-rpc/msgpack-rpc-java git https://github.com/msgpack-rpc/msgpack-rpc-java.git octolytics-dimension-user_id 1770939 octolytics-dimension-user_login msgpack-rpc octolytics-dimension-repository_id 7748583 octolytics-dimension-repository_nwo msgpack-rpc/msgpack-rpc-java octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 7748583 octolytics-dimension-repository_network_root_nwo msgpack-rpc/msgpack-rpc-java turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 7c85641c598ad130c74f7bcc27f58575cac69551 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.