New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Getter private final Set<Foo.Bar> something; causes Organize Imports error #666

Closed
lombokissues opened this Issue Jul 14, 2015 · 7 comments

Comments

Projects
None yet
1 participant
@lombokissues
Collaborator

lombokissues commented Jul 14, 2015

Migrated from Google Code (issue 631)

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 shackman0   🕗 Jan 28, 2014 at 10:48 UTC

What steps will reproduce the problem?

  1. add @ Getter private final Set<Foo.Bar> something; to your java classs
  2. ctrl-shift-o causes an error popup to appear (see attached)

What is the expected output? What do you see instead?
ctrl-shift-o should not error

What version of the product are you using? On what operating system?
win 7, eclipse kepler sr1, lombok 0.12.0

Please provide any additional information below.
f.shackelford@ topdesk.com

Collaborator

lombokissues commented Jul 14, 2015

👤 shackman0   🕗 Jan 28, 2014 at 10:48 UTC

What steps will reproduce the problem?

  1. add @ Getter private final Set<Foo.Bar> something; to your java classs
  2. ctrl-shift-o causes an error popup to appear (see attached)

What is the expected output? What do you see instead?
ctrl-shift-o should not error

What version of the product are you using? On what operating system?
win 7, eclipse kepler sr1, lombok 0.12.0

Please provide any additional information below.
f.shackelford@ topdesk.com

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 shackman0   🕗 Jan 28, 2014 at 10:48 UTC

Collaborator

lombokissues commented Jul 14, 2015

👤 shackman0   🕗 Jan 28, 2014 at 10:48 UTC

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 r.spilker   🕗 Feb 04, 2014 at 21:28 UTC

Issue #671 has been merged into this issue.

Collaborator

lombokissues commented Jul 14, 2015

👤 r.spilker   🕗 Feb 04, 2014 at 21:28 UTC

Issue #671 has been merged into this issue.

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 r.spilker   🕗 Feb 04, 2014 at 22:33 UTC

Hi Floyd,

Can you please give us the smallest possible, self-contained java file and instructions to reproduce the bug? I know it exists :-) But I can't reproduce it on my machine...

Roel

Collaborator

lombokissues commented Jul 14, 2015

👤 r.spilker   🕗 Feb 04, 2014 at 22:33 UTC

Hi Floyd,

Can you please give us the smallest possible, self-contained java file and instructions to reproduce the bug? I know it exists :-) But I can't reproduce it on my machine...

Roel

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 r.spilker   🕗 Feb 04, 2014 at 22:56 UTC

I got it. I couldn't reproduce it using Map.Entry, as was suggested on the mailing list. However, the difference turns out to be the generics if Map.Entry. If I use a simpler example, I do get messages in the error log and when refactoring, a popup.

My full code is this:

package foo;

import java.util.Set;

import lombok.Getter;

@ Getter
public class Bar {
int foo;
Set<C.D> values;
}

class C {
static class D{}
}

Collaborator

lombokissues commented Jul 14, 2015

👤 r.spilker   🕗 Feb 04, 2014 at 22:56 UTC

I got it. I couldn't reproduce it using Map.Entry, as was suggested on the mailing list. However, the difference turns out to be the generics if Map.Entry. If I use a simpler example, I do get messages in the error log and when refactoring, a popup.

My full code is this:

package foo;

import java.util.Set;

import lombok.Getter;

@ Getter
public class Bar {
int foo;
Set<C.D> values;
}

class C {
static class D{}
}

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 r.spilker   🕗 Feb 05, 2014 at 00:10 UTC

Fixed, thanks to the code supplied by Martin Grajcar (great job!). You can download the edge release to test it out: https://projectlombok.org/download-edge.html

Collaborator

lombokissues commented Jul 14, 2015

👤 r.spilker   🕗 Feb 05, 2014 at 00:10 UTC

Fixed, thanks to the code supplied by Martin Grajcar (great job!). You can download the edge release to test it out: https://projectlombok.org/download-edge.html

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

End of migration

Collaborator

lombokissues commented Jul 14, 2015

End of migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment