Fix java testcase for jdk-1.9
Package.getName() returns an empty string instead of null in jdk-1.9 exposing bug in use of replaceAll whose 1st arg is a regex expression.
This commit is contained in:
parent
6db5556456
commit
cc15fcebd0
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ public class director_classes_runme {
|
|||
Package packag = klass.getPackage();
|
||||
String simpleName = null;
|
||||
if (packag != null)
|
||||
simpleName = fullName.replaceAll(packag.getName() + ".", "");
|
||||
simpleName = fullName.replaceAll(packag.getName() + "\\.", "");
|
||||
else
|
||||
simpleName = fullName;
|
||||
return simpleName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue