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 251565 - False positive: The method X will recurse infinitely
Summary: False positive: The method X will recurse infinitely
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-01 14:49 UTC by terje7601
Modified: 2015-05-14 03:07 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 terje7601 2015-04-01 14:49:08 UTC
The following class gives the false positive "The method main will recurse infinitely":


import java.util.function.IntUnaryOperator;

public class Issue {
	
	public static void main(String[] args) {
		new Issue(n -> { return 42; }).toString();
	}

	Issue(IntUnaryOperator function) {}
	
}


Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)
Comment 1 Svata Dedic 2015-05-07 09:33:34 UTC
Fixed in jet-main#2669d4b6f583
Comment 2 Quality Engineering 2015-05-14 03:07:17 UTC
Integrated into 'main-silver', will be available in build *201505140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2669d4b6f583
User: Svata Dedic <sdedic@netbeans.org>
Log: #251565: improved handling of lambdas