1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00
Find a file
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
build Fix for bugs 140854 and 147296 2006-06-16 10:00:46 +00:00
core [Bug 148003] [New Class Wizard] Browse for Folder can cause infinite loop 2006-06-21 11:50:10 +00:00
debug Added missing copyright notices. 2006-06-15 15:36:43 +00:00
doc Added docs describing how to import and debug existing executables. 2006-06-15 15:36:23 +00:00
launch/org.eclipse.cdt.launch Updated the about.html files. 2006-05-24 13:51:50 +00:00
releng update copyrights 2006-06-14 12:16:17 +00:00