From: Julio G. <ju...@us...> - 2005-08-11 01:17:02
|
Update of /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/sfcore/componentdescription In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8777/org/smartfrog/sfcore/componentdescription Modified Files: ComponentDescriptionImpl.java Log Message: addSystemProperties method reviewed. Index: ComponentDescriptionImpl.java =================================================================== RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/sfcore/componentdescription/ComponentDescriptionImpl.java,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** ComponentDescriptionImpl.java 11 Aug 2005 01:04:33 -0000 1.45 --- ComponentDescriptionImpl.java 11 Aug 2005 01:16:54 -0000 1.46 *************** *** 797,802 **** ComponentDescription compDesc, String language) { SFParser parser = null; try { ! Properties props = System.getProperties(); parser = new SFParser(language); for (Enumeration e = props.keys(); e.hasMoreElements(); ) { --- 797,809 ---- ComponentDescription compDesc, String language) { SFParser parser = null; + Properties props = null; try { ! try { ! props = System.getProperties(); ! } catch (SecurityException e) { ! throw SmartFrogException.forward( ! "Access to System.getProperties() blocked " + ! "by a security manager", e); ! } parser = new SFParser(language); for (Enumeration e = props.keys(); e.hasMoreElements(); ) { *************** *** 830,834 **** } } ! } catch (SmartFrogException ex2) { if (sfLog != null) { if (sfLog.isErrorEnabled()) { --- 837,842 ---- } } ! // } catch (SmartFrogException ex2) { ! } catch (Exception ex2) { if (sfLog != null) { if (sfLog.isErrorEnabled()) { |