| Summary: | ASTParser cannot resolve bindings for newly added secondary types | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Missing name <noth> | ||||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | Olivier_Thomann, satyam.kandula | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | stalebug | ||||||||
| Attachments: |
|
||||||||
|
Description
Missing name
Created attachment 195344 [details]
Plugin Project mentioned in the desription
Created attachment 195345 [details]
Testcode which should be added to the runtime workspace
If I attach the test code in a source folder, I don't see any problem. Satyam, please follow up. Maybe our description was not clear, steph 5 should be: 5. drag and drop the test code from windows explorer to the java project in eclipse the message, saying that the binding is null should always appear if you do it like this (In reply to comment #5) > Maybe our description was not clear, steph 5 should be: > 5. drag and drop the test code from windows explorer to the java project in > eclipse > > the message, saying that the binding is null should always appear if you do it > like this Are you having the problem even if you drag and drop to a source folder of the java project? yes, i tested it with a source folder. can you try to delete the files from your project and then copy them again? then the message should appear. any news? can you reproduce the problem? (In reply to comment #8) > any news? can you reproduce the problem? Sorry for the delay. Yes, I am able to reproduce the problem when copying from the windows explorer. If used by importing the file system, it works good. This is a timing issues. Compiler gets the list of the secondary types from the search module and the indexing runs in another thread and if that isn't ready, we seem to end up in this problem. I will investigate further. AST creation doesn't wait for indexing to complete causing this problem. One way to fix is by waiting for the indexing to complete, which will cause considerable performance degradation. I will see if I can find a fix, but that looks to be hard :(. A workaround is to call a dummy search. (In reply to comment #10) > AST creation doesn't wait for indexing to complete causing this problem. One > way to fix is by waiting for the indexing to complete, which will cause > considerable performance degradation. I will see if I can find a fix, but that > looks to be hard :(. > > A workaround is to call a dummy search. or even wait for a while! thx for your effort, we will try the workaround 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. |