[cp-patches] Patch: FYI: PR 27966

Tom Tromey tromey at redhat.com
Fri Jun 9 16:36:46 UTC 2006


I'm checking this in.

This is just the patch from PR 27966.

Tom

2006-06-09  Kazuya Ujihara  <ujihara at aurora.dti.ne.jp>

	PR classpath/27966:
	* gnu/javax/security/auth/login/ConfigFileParser.java
	(validateClassName): Quote '.' in regexp.

Index: gnu/javax/security/auth/login/ConfigFileParser.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/javax/security/auth/login/ConfigFileParser.java,v
retrieving revision 1.1
diff -u -r1.1 ConfigFileParser.java
--- gnu/javax/security/auth/login/ConfigFileParser.java	15 Jan 2006 19:42:53 -0000	1.1
+++ gnu/javax/security/auth/login/ConfigFileParser.java	9 Jun 2006 16:38:48 -0000
@@ -264,7 +264,7 @@
     if (cn.startsWith(".") || cn.endsWith("."))
       abort("MODULE_CLASS MUST NOT start or end with a '.'");
 
-    String[] tokens = cn.split(".");
+    String[] tokens = cn.split("\\.");
     for (int i = 0; i < tokens.length; i++)
       {
         String t = tokens[i];



More information about the Classpath-patches mailing list