8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails
The test should only analyze classfiles. Reviewed-by: vromero
This commit is contained in:
parent
3acf463dc4
commit
6b335c8d1a
@ -41,7 +41,7 @@ public class SyntheticClasses {
|
|||||||
|
|
||||||
private void run() throws IOException, ConstantPoolException {
|
private void run() throws IOException, ConstantPoolException {
|
||||||
File testClasses = new File(System.getProperty("test.classes"));
|
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);
|
ClassFile cf = ClassFile.read(classFile);
|
||||||
if (cf.getName().matches(".*\\$[0-9]+")) {
|
if (cf.getName().matches(".*\\$[0-9]+")) {
|
||||||
EnclosingMethod_attribute encl =
|
EnclosingMethod_attribute encl =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user