equal
deleted
inserted
replaced
18 * limitations under the License. |
18 * limitations under the License. |
19 */ |
19 */ |
20 |
20 |
21 package com.sun.org.apache.xerces.internal.impl.xpath.regex; |
21 package com.sun.org.apache.xerces.internal.impl.xpath.regex; |
22 |
22 |
|
23 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; |
23 import java.util.Locale; |
24 import java.util.Locale; |
24 import java.util.MissingResourceException; |
25 import java.util.MissingResourceException; |
25 import java.util.ResourceBundle; |
26 import java.util.ResourceBundle; |
26 import java.util.Vector; |
27 import java.util.Vector; |
27 |
28 |
93 } |
94 } |
94 |
95 |
95 public void setLocale(Locale locale) { |
96 public void setLocale(Locale locale) { |
96 try { |
97 try { |
97 if (locale != null) { |
98 if (locale != null) { |
98 this.resources = ResourceBundle.getBundle("com.sun.org.apache.xerces.internal.impl.xpath.regex.message", locale); |
99 this.resources = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.xpath.regex.message", locale); |
99 } |
100 } |
100 else { |
101 else { |
101 this.resources = ResourceBundle.getBundle("com.sun.org.apache.xerces.internal.impl.xpath.regex.message"); |
102 this.resources = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.xpath.regex.message"); |
102 } |
103 } |
103 } |
104 } |
104 catch (MissingResourceException mre) { |
105 catch (MissingResourceException mre) { |
105 throw new RuntimeException("Installation Problem??? Couldn't load messages: " |
106 throw new RuntimeException("Installation Problem??? Couldn't load messages: " |
106 + mre.getMessage()); |
107 + mre.getMessage()); |