title: Lombok @builder on a class that extends another class
body: <p>I have two classes <code>Child</code> extends <code>Parent</code>. I need to put @Builder annotation on the classes such that I do not need to create the builder my self.</p>
  
  <pre><code>package jerry;// Internal compiler error: java.lang.NullPointerException
  
  import lombok.AllArgsConstructor;
  import lombok.Builder;
  
  @AllArgsConstructor(onConstructor=@__(@Builder))
  public class Child extends Parent { 
  //Multiple markers at this line
  //  - Implicit super constructor Parent() is undefined. Must explicitly invoke another constructor
  //  - overrides java.lang.Object.toString
  
     private String a;
     private int b;
     private boolean c;
  
  }
  
  
  @Builder
  public class Parent {
      private double d;
      private float e;
  }
  </code></pre>
  
  <p>I need to be able to build child instance such that </p>
  
  <pre><code>Child child = Child.builder().a("aVal").b(1000).c(true).d(10.1).e(20.0F).build();
  </code></pre>
  
  <p>But so far I am getting the errors mentioned in side that code comments. Can any one point me to the right direction how to achieve it with lombok or any other similar library ?</p>
  
  <p><strong>Sub-question</strong></p>
  
  <p>Why does <code>@AllArgsConstructor(onConstructor=@__(@Autowired))</code> compile but <code>@AllArgsConstructor(onConstructor=@__(@Builder))</code> does not?</p>