Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355439

Summary: [recovery][quick fix] Suggest variable/field assignment fix for unassigned array constructions
Product: [Eclipse Project] JDT Reporter: Remy Suen <remy.suen>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, daniel_megert, deepakazad, markus.kell.r, raksha.vasisht
Version: 3.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Remy Suen CLA 2011-08-22 16:31:48 EDT
I20110809-0800

public class Test {
  public Test(int nodesCount){
    new int[nodesCount];
  }
}

I should get a suggestion for creating a new local variable or a field in this class.
Comment 1 Deepak Azad CLA 2011-10-31 05:59:35 EDT
Problem is that there is a parser error and there is no recovered statement in the AST for the array creation. 

This is what I see in ASTView for the method body of Test.
Block [50, 75] (recovered)
   STATEMENTS (0)

Moving to JDT/Core.
Comment 2 Ayushman Jain CLA 2011-10-31 06:15:32 EDT
Will see what can be done, time permitting.
Comment 3 Eclipse Genie CLA 2019-08-31 08:34:53 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.