b1412 / jfinal-ext

Our extensions for jfinal
277 stars 236 forks source link

com.jfinal.ext.kit.ClassSearcher 中报正则表达式错误 #21

Open Ltaimao opened 9 years ago

Ltaimao commented 9 years ago

具体文件路径为:com.jfinal.ext.kit.ClassSearcher 中的第87行。 String className = fileName.substring(start + open.length(), end).trim().replaceAll(File.separator, ".");

报错如下: 严重: Exception starting filter jfinal java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^ 处理方法是将改行的replaceAll 改为replace 。 运行环境为windows 7 ,jdk 为1.7

yuandi0823 commented 9 years ago

AutoTableBindPlugin加载时ClassSearcher中的87行,处理replaceAll替换时错误