[SIGAR-232] change ProcUtil.getJavaMainClass to check Character.isJavaIdentifierPart
This commit is contained in:
parent
012dcef75d
commit
d83284613b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue