Informix Error -4023: A class cannot derive from itself.
Cause and resolution
A class cannot derive from itself.
This CLASS statement asserts that the class is DERIVED FROM itself. This action is not supported. Either remove the clause, or name another base class.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4023 fires when a CLASS statement declares a class as DERIVED FROM itself — per the
official guidance, this self-inheritance isn't supported.
- A class's
DERIVED FROMclause naming itself as the base class, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the
DERIVED FROMclause, or name another base class, per the official guidance.
Examples
A class deriving from itself
CLASS Order DERIVED FROM Order
...
END CLASS
Corrected
CLASS Order DERIVED FROM BaseRecord
...
END CLASS
Diagnostic Checks
- Check every
DERIVED FROMclause, and confirm the named base class isn't the class itself.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4023 in this set yet.
A class is declared DERIVED FROM itself — remove the clause or name a genuine base class.