mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
![]() 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) { |
||
---|---|---|
.. | ||
org.eclipse.cdt.core | ||
org.eclipse.cdt.core.aix | ||
org.eclipse.cdt.core.linux | ||
org.eclipse.cdt.core.linux.ia64 | ||
org.eclipse.cdt.core.linux.ppc | ||
org.eclipse.cdt.core.linux.x86 | ||
org.eclipse.cdt.core.linux.x86_64 | ||
org.eclipse.cdt.core.macosx | ||
org.eclipse.cdt.core.qnx | ||
org.eclipse.cdt.core.solaris | ||
org.eclipse.cdt.core.tests | ||
org.eclipse.cdt.core.win32 | ||
org.eclipse.cdt.ui | ||
org.eclipse.cdt.ui.tests |