< prev index next >
make/jdk/src/classes/build/tools/generatebreakiteratordata/GenerateBreakIteratorData.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -85,16 +85,16 @@
private static void generateFiles() throws Exception {
String[] classNames;
ResourceBundle rules, info;
info = (ResourceBundle) Class.forName(
- localizedBundleName("sun.text.resources", "BreakIteratorInfo")).newInstance();
+ localizedBundleName("sun.text.resources", "BreakIteratorInfo")).getDeclaredConstructor().newInstance();
classNames = info.getStringArray("BreakIteratorClasses");
rules = (ResourceBundle) Class.forName(
- localizedBundleName("sun.text.resources", "BreakIteratorRules")).newInstance();
+ localizedBundleName("sun.text.resources", "BreakIteratorRules")).getDeclaredConstructor().newInstance();
if (info.containsKey("CharacterData")) {
generateDataFile(info.getString("CharacterData"),
rules.getString("CharacterBreakRules"),
classNames[0]);
< prev index next >