Title: @ItemClick with generic wildcards · Issue #722 · androidannotations/androidannotations · GitHub
Open Graph Title: @ItemClick with generic wildcards · Issue #722 · androidannotations/androidannotations
X Title: @ItemClick with generic wildcards · Issue #722 · androidannotations/androidannotations
Description: If a declare a method like this: @ItemClick(android.R.id.list) protected void onListItemClick(Choice> item) { } The generated class will not compile. Actually it has only one problem: it tries to import Choice> instead of Choice. But...
Open Graph Description: If a declare a method like this: @ItemClick(android.R.id.list) protected void onListItemClick(Choice> item) { } The generated class will not compile. Actually it has only one problem: it tries to...
X Description: If a declare a method like this: @ItemClick(android.R.id.list) protected void onListItemClick(Choice<?> item) { } The generated class will not compile. Actually it has only one problem: it tr...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/722
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@ItemClick with generic wildcards","articleBody":"If a declare a method like this:\n\n``` java\n@ItemClick(android.R.id.list)\nprotected void onListItemClick(Choice\u003c?\u003e item) {\n\n}\n```\n\nThe generated class will not compile. Actually it has only one problem: it tries to import `Choice\u003c?\u003e` instead of `Choice`.\n\nBut if i use an actual template parameter it gets worse. For example `Choice\u003cString\u003e`. In this case, not just the import goes wrong, but the also method call. The generated method call:\n\n``` java\nonListItemClick(((String\u003e) parent.getAdapter().getItem(position)));\n```\n","author":{"url":"https://github.com/WonderCsabo","@type":"Person","name":"WonderCsabo"},"datePublished":"2013-09-10T21:55:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/722/androidannotations/issues/722"}
| 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:682e49f3-ad0c-f06c-15b1-5fd0c20fbbb1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD58:15CAB5:33BB1C:45F7B8:6A61370A |
| html-safe-nonce | 87640ed1f871f8d68059cfcf5e5c50bb798c132d19588d2c61f527f8edfa50e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDU4OjE1Q0FCNTozM0JCMUM6NDVGN0I4OjZBNjEzNzBBIiwidmlzaXRvcl9pZCI6Ijk1NzY4MzM5NjIwMzA4NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 685c66b10df06452f042c513d2aaa38ae52cfd027c25ec3ad9dccc96c1d6fbbd |
| hovercard-subject-tag | issue:19287488 |
| 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/722/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2d0c45012eaed641aee18d29feca1176ea94b2fb9b7ae84578ab63af2d8aff4/androidannotations/androidannotations/issues/722 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2d0c45012eaed641aee18d29feca1176ea94b2fb9b7ae84578ab63af2d8aff4/androidannotations/androidannotations/issues/722 |
| og:image:alt | If a declare a method like this: @ItemClick(android.R.id.list) protected void onListItemClick(Choice> item) { } The generated class will not compile. Actually it has only one problem: it tries to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WonderCsabo |
| hostname | github.com |
| expected-hostname | github.com |
| None | c5eca2d5d770261725d2d44a57879a5bd9643e5b84204081dc36933ab40e63a2 |
| 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 | dac3a1c903b48538720e0bc780047237dd89fd4c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width