Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Importing @Builder generated builder classes does not work #48

Closed
bpedman opened this issue Apr 4, 2014 · 16 comments
Closed

Importing @Builder generated builder classes does not work #48

bpedman opened this issue Apr 4, 2014 · 16 comments
Assignees
Milestone

Comments

@bpedman
Copy link

bpedman commented Apr 4, 2014

For example, if I have:

@Builder
public class Test
{
  private int foo;
}

This will generate an internal class named TestBuilder. If I then try to import it in another class like import Test.TestBuilder it thinks the class doesn't exist.

However, I can still import the class Test and assign the builder to a new variable like Test.TestBuilder builder = Test.builder(); but I would like to just reference the builder class itself if possible

@amaltson
Copy link

amaltson commented May 8, 2014

👍

4 similar comments
@ahmedjaved
Copy link

👍

@pz07
Copy link

pz07 commented May 27, 2014

+1

@igor-kupczynski
Copy link

+1

@balent
Copy link

balent commented Aug 20, 2014

👍

@zaretskyy
Copy link

+1
Are there any workarounds?

@vvursT
Copy link

vvursT commented Nov 25, 2014

+1

1 similar comment
@rpelger
Copy link

rpelger commented Nov 25, 2014

+1

@arun1087
Copy link

arun1087 commented Dec 2, 2014

I still have the problem. While googling I saw that this issue has been resolved. I am using lombok-plugin-0.8.8 and still the issue is not resolved and there is compile errors while making the project from intellij.

There is an ugly hack though.
If the @builder errors are thrown in finite number of places, create the builder classes yourself, that is, write the code which is supposed to be generated(I said ugly hack). This will help you get rid of the compilation errors in intellij. If the number of places you have to add this is more, think twice.

@andrw
Copy link

andrw commented Dec 6, 2014

+1

1 similar comment
@richadams8
Copy link

👍

@RodrigoQuesadaDev
Copy link

+1

@mplushnikov mplushnikov added this to the 0.9.5 milestone Apr 30, 2015
@mplushnikov mplushnikov self-assigned this Apr 30, 2015
@vicmosin
Copy link

+1, really drives crazy...

@mrcritical
Copy link

+1

@evantaurusta
Copy link

if you are usinng intelliJ, you can install the lombok plugins to let IntelliJ knows that the references are preCompiled

@haereeroo
Copy link

if you are usinng intelliJ, you can install the lombok plugins to let IntelliJ knows that the references are preCompiled

brilliant! thank you so much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests