Community
Participate
Working Groups
Create a new class using the New Class wizard, and, in the wizard, enter the name of the super class. There is a *painful* pause for every keypress. The problem is that findType is being called 3 times for every key press. The second call (NewTypeWizardPage 1300) against java.lang is expensive, and the third call (NTWP 1305) is *super* expensive (against my project, which has ~6000 types). I'm sorry, but I can't go any deeper since I really don't know the Eclipse source code. :-)
Martin, can you please comment.
I realize that 'findType' is not the cheapest method, but so far we never had a complaint, nor have I experienced what you describe. I have over 14000 types in my project. I also thought that jdt.core has a type cache for the project. Is this always like that? Can you check the log for other problems? Moving to jdt.core to comments. We do 3 'find types' to find the (unqualified) name in the current package, the java.lang package, or as fully qualified name.
It was happening on Friday, but now it does happen. I tried restarting Eclipse (it had been on all weekend) but that didn't help. I cannot see anything in the log file.
Sorry, it was *not* happening on Friday.
Can you reproduce with latest? If not, we will close as WORKSFORME.
Closing as not reproduced recently. Please reopen if you still see a problem and have steps to reproduce.