Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Strange quick fix suggestion for method implementation

Former Member
0 Likes
723

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

2 REPLIES 2
Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
0 Likes
670

Hi Volker,

what is your ABAP backend release, support package level?

Regards,

Thomas.

Read only

Former Member
0 Likes
670

Hi Thomas,

sorry - I'm used to SAPnet messages where that information is transferred automatically. The backend is SAP_BASIS/SAP_ABA 731 SP 13; it will be patched next week, but I'm not entirely sure to which level.

Best regards

  Volker