Bug 583002 - In Inheritance, To override both methods should be static or both should be non static
Summary: In Inheritance, To override both methods should be static or both should be n...
Status: NEW
Alias: None
Product: Incubator
Classification: Eclipse Project
Component: e4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: E4 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-06 10:28 EST by Vivek Bhuva CLA
Modified: 2024-03-06 10:28 EST (History)
0 users

See Also:


Attachments
Highlighted the static method in the screenshot, also compared with IntellIJ (325.46 KB, image/jpeg)
2024-03-06 10:28 EST, Vivek Bhuva CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek Bhuva CLA 2024-03-06 10:28:44 EST
Created attachment 289305 [details]
Highlighted the static method in the screenshot, also compared with IntellIJ

In Inheritance, to override both the methods should be static or both methods should be non-static.

But in Eclipse, if we declare one of the two methods as static then the program is executed. 

The same program when run on Intell IJ IDE then it is throwing an error message.