| Summary: | [model] Rename Type still reports syntax error after switch to 5.0 | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Markus Keller
Markus, can you please have a look ? Moving to JDT/Core for comments. Before starting the refactoring, we ask ICompilationUnit#isStructureKnown() (in Checks.checkIfCuBroken(..)). Expected: true Was: false Interestingly, if you ask IType#isStructureKnown() on type C, you get true at that time. I checked that the reconcile passed, so I think this is a JDT/Core problem. Since there was no change in the source, the second reconcile doesn't re-parse the cu, thus it still thinks it has syntax errors (and its structure is not known). Need to find a way to detect this case ... Note that any element inside an ICompilationUnit will always return true to isStructureKnown(). This is debatable. We could store the source level used during the last reconcile in the ASTHolderCUInfo and compare it to the current one. If they are different, and even if the source has not changed, then we would force the reconcile. (In reply to comment #4) How does this work if I change other compiler options (like enabling a new warning)? Shouldn't the same mechanism also make the working copy dirty when the source level changes? Hum, you're right. So we should listen for preferences change and mark the corresponding working copies as not consistent when any compiler options change. See also bug 223910 Deferring post 3.4 Targeting M5 Not for 3.5 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. |