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 260774

Summary: Errors on anonymous class
Product: cnd Reporter: cezariusz <cezariusz>
Component: Code ModelAssignee: petrk
Status: RESOLVED FIXED    
Severity: normal CC: cezariusz
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:
Attachments: Errors in the editor
Sample project

Description cezariusz 2016-05-10 08:48:48 UTC
Product Version: NetBeans IDE Dev (Build 201604280002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 8.1 version 6.3 running on amd64; Cp1250; pl_PL (nb)

When I define an anonymous class I get errors in the editor. The code compiles and runs just fine.

Example:

int main(int argc, char** argv) {

    Engine engine;

    class : public LogCallback {

        virtual void sendLog(std::string log) {
            cerr << "err: " << log << endl;
        }
    } err;
    engine.setCallback(&err);
    engine.start();
    //

    return 0;
}
Comment 1 cezariusz 2016-05-10 08:50:09 UTC
Created attachment 159685 [details]
Errors in the editor
Comment 2 cezariusz 2016-05-10 08:51:01 UTC
Created attachment 159686 [details]
Sample project
Comment 3 petrk 2016-07-12 15:26:28 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/6eda1c7e03c1
Comment 4 Quality Engineering 2016-07-13 01:50:10 UTC
Integrated into 'main-silver', will be available in build *201607130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6eda1c7e03c1
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #260774 - Errors on anonymous class