提交 0b6d20a5 编写于 作者: J jlahoda

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

Summary: The test should only analyze classfiles.
Reviewed-by: vromero
上级 ba7e11ca
......@@ -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 =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册