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 - Errors on anonymous class
Summary: Errors on anonymous class
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 08:48 UTC by cezariusz
Modified: 2016-07-13 01:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Errors in the editor (8.51 KB, image/png)
2016-05-10 08:50 UTC, cezariusz
Details
Sample project (10.09 KB, application/octet-stream)
2016-05-10 08:51 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
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