Application Development 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: 

Eclipse ADT quick fix redefines CONSTRUCTOR

matt
Active Contributor
0 Kudos

I've got a class that's in a subclass of a subclass. The constructor the upper most super class has no parameters, but can raise an exception.

In the implementation section of my class, I type.

METHOD constructor.
ENDMETHOD.

I then put the cursor on the word constructor, press ctrl-1, and choose create definition of constructor.

In the public section of the class I get:

METHODS constructor REDEFINITION.

Backend: 750/0013, Eclipse: Version: 2020-03 (4.15.0), ADT Core Development Tools 3.8.5

Can anyone replicate this? Paging: armin.beil.2

1 ACCEPTED SOLUTION

michael_gutfleisch
Active Participant

And correct would be

METHODS constructor.

as constructors cannot be redefined , right?

It looks like this has already been fixed in higher releases. I will double check with a colleague an tell you the fix release.

Regards,
Michael

4 REPLIES 4

BiberM
Active Participant

I can confirm this behavior having exactly the same configuration.

Armin_Beil
Product and Topic Expert
Product and Topic Expert

I have no expertise regarding quick assists and I cannot help here, but the relevant colleagues are aware of this thread.

michael_gutfleisch
Active Participant

And correct would be

METHODS constructor.

as constructors cannot be redefined , right?

It looks like this has already been fixed in higher releases. I will double check with a colleague an tell you the fix release.

Regards,
Michael

0 Kudos

I guess this part of the backend then? Will a note for lower releases be issued? Although it really is very minor!