Bug 364230 - [compiler][1.7] Diamond inference works in expression without assignation
Summary: [compiler][1.7] Diamond inference works in expression without assignation
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: 3.8 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-19 17:42 EST by Rémi Forax CLA
Modified: 2011-12-04 20:51 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi Forax CLA 2011-11-19 17:42:07 EST
Build Identifier: I20111027-1800

This code currently compiles but should not.
  new ArrayList<>();



Reproducible: Always

Steps to Reproduce:
1. write the expression in the main of a class.
Comment 1 Rémi Forax CLA 2011-11-19 17:52:43 EST
Sorry for the noise, it's not a bug.
Comment 2 Jay Arthanareeswaran CLA 2011-12-04 20:51:58 EST
Verified for 3.8 M4.