8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails

The test should only analyze classfiles.

Reviewed-by: vromero
This commit is contained in:
Jan Lahoda 2014-04-23 11:28:09 +02:00
parent 3acf463dc4
commit 6b335c8d1a

View File

@ -41,7 +41,7 @@ public class SyntheticClasses {
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 =