| Summary: | [null] improve hierarchy of Scope - document design assumptions | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Stephan Herrmann <stephan.herrmann> |
| Component: | Core | Assignee: | Stephan Herrmann <stephan.herrmann> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | Olivier_Thomann, srikanth_sankaran |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | stalebug | ||
|
Description
Stephan Herrmann
Srikanth, this is one of the issues we talked about. If my proposal makes any sense to you, I'd be happy to prepare a patch. I think a common super class of ClassScope and BlockScope could resolve most of this already. What do you think? (In reply to comment #1) > Srikanth, this is one of the issues we talked about. > If my proposal makes any sense to you, I'd be happy to prepare a patch. > I think a common super class of ClassScope and BlockScope could resolve > most of this already. > What do you think? Would making classScope() an abstract method and pushing the current code with appropriate changes to the different branches of the hierarchy solve the issue ? In principle, the proposed change sounds good, though I would wait to see how large the changes are going to be. Even if the changes are straightforward if they are pervasive, it is may be better to wait until after 3.7 as we are already in RC0 phase. Particularly since this is a reactive cleanup to null analysis work as opposed to an enabler for that work. If there are two many of these warnings that pollute the overall quality of the null diagnostics, then the proposed change could be done on a developer branch/workspace basis to weed out these. In summary, if the volume of change is small and well contained, let us go for it now. otherwise we can do it just post 3.7, just so we can avoid the risk however small of having to remind ourselves of the proverb about the road to hell being paved with good intentions :) This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |