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.
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; }
Created attachment 159685 [details] Errors in the editor
Created attachment 159686 [details] Sample project
Fixed in http://hg.netbeans.org/cnd-main/rev/6eda1c7e03c1
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