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 252147 - Code annotation marks non-virtual methods with same name but different signature as overloaded
Summary: Code annotation marks non-virtual methods with same name but different signat...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 19:47 UTC by tbrunhoff
Modified: 2015-05-19 02:40 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 tbrunhoff 2015-04-28 19:47:29 UTC
Given a base class B and a derived class D if there is a method B.func(int) and a method D.func(float), NB parser thinks that D.func() overloads B.func() even though they have different signatures. Also, it marks them with "Superior class Allocator has method with the same signature..."

The compiler has no trouble with distinguishing these two.

The original code that took me here looks like this:

    class Allocator : public Owner {
    ...
    private:
        void add(RefAlloc&);
    };

    class Allocators : public Allocator {
    public:
    ...
        void add(Allocator& allocator);
    };


Product Version: NetBeans IDE Dev (Build 201503250001)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.14.27-100.fc19.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 2 Quality Engineering 2015-05-19 02:40:56 UTC
Integrated into 'main-silver', will be available in build *201505190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0078a85ab121
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #252147 - Code annotation marks non-virtual methods with same name but different signature as overloaded