diff -r 6068d5e6c746 -r e868cde95050 jdk/src/share/classes/java/lang/Package.java --- a/jdk/src/share/classes/java/lang/Package.java Mon Jan 27 17:13:16 2014 +0400 +++ b/jdk/src/share/classes/java/lang/Package.java Mon Jan 27 14:29:37 2014 +0100 @@ -557,8 +557,8 @@ // First, update the system package map with new package names String[] names = getSystemPackages0(); synchronized (pkgs) { - for (int i = 0; i < names.length; i++) { - defineSystemPackage(names[i], getSystemPackage0(names[i])); + for (String name : names) { + defineSystemPackage(name, getSystemPackage0(name)); } return pkgs.values().toArray(new Package[pkgs.size()]); }