Informix Error -4498
-4498 Event/Handler name must be different from intrinsic member function
name.You cannot declare an event or a handler with the same name as an intrinsic member function (!copy(), !derive(), or the name of the class). Change the name of the event or handler.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4498 fires when an event or handler is declared with the same name as an intrinsic member
function — per the official guidance, this includes !copy(), !derive(), or the class's own
name (its constructor).
- An event or handler declared with the same name as
!copy(),!derive(), or the class's constructor, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change the name of the event or handler, per the official guidance.
Examples
An event named after the class constructor
CLASS Order
EVENT Order
-- -4498: "Order" collides with the class's own constructor name
END CLASS
Corrected
CLASS Order
EVENT statusChanged
END CLASS
Diagnostic Checks
- Check every event/handler name against the class's intrinsic member function names
(
!copy(),!derive(), the constructor), and rename any that collide.
Related Errors / Related Topics
- -4013 — "Invalid intrinsic member function "!name"." A related intrinsic
member-function naming rule, about invalid
!-prefixed function names rather than events/handlers colliding with intrinsic names. - -4021 — "A class member cannot be named "SELF"." A related member-naming restriction,
about the reserved
SELFidentifier rather than intrinsic function names.
An event/handler is named the same as an intrinsic member function — rename it.