Bug 373711

Summary: [quick fix] Quick fix for field access from static method should also offer to pass field as parameter
Product: [Eclipse Project] JDT Reporter: Glenview Jeff <junk>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: amj87.iitr, manju656
Version: 3.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Glenview Jeff CLA 2012-03-08 17:10:04 EST
Build Identifier: 20110916-0149

When accessing a non-static field from a static class, Eclipse correctly issues the "Cannot make a static reference to the non-static field" error.

The only quick fix offered is to change the field to static.  It should also offer to add the field type as a parameter to the static method.


Reproducible: Always
Comment 1 Ayushman Jain CLA 2012-03-08 23:57:54 EST
Moving to JDT/UI