fidley / falv

FALV - Fast ALV Grid
https://abapblog.com
GNU General Public License v3.0
141 stars 52 forks source link

Endless loop while redefining "display" #47

Closed xczar0 closed 6 years ago

xczar0 commented 6 years ago

When you redefine "Display" method and inside of this method access "super->Display" FALV will jump into "endless loop execution". Example below:

CLASS ZCL_TEST_FALV definition
  public
  inheriting from ZCL_FALV
  final.

public section.
 methods: DISPLAY redefinition.
ENDCLASS.

"Implementation:
 CLASS ZCL_TEST_FALV IMPLEMENTATION.

 METHOD DISPLAY.

    raise event event_handler_set.
    super->DISPLAY( ).

  ENDMETHOD.
ENDCLASS.
fidley commented 6 years ago

Display method calls itself recoursively, that's why it should be final. I will change the method definition.

fidley commented 6 years ago

display method set as final.