cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of Redefined Method

michael_habermueller
Participant
0 Kudos

Hello,

in se80 I work on class which has a super class.

I redefined a method of this class.

Later on I deleted the redefined method.

When activiating, the compiler throws an error that the method is already implemented.

When navigating to the error it shows the method stub, which is supposed to be deleted. In addition, the method is not shown in the tree view. When navigating to the method definition it shows the definition of the super class.

Can you tell me how I get rid of this method.

Best regards

Michael

Accepted Solutions (1)

Accepted Solutions (1)

meikandan_krishnan2
Participant
0 Kudos

Hi ,

In the class , where u have deleted that method , create a new method with the same name and signature.Go to super class and copy the codes and paste it in your new method.

Then you try to activate the class.

Note : If you redefine a method , again u can redo your redefenition . Dont need to delete that method.

Revert for further clarifications.

Regards

Meikandan.

michael_habermueller
Participant
0 Kudos

Hi ,

thank you for your answer, but I think it does not solve the problem.

The situation is.

class child has super class parent.

In class child I redefined method foo.

Then I delete the redefined method foo in class child.

Result: The class is deleted in the class definition.

The compiler throws an error "Class already" defined and shows the implementation of child->foo.

A new definition as u suggested is not possible, se80 states, that method is already defined. Only a new redefiniton of the method is possible.

What I hav done now is.

1. delete the defintion of the redefined method

2. Comment or delete the implementation of method

Result: The class can be activated.

But I am not sure that this this the correct way, but it temporarily solves my problem.

Best regards

Michael

Former Member
0 Kudos

> 1. delete the defintion of the redefined method

> 2. Comment or delete the implementation of method

you should rather user the "undo redefinition" button, which is right next to the "Redefine" button.

michael_habermueller
Participant
0 Kudos

Hi,

ok, the button is contained in the class definition screen.

With this the method is deleted as expected.

Thank you very much

Best regards

Michael

Answers (0)