--- a/jdk/src/java.base/share/classes/java/util/jar/JarFile.java Tue Jun 30 17:48:06 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/jar/JarFile.java Tue Jun 09 07:10:02 2015 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015, 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
@@ -265,6 +265,10 @@
public JarEntry nextElement() {
return next();
}
+
+ public Iterator<JarEntry> asIterator() {
+ return this;
+ }
}
/**