8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails
Summary: The test should only analyze classfiles.
Reviewed-by: vromero
--- 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 =