lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Eclipse autocomplete doesn't work for local classes, code works fine. #518

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Make a class like this:

public class test {
  public static void main (String[] args) {
    @Data
    class Foo {
      private String bar = "hi";
    }

    Foo foo = new Foo ();
    System.out.println (foo.toString ());
    System.out.println (foo.getBar ());
  }
}

2.
This compiles and runs as expected producing expected output but "foo.getBar()" 
wasn't available from the autocomplete dropdown.

What is the expected output? What do you see instead?
Expected to see getBar() as a possibility in the autocomplete dropdown

What version of the product are you using? On what operating system?
Lombok 0.11.8 on OSX, Eclipse 3.7 Juno

Please provide any additional information below.
It's no big deal obviously, just that a lot of people will assume if it's not 
in the dropdown it doesn't work.

Original issue reported on code.google.com by lev.v.ku...@gmail.com on 17 May 2013 at 5:56

GoogleCodeExporter commented 9 years ago
Forgot to add, same thing happens with @Getter @Setter

Original comment by lev.v.ku...@gmail.com on 17 May 2013 at 5:57