Title: Generics support for beans hierarchy · Issue #865 · androidannotations/androidannotations · GitHub
Open Graph Title: Generics support for beans hierarchy · Issue #865 · androidannotations/androidannotations
X Title: Generics support for beans hierarchy · Issue #865 · androidannotations/androidannotations
Description: I've submitted PR #793 early, but it looks like my intentions wasn't clear enough. Let's assume: @EBean abstract class BeanA
Open Graph Description: I've submitted PR #793 early, but it looks like my intentions wasn't clear enough. Let's assume: @EBean abstract class BeanA
X Description: I've submitted PR #793 early, but it looks like my intentions wasn't clear enough. Let's assume: @EBean abstract class BeanA<N extends Number> { @Background void method(List<N&...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/865
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generics support for beans hierarchy","articleBody":"I've submitted PR #793 early, but it looks like my intentions wasn't clear enough.\nLet's assume:\n\n```\n@EBean\nabstract class BeanA\u003cN extends Number\u003e {\n\n @Background\n void method(List\u003cN\u003e list) {\n }\n\n}\n\n@EBean\nclass BeanB extends BeanA\u003cDouble\u003e {\n\n}\n```\n\nNow it generates:\n\n```\nclass BeanB_ extends BeanB {\n @Override\n public void method(final List\u003cN\u003e a) {...}\n}\n```\n\nBut should:\n\n```\nclass BeanB_ extends BeanB {\n @Override\n public void method(final List\u003cN\u003e a) {...}\n}\n```\n\nAnother case is:\n\n```\n@EBean\npublic abstract class BeanA\u003cT\u003e {\n}\n```\n\nand\n\n```\n@EBean\npublic class BeanB\u003cT\u003e extends BeanA\u003cT\u003e {\n}\n```\n\nRight now it breaks generated class BeanB_.\n\nI've also fixed \u003c? super A\u003e wildcard problem, discussed in #838 (but is not the rare case for me, actually).\nI've used some durty hacks to make it work. The main reason for that is limitations of the code model.\nThat PR is not up-to-date, but, if you want, I could make it so.\n","author":{"url":"https://github.com/Artyomcool","@type":"Person","name":"Artyomcool"},"datePublished":"2014-01-07T18:01:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/865/androidannotations/issues/865"}
| 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:c0bb4769-7454-bf37-4514-30d60807fae3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5F8:80108:3DEA7C:5A733B:6A61E70B |
| html-safe-nonce | 1998895400293c08735757332d33319b63098747a8bd731fe0c1d72c20b49b9c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUY4OjgwMTA4OjNERUE3Qzo1QTczM0I6NkE2MUU3MEIiLCJ2aXNpdG9yX2lkIjoiODE4MjgyMDA3NjkzMDU5MDQ3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4c5c4d90b1a82c99152f86d2434940fc18b54fee1f09858d627a6b95d82c7550 |
| hovercard-subject-tag | issue:25184846 |
| 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/androidannotations/androidannotations/865/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54ca3eaca1cea2e5dd2b35802e86acc6aa63f3f8b3f5ff018361731690bbcbec/androidannotations/androidannotations/issues/865 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54ca3eaca1cea2e5dd2b35802e86acc6aa63f3f8b3f5ff018361731690bbcbec/androidannotations/androidannotations/issues/865 |
| og:image:alt | I've submitted PR #793 early, but it looks like my intentions wasn't clear enough. Let's assume: @EBean abstract class BeanA |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Artyomcool |
| hostname | github.com |
| expected-hostname | github.com |
| None | b2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| 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 | d1866027ded575df8a15c731dd8b9986c9483ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width