[SIGAR-232] change ProcUtil.getJavaMainClass to check Character.isJavaIdentifierPart
This commit is contained in:
1 parent
012dcef75d
commit
d83284613b
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user