Yes, a very particular reason ;). To generate a constructor for a
super class one needs to know the types of the parameters. This
information is only available after java has performed resolution and
lombok is run in a pre-resolution step.
This doesn't apply for generating a constructor with the field of a
class. We can assume that the Argument types can go un-changed into
getters/setters and constructors as it is not possible to have two
different type of say a 'List' with one class.
Getting resolution information for lombok is not a trivial issue.
We've done a partial form of resolution for our new 'val' feature but
that was followed with a lot of pain. Obviously, we'd really like this
to work, but we don' t think this is going to happen in the near
future.
--
Robbert Jan Grootjans
On Jan 12, 2:35 am, "Lord.Quackstar" <
lord.quacks...@gmail.com> wrote:
> Any particular reason why? Is it difficult? Is there too much to do right now?
>
> -Leon
>
> ________________________________
> From: Reinier Zwitserloot <
reini...@gmail.com>
> To: project-lombok <
project...@googlegroups.com>
> Sent: Tue, January 11, 2011 9:02:47 AM
> Subject: Re: [project lombok] extending a class - constructor issue
>
> Yes, you're missing something.
>
> @Data (and the bits it consists of) don't look at other classes. They don't know
> about your superclass's non-zero-arg constructor. This won't be changing anytime
> soon.
>
> --Reinier Zwitserloot
>
> >Groups group forhttp://
projectlombok.org/
> Groups group forhttp://
projectlombok.org/