www-legal-discuss mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Creating compiler stubs
Date Thu, 20 Feb 2014 10:41:43 GMT
On 20 February 2014 10:11, Jochen Wiedmann <jochen.wiedmann@gmail.com>wrote:

>
>
>
> On Thu, Feb 20, 2014 at 10:36 AM, Stephen Connolly <
> stephen.alan.connolly@gmail.com> wrote:
>
>
>> From a technical point of view, please do NOT do this.
>>
>> The Glassfish team at Sun did this very thing in producing a stub
>> javaee.jar. Because it was a stub you could compile against it. But you
>> could not run tests against it in any way shape or form. Worse still, you
>> couldn't even unit test the bits of your code that did not call through to
>> javaee APIs because the classloading would barf out.
>>
>>
> Hi, Stephen,
>
> I am fully aware of the problems you are mentioning and believe that I can
> handle them (for my limited use cases), perhaps by indeed implementing more
> than a generated stub from time to time.
>
> However, I am specifically asking for legal concerns, because those are
> what I'm unable to deal with.
>
> Btw: Is the software that created the stub javaee.jar available? I'm not
> interested in reinventing the wheel...
>

I think all they did was use an ASM based class rewriter that stripped all
the implementations out. The quick and dirty one they wrote would take
about 15 minutes to write IIRC


>
>
> Jochen
>

Mime
View raw message