# HG changeset patch # User jlahoda # Date 1398245289 -7200 # Node ID e6d5236551d23ba623c84d8c436e03bbe50f0ec6 # Parent e7549dcbc4af72d1b5c225b2239f1028155a5eac 8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails Summary: The test should only analyze classfiles. Reviewed-by: vromero diff -r e7549dcbc4af -r e6d5236551d2 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 =