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 134377 - Editor Should Check And Warn For Unimplemented Methods In Classes.
Summary: Editor Should Check And Warn For Unimplemented Methods In Classes.
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks: 150234
  Show dependency tree
 
Reported: 2008-05-02 08:40 UTC by udevril
Modified: 2009-05-09 11:28 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description udevril 2008-05-02 08:40:31 UTC
PHP Code editor should check for unimplemented methods in classes that extends a abstract class or implements interfaces.

    interface ICommand
    {
        function execute();
    }

    class SomeCommand implements ICommand
    {

    }

I want to see the warning when i run the file with php interpreter.

(Fatal error: Class SomeCommand contains 1 abstract method and must therefore be declared abstract or implement the
remaining methods (ICommand::execute) in SomeCommand.php on line 3)

abstract class AbstractClass
{
    abstract function abstractMethod();
}

class ConcreteClass extends AbstractClass
{

}

Code Editor also should warn about not-overrided abstract methods when extending from abstract class

(Fatal error: Class ConcreteClass contains 1 abstract method and must therefore be declared abstract or implement the
remaining methods (AbstractClass::abstractMethod) in ConcreteClass.php on line 1)
Comment 1 polan 2008-08-13 10:20:52 UTC
Hint would be nice in this case.