1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00
cdt/core
Oleg Krasilnikov cd052ee5de [Bug 148003] [New Class Wizard] Browse for Folder can cause infinite loop
Problem reason: loop inside of NewClassWizardUtil.getSourceFolder().

After "path.removeLastSegments(1)" deletes the last segment, path
would contain "\", because (separators & HAS_LEADING) != 0)
So, "path.isEmpty()" treats it as root path and returns false.
That's why loop became infinite.

Fix:

-        while (!path.isEmpty()) {
+        while (path.segmentCount() > 0) {
2006-06-21 11:50:10 +00:00
..
org.eclipse.cdt.core Bug 142465 :Exception when expanding binary node in CView 2006-06-19 11:23:22 +00:00
org.eclipse.cdt.core.aix update copyrights 2006-06-14 12:16:17 +00:00
org.eclipse.cdt.core.linux Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.linux.ia64 Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.linux.ppc Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.linux.x86 Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.linux.x86_64 Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.macosx Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.qnx Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.solaris Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.core.tests update copyrights 2006-06-14 12:16:17 +00:00
org.eclipse.cdt.core.win32 Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.ui [Bug 148003] [New Class Wizard] Browse for Folder can cause infinite loop 2006-06-21 11:50:10 +00:00
org.eclipse.cdt.ui.tests update copyrights 2006-06-14 12:16:17 +00:00