[SIGAR-232] change ProcUtil.getJavaMainClass to check Character.isJavaIdentifierPart

This commit is contained in:
Doug MacEachern 2011-07-18 10:47:57 -07:00
parent 012dcef75d
commit d83284613b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class ProcUtil {
for (int i=0; i<len; i++) {
char c = name.charAt(i);
if (!((c == '.') || Character.isLetter(c))) {
if (!((c == '.') || Character.isJavaIdentifierPart(c))) {
return false;
}
}