Expand director_nested_class test to test more than one level of nesting

This commit is contained in:
William S Fulton 2014-11-07 20:38:09 +00:00
commit 92d3146a06
2 changed files with 20 additions and 0 deletions

View file

@ -19,6 +19,12 @@ public class director_nested_class_runme {
if (DirectorOuter.callMethod(d, 999) != 9990) {
throw new RuntimeException("callMethod(999) failed");
}
director_nested_class_DerivedInnerInner dinner = new director_nested_class_DerivedInnerInner();
if (DirectorOuter.callInnerInnerMethod(dinner, 999) != 999000) {
throw new RuntimeException("callMethod(999) failed");
}
}
}
@ -28,3 +34,8 @@ class director_nested_class_Derived extends DirectorOuter.DirectorInner {
}
}
class director_nested_class_DerivedInnerInner extends DirectorOuter.DirectorInner.DirectorInnerInner {
public int innervmethod(int input) {
return input * 1000;
}
}