You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error executing rule 'Remove needless CLEAR': Failed referential integrity test on command starting at source line 13!
It's a bit of a pathological example, so I must say that this occurred in a class that I didn't write and I'd never code in this way! I've managed to create a small example to demonstrate the issue.
`REPORT.
class lcl_main DEFINITION.
PUBLIC SECTION.
methods this_fails.
endclass.
CLASS lcl_main IMPLEMENTATION.
METHOD this_fails.
DATA: lo_ctrl TYPE REF TO lcl_main.
CREATE OBJECT lo_ctrl.
FREE: lo_ctrl. CLEAR: lo_ctrl. " <---- Line 13
ENDMETHOD.
ENDCLASS.`
The text was updated successfully, but these errors were encountered:
this bug will be fixed with the next release. Since the comment cannot be inserted on the same line between the two statements, the statements are moved to an own line:
Kind regards,
Jörg-Michael
jmgrassau
added a commit
to jmgrassau/abap-cleaner
that referenced
this issue
Jun 24, 2024
Error executing rule 'Remove needless CLEAR': Failed referential integrity test on command starting at source line 13!
It's a bit of a pathological example, so I must say that this occurred in a class that I didn't write and I'd never code in this way! I've managed to create a small example to demonstrate the issue.
`REPORT.
class lcl_main DEFINITION.
PUBLIC SECTION.
methods this_fails.
endclass.
CLASS lcl_main IMPLEMENTATION.
METHOD this_fails.
DATA: lo_ctrl TYPE REF TO lcl_main.
CREATE OBJECT lo_ctrl.
FREE: lo_ctrl. CLEAR: lo_ctrl. " <---- Line 13
ENDMETHOD.
ENDCLASS.`
The text was updated successfully, but these errors were encountered: