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 254526 - "Overridable method call in constructor" hint complains about lambda body
Summary: "Overridable method call in constructor" hint complains about lambda body
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 248744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-19 23:36 UTC by _ gtzabari
Modified: 2015-09-15 14: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 _ gtzabari 2015-08-19 23:36:55 UTC
Product Version: NetBeans IDE Dev (Build 201508140002)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

Given a constructor that declares (but does not invoke) a lambda, and that lambda invokes overridable methods, Netbeans flags the method invocations inside the lambda with a "Overridable method call in constructor" hint.

Expected behavior: no warning.
Comment 1 Jiri Prox 2015-08-24 12:59:15 UTC
reproducible
Comment 2 Svata Dedic 2015-09-01 09:16:31 UTC
Should be fixed in jet-main#f93f87c066d3
Comment 3 Quality Engineering 2015-09-02 05:17:04 UTC
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f93f87c066d3
User: Svata Dedic <sdedic@netbeans.org>
Log: #254526: owner search stops at lambda/initializer block. Unified searches in code
Comment 4 Svata Dedic 2015-09-15 14:40:29 UTC
*** Bug 248744 has been marked as a duplicate of this bug. ***