-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 533327 - [9] Implement JEP 211 #2680
Bug 533327 - [9] Implement JEP 211 #2680
Conversation
@jarthana @iloveeclipse I'd like to apply the same also to warnings / errors regarding restricted access (according to access rules): Currently, just like with deprecation warnings, those warnings ("Discouraged access ...") can only be suppressed by adding So perhaps we should also stop raising such warnings on imports? Warnings on actual usage will of course remain. Any objections? Strictly speaking the rule in JLS was changed in version 9, but I don't think anybody will complain if the same also applies at 1.8, right? |
Test failures show that I "accidentally" already did away with warnings for restricted access reported on import declarations. I'll wait for agreement / objections before adjusting those tests or limiting the implementation change to pure deprecation warnings. |
Not from me, makes sense.
Is that a problem / big overhead to perform it on 9+ level only? I would follow the spec, simply to be consistent with it even if the change should be fine with 1.8. |
thanks
Not a problem, only means instead of deleting code I'll have to add code :) |
I would prefer the opposite. |
Adjust also AccessRestrictionsTests
If "opposite" refers to removing code rather than adding, this is at conflict with your previous suggestion. Anyway, not a big deal, see 5024190 for warning re-introduced at 1.8- |
+ test fixes
That was used for imports only and not needed anymore after eclipse-jdt/eclipse.jdt.core#2680 See eclipse-platform/eclipse.platform.releng.aggregator#2178
That was used for imports only and not needed anymore after eclipse-jdt/eclipse.jdt.core#2680 See eclipse-platform/eclipse.platform.releng.aggregator#2178
@stephan-herrmann : this PR was merged "too fast", as it introduced new warnings that failed the SDK build (see eclipse-platform/eclipse.platform.releng.aggregator#2178). I don't have a solution yet for how we can avoid that in the future (except to avoid treating warnings as errors in project settings), because it is of course a lot of effort / time needed to compile everything locally with a new compiler version. |
@iloveeclipse I'm all ears if you have any feasible suggestions. For the recently added "unnecessary casts" warnings, I was happy to fix them ahead of time, but that certainly was a one-time favor :) |
Don't raise warnings on imports (deprecation, restricted access) fixes eclipse-jdt#2679
Don't raise warnings on imports (deprecation, restricted access) fixes eclipse-jdt#2679
fixes #2679