This demostrate after the children class calling super.method(), the remaining code of the children method will be skipped.
When calling (new NonCPSGrandchild()).test()
:
Expected to see:
NonCPSBase construction NonCPSChild construction NonCPSGrandchild construction NonCPSGrandchild.test() started NonCPSChild.test() started NonCPSBase.test() NonCPSChild.test() done NonCPSGrandchild.test() done
Actual we get:
NonCPSBase construction NonCPSChild construction NonCPSGrandchild construction NonCPSGrandchild.test() started NonCPSChild.test() started NonCPSBase.test()
Constructor and description |
---|
NonCPSGrandchild
(java.lang.Object steps) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
test() |
Methods inherited from class | Name |
---|---|
class NonCPSChild |
test |
class NonCPSBase |
test |