Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getter suggested for static var rather than field
Getter suggested for static var rather than field [message #467963] Mon, 03 August 2009 09:19 Go to next message
Eclipse UserFriend
Consider this class:

public class Dummy {

public static final String FIELD = "field";

private String field;


}

On 3.5, if i put my cursor below the field declaration and request content assist, I would expect to see getField() offered for the "field" member. But instead it offers getField() for FIELD. This seems wrong. I don't remember it behaving like this in 3.4. Is this expected or a bug?

Cheers
Ben
Re: Getter suggested for static var rather than field [message #468167 is a reply to message #467963] Tue, 04 August 2009 08:49 Go to previous message
Eclipse UserFriend
Ben Vitale wrote:
> Consider this class:
>
> public class Dummy {
>
> public static final String FIELD = "field";
>
> private String field;
>
>
> }
>
> On 3.5, if i put my cursor below the field declaration and request
> content assist, I would expect to see getField() offered for the
> "field" member. But instead it offers getField() for FIELD. This seems
> wrong. I don't remember it behaving like this in 3.4. Is this
> expected or a bug?
Looks like a bug to me. I've filed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285568.

Dani
>
> Cheers
> Ben
Previous Topic:Re: Auto complete package name field
Next Topic:How to add a listener to JUnitCore in Eclipse?
Goto Forum:
  


Current Time: Sun Sep 14 06:39:41 EDT 2025

Powered by FUDForum. Page generated in 0.03922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top