Title: @Pref not processed on project->clean · Issue #450 · androidannotations/androidannotations · GitHub
Open Graph Title: @Pref not processed on project->clean · Issue #450 · androidannotations/androidannotations
X Title: @Pref not processed on project->clean · Issue #450 · androidannotations/androidannotations
Description: I am using a @SharedPref, that I am referencing as a @PREF in other classes. It gets generated correctly on incremental builds, i.e. when I save the enclosing file. But on project->clean it is missing. I have debugged a bit and found (I ...
Open Graph Description: I am using a @SharedPref, that I am referencing as a @PREF in other classes. It gets generated correctly on incremental builds, i.e. when I save the enclosing file. But on project->clean it is miss...
X Description: I am using a @SharedPref, that I am referencing as a @PREF in other classes. It gets generated correctly on incremental builds, i.e. when I save the enclosing file. But on project->clean it is m...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/450
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@Pref not processed on project-\u003eclean","articleBody":"I am using a @SharedPref, that I am referencing as a @Pref in other classes. It gets generated correctly on incremental builds, i.e. when I save the enclosing file. But on project-\u003eclean it is missing.\nI have debugged a bit and found (I hope) the most likely culprit for my problem. When the annotations are processed, in the \"clean-case\", the @SharedPrefs class doesn't exist yet. This case is guarded against by this statement:\n`com.googlecode.androidannotations.helper.ValidatorHelper.isSharedPreference(Element, AnnotationElements, IsValid):Line 637`\n\n```\n if (type instanceof ErrorType) {\n```\n\nHowever this doesn't seem to work correctly (at least not in my eclipse version). Adding\n\n```\n if (type instanceof ErrorType || type.getKind() == TypeKind.ERROR) {\n```\n\nand the same in `com.googlecode.androidannotations.processing.PrefProcessor.process(Element, JCodeModel, EBeanHolder)`\nhowever did work. I would think that checking the Kind that is explicitly returned would be better than checking a class, but I don't know the details here very well.\nWill you investigate this further on your own or do you want me to create a pull request?\n","author":{"url":"https://github.com/KoljaTM","@type":"Person","name":"KoljaTM"},"datePublished":"2013-01-04T23:57:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/450/androidannotations/issues/450"}
| 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:4bb26dab-aa56-5c7f-a9ee-1e601c8aaea3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94E2:8A906:C4546F:10798E2:6A611D24 |
| html-safe-nonce | 997735ced9b52196601cdcfa71ed29ac00c47396d2e811e32aa63152069915c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEUyOjhBOTA2OkM0NTQ2RjoxMDc5OEUyOjZBNjExRDI0IiwidmlzaXRvcl9pZCI6IjE3MjE3OTY4Njk3MDg5MTM5NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 802b51fa40a4dc221e0d0ea281de4b9553c3691b6b47940f473352bd6459cc9e |
| hovercard-subject-tag | issue:9698967 |
| 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/450/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4453792fad69e899424ffe83100fc640bccc4551ad8fd15b5d30971cd9122613/androidannotations/androidannotations/issues/450 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4453792fad69e899424ffe83100fc640bccc4551ad8fd15b5d30971cd9122613/androidannotations/androidannotations/issues/450 |
| og:image:alt | I am using a @SharedPref, that I am referencing as a @PREF in other classes. It gets generated correctly on incremental builds, i.e. when I save the enclosing file. But on project->clean it is miss... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KoljaTM |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d23cf1c0cd2fa53870b9a743b3e1bc3ff0d0b0b3a477b50251e1c9dd8ecb93d |
| 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 | abf5a2f79ab9b533c5865f5281057f7d17cf18f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width