Hi all,
I'm trying to follow the example from the REST How-to. When implementing the resource application class (chapter 2.3.2), I've noticed something I do not understand. I've created a new class (using AiE of course), set the base class and then used the quick fix to generate the missing methods. The quick fix then generated method implementations for REGISTER_RESOURCES and GET_APPLICATION_TITLE -- which are both abstract methods of the superclass CL_ADT_DISC_RES_APP_BASE, so this is not surprising. In addition to that, a redefinition of IF_REST_APPLICATION~GET_ROOT_HANDLER was generated, and I don't understand why. This method is implemented by CL_ADT_RES_APP_BASE, so there's no obvious reason to generate a redefinition. I figured that maybe some glitch occurred and deleted the method. I then added the redefinition for IF_ADT_REST_RFC_APPLICATION~GET_STATIC_URI_PATH and opened the quick fix to create the method body. I was surprised by this suggestion:
Pressing Ctrl+1 while focused on the class header yields a similar result:
The warning that causes the yellow underline of the method looks strange as well:
It shows GET_STATIC_URI_PATH twice, but the quick fix still suggests GET_ROOT_HANDLER. Did I trigger some kind of bug there?
Thanks
Volker