(String name, ClassLoader loader,
ResourceBundle parent)
| 48 | } |
| 49 | |
| 50 | private static ResourceBundle find(String name, ClassLoader loader, |
| 51 | ResourceBundle parent) |
| 52 | throws Exception |
| 53 | { |
| 54 | try { |
| 55 | Class c = Class.forName(name, true, loader); |
| 56 | if (c.isAssignableFrom(ResourceBundle.class)) { |
| 57 | return (ResourceBundle) c.getConstructor().newInstance(); |
| 58 | } |
| 59 | } catch (ClassNotFoundException ok) { |
| 60 | } catch (NoSuchMethodException ok) { } |
| 61 | |
| 62 | return findProperties(name, loader, parent); |
| 63 | } |
| 64 | |
| 65 | public static ResourceBundle getBundle(String name, Locale locale, |
| 66 | ClassLoader loader) |
no test coverage detected