Bug 373711 - [quick fix] Quick fix for field access from static method should also offer to pass field as parameter
Summary: [quick fix] Quick fix for field access from static method should also offer t...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 17:10 EST by Glenview Jeff CLA
Modified: 2013-06-26 05:44 EDT (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 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