This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239212 - Inherited abstract methods are not accessible and could not be implemented
Summary: Inherited abstract methods are not accessible and could not be implemented
Status: VERIFIED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-12-06 21:19 UTC by Jesse Glick
Modified: 2016-11-08 18:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2013-12-06 21:19:22 UTC
Product Version = NetBeans IDE Dev (Build 20131206-3422eed6fdbf)
Operating System = Linux version 3.8.0-34-generic running on i386
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08

Started seeing this error recently in dev builds after declaring a class to extend an abstract supertype. The usual hint to implement the abstract methods (which are all protected, certainly accessible) is not shown, only this error.

After some time passes, or I click around enough, or something (?), the expected hint to implement the abstract methods does eventually appear, and works when accepted.

Workaround: Alt-INSERT, Implement Method, click top (class name) checkbox, accept dialog.
Comment 1 Svata Dedic 2013-12-11 11:48:24 UTC
Should be fixed by jet-main#136ccd35b861
Comment 2 mounyainbeast 2014-06-15 10:47:10 UTC
This is NOT fixed yet. 

Using

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)
User directory:  .......AppData\Roaming\NetBeans\8.0
Comment 3 Svata Dedic 2014-08-05 20:09:10 UTC
Works for me - at least on a simple case. Please post code fragments, which produce the error on your site; thanks.
Comment 4 andrewpcone 2016-11-08 18:59:46 UTC
I had this issue.

The subclass was in the wrong package. When I moved it to the same package as its parent class, the bug went away, and I was able to implement the abstract methods normally.

It is still a bug, as the error message is misleading and likely to waste the user's time and mental energy. Any fixes would be much appreciated. I hope this helps.