Java: fix javac errors in test code

This commit is contained in:
yo-h
2021-02-09 09:16:57 -05:00
parent 8a2e063af7
commit e194411cfa
51 changed files with 149 additions and 142 deletions

View File

@@ -16,7 +16,7 @@ public class ReflectionTest {
public int shadowedField;
}
public static void main(String[] args) {
public static void main(String[] args) throws NoSuchFieldException {
// Ensure the two classes are live, otherwise we might hide some results
new ParentClass();
new ChildClass();