Community
Participate
Working Groups
Using 200405060200 and trying to investigate bug 61097, I noticed that the name environment used by the java builder can contain more than once the same entry. This can have an impact on the performance of the Java builder. Steps to reproduce: 1) Start a self-hosting workspace 2) Import JDT/Core and the JDT/Core tests projects from CVS 3) Change the JDT/Core plugin.xml to reexport the required projects 4) Put a breakpoint in org.eclipse.jdt.internal.core.builder.NameEnvironment line 91. 5) Go to the one of the JDT/Core tests projects and add a space in its plugin.xml file. 6) The breakpoint will ne hit and you can inspect the classpathEntries variable. You can notice that it contains two occurences of org.eclipse.core.resources. One is exported and one is not exported. This should be filtered out. The java builder needs only one of them.
Fixed and released in HEAD. Regression test added in ClasspathTest (testRemoveDuplicates).
Verified for 3.0M9