Product Information > JADE Error Messages and System Messages > 6000 through 6999 - JADE Compiler Errors > 6153 - inheritMethod not valid in constructor or destructor

6153   inheritMethod not valid in constructor or destructor

Cause

This error occurs if you have coded an inheritMethod in a constructor or destructor method. You cannot code an inheritMethod in a constructor or destructor, because all inherited constructors and destructors are automatically invoked when an object is created or deleted.

When an object is created, the JADE Object Manager executes all inherited constructors, starting with the highest superclass implementation and continuing down to the current class. When an object is deleted, all inherited destructors, starting with the implementation in the current class (if present) and continuing up to the highest superclass implementation.

Action

Change your application code to remove the inheritMethod call.