8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails
authorjlahoda
Wed, 23 Apr 2014 11:28:09 +0200
changeset 24073 e6d5236551d2
parent 24072 e7549dcbc4af
child 24074 7a609dde1d05
8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails Summary: The test should only analyze classfiles. Reviewed-by: vromero
langtools/test/tools/javac/classfiles/InnerClasses/SyntheticClasses.java
--- a/langtools/test/tools/javac/classfiles/InnerClasses/SyntheticClasses.java	Tue Apr 22 17:57:40 2014 -0700
+++ b/langtools/test/tools/javac/classfiles/InnerClasses/SyntheticClasses.java	Wed Apr 23 11:28:09 2014 +0200
@@ -41,7 +41,7 @@
 
     private void run() throws IOException, ConstantPoolException {
         File testClasses = new File(System.getProperty("test.classes"));
-        for (File classFile : testClasses.listFiles()) {
+        for (File classFile : testClasses.listFiles(f -> f.getName().endsWith(".class"))) {
             ClassFile cf = ClassFile.read(classFile);
             if (cf.getName().matches(".*\\$[0-9]+")) {
                 EnclosingMethod_attribute encl =