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 179032 - new ClassName() Code completion shows abstract class names.
Summary: new ClassName() Code completion shows abstract class names.
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-25 07:16 UTC by ati_ozgur
Modified: 2010-01-25 08:00 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 ati_ozgur 2009-12-25 07:16:17 UTC
I am using abstract base classes for generated code. I am inheriting from this generated code to write my custom code.

$dal = new Article

at this point net beans Code Completion shows both
ArticleDal
ArticleBaseDal

since ArticleBaseDal is abstract class. I can not instantiate it with new operator. Such a class can only be inherited. Php gives fatal error for this case.

( ! ) Fatal error: Cannot instantiate abstract class ArticleBaseDal in /Deneme.php on line 17

therefore code completion should filter out all abstract classes after new operator.
Comment 1 Quality Engineering 2010-01-06 00:41:53 UTC
Integrated into 'main-golden', will be available in build *201001060200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1ee49edd36ae
User: Radek Matous <rmatous@netbeans.org>
Log: #179032 -  new ClassName() Code completion shows abstract class names.
Comment 2 Filip Zamboj 2010-01-25 08:00:24 UTC
build from web-main, 2010-01-25
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

verified