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 258927 - [Java8] Invalid type inference in
Summary: [Java8] Invalid type inference in
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
Keywords: JDK_8
Depends on:
Reported: 2016-04-20 23:47 UTC by Baldurien
Modified: 2016-04-20 23:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Sample maven project (1.18 KB, application/x-7z-compressed)
2016-04-20 23:47 UTC, Baldurien

Note You need to log in before you can comment on or make changes to this bug.
Description Baldurien 2016-04-20 23:47:52 UTC
Created attachment 159348 [details]
Sample maven project


I have several differences in the type inference between Eclipse Mars, Java (1.8.0_92 + maven 3.3.9) and Netbeans (see below for the "About Netbeans"):

The type inference fails in different part (see sample project):

incompatible types: inferred type does not conform to upper bound(s)
    inferred: List<? extends Object>
    upper bound(s): List<String>,Object

As a result, I can not profile my application (my purpose in using Netbeans) because of too many inference-type compile errors.

Product Version: NetBeans IDE 8.1 (Build 201511021428)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)