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 246700

Summary: regression: incorrect erros in template based code
Product: java Reporter: Vladimir Voskresensky <vv159170>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: hw_mm
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Voskresensky 2014-08-26 11:21:02 UTC
recent build has the following regression:

  class pair<First, Second> {
    
  }
  
  class MapImpl<KeyT, ValueT> {
    pair<KeyT, ValueT> Buckets[];

    public MapImpl() {
      Buckets = ((pair<KeyT, ValueT>[])null); // Error here
    }    
  }

Error messages are:
lambda expression not expected here

')' expected

')' expected

not a statement

illegal start of expression
Comment 1 Vladimir Voskresensky 2014-08-26 11:21:43 UTC
Product Version: NetBeans IDE Dev (Build 20140826-6b25e1f88edf)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
Comment 2 Vladimir Voskresensky 2014-08-26 11:23:15 UTC
used source level is Java 1.7
Comment 4 Quality Engineering 2014-08-28 02:39:41 UTC
Integrated into 'main-silver', will be available in build *201408280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/24ba456e0bab
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #246700: regression: incorrect erros in template based code - fixed.
Comment 5 Dusan Balek 2014-08-29 09:38:29 UTC
*** Bug 246727 has been marked as a duplicate of this bug. ***