Commit 95472d09 by chengzhuoshen

Constans 静态块代码不抛出异常

parent acf03f72
...@@ -22,16 +22,11 @@ public class Constants { ...@@ -22,16 +22,11 @@ public class Constants {
try { try {
packageInfo.load(ResourceUtils.getURL("classpath:package-info.properties").openStream()); packageInfo.load(ResourceUtils.getURL("classpath:package-info.properties").openStream());
String busipack = packageInfo.getProperty(GLOBAL_PACK_KEY,""); String busipack = packageInfo.getProperty(GLOBAL_PACK_KEY,"");
try{ Dynamic_class = Class.forName(busipack+".Dynamic");
Dynamic_class = Class.forName(busipack+".Dynamic");
}catch (Exception e){
}
Platform_class = Class.forName(busipack+".Platform"); Platform_class = Class.forName(busipack+".Platform");
EMPDATE = new SimpleDateFormat("yyyyMMdd").parse("19900806"); EMPDATE = new SimpleDateFormat("yyyyMMdd").parse("19900806");
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(System.err);
System.exit(-1);
} }
} }
public static final int NO_SUCH_FIELD = 27; public static final int NO_SUCH_FIELD = 27;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment