Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] fix for validation bug

This patch fixes a bug in CConventions.validateClassName() where the scope resolution operator :: is parsed incorrectly.

-Chris

Index: src/org/eclipse/cdt/core/CConventions.java
===================================================================
retrieving revision 1.3
diff -u -r1.3 CConventions.java
--- src/org/eclipse/cdt/core/CConventions.java	1 Mar 2004 22:16:48 -0000	1.3
+++ src/org/eclipse/cdt/core/CConventions.java	9 Mar 2004 21:21:26 -0000
@@ -95,7 +95,7 @@
 			if (!status.isOK()) {
 				return status;
 			}
-			String type = name.substring(index + 1).trim();
+			String type = name.substring(index + scopeResolutionOperator.length()).trim();
 			scannedID = type.toCharArray();
 		}
 	

Back to the top