You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Vinay Chandran <vi...@yahoo.com> on 2002/04/24 21:13:11 UTC

[Altrmi] StubGenerator

Hi Paul,

ProxyGeneratorImpl now develops a 
 new Class[] and stuffs it into the
stub .
Any particular reason you employed this?
(My fever has kept me out of snyc over the past
few weeks on many battle fronts )

Moreover  this class array is being populated by
applending ".class" at the end of the Class name 
of the argument.

This would NOT work for ARRAY parameters.
mClassSource.println( "    argClasses[" + i + "] = " +
clazz.getName() + ".class;" );

Is this Class[] used ONLY as a means to ease the 
marshalling code in the DefaultProxyHelper or 
do you intend using it for some other deal?

Regards,
V i n a y


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Altrmi] StubGenerator

Posted by Vinay Chandran <vi...@yahoo.com>.
Peter,
> I thought it would be a good exercise to learn BCEL
> and bytecode in general. 
Its is .
> Its slightly easier since you already have your
> output well defined!
I am working upwards readin the bytecodes of the 
generated stubs.
Infact,got my first set of unit tests for the 
generator working well for the BCEL generated-stubs:-)


Regards,
(\_V.i.n.a.y_/)

--- Peter Royal <pr...@apache.org> wrote:
> On Wednesday 24 April 2002 08:11 pm, Vinay Chandran
> wrote:
> > Infact to write BCEL stub-generator for the Altrmi
> > is a painful FUN too.:-)(
> 
> -pete
> 
> -- 
> peter royal -> proyal@apache.org
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Altrmi] StubGenerator

Posted by Peter Royal <pr...@apache.org>.
On Wednesday 24 April 2002 08:11 pm, Vinay Chandran wrote:
> Infact to write BCEL stub-generator for the Altrmi
> is a painful FUN too.:-)(

I thought it would be a good exercise to learn BCEL and bytecode in general. 
Its slightly easier since you already have your output well defined!
-pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Altrmi] StubGenerator

Posted by Paul Hammant <pa...@yahoo.com>.
Vinay,

> why class[] array in dftproxyhelper?

The class array is added because the instanceof checking for marshalling
corrections was trying to instantiate primatives etc.  That was a bug, but
also the whole thing is 30% faster now.  Follow the use the cthe class array
through to the marshall correction method....

- paul h

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Altrmi] StubGenerator

Posted by Vinay Chandran <vi...@yahoo.com>.
Peter,
I guess Paul would have the best idea since 
he wrote the stub generator ; but of what I know 
we should NOT intend on getting primitive classes or
primitive arrays  into this class array maintained 
within the stub.
The elements within the class array is used by 
CallbackEnabled streams to keep a note internally,
so that when the server comes asking for these 
classes ,it receives the stubs and thus the 
callbacks.
It was added by Paul in version 1.5 of 
ProxyGeneratorImpl , and thus he will be the right
person for this.
Infact to write BCEL stub-generator for the Altrmi 
is a painful FUN too.:-)(

Regards,
( _ V.i.n.a.y  _/)

--- Peter Royal <pr...@apache.org> wrote:
> On Wednesday 24 April 2002 03:13 pm, Vinay Chandran
> wrote:
> > Moreover  this class array is being populated by
> > applending ".class" at the end of the Class name
> > of the argument.
> >
> > This would NOT work for ARRAY parameters.
> > mClassSource.println( "    argClasses[" + i + "] =
> " +
> > clazz.getName() + ".class;" );
> 
> I fixed that earlier today (just committed patch
> after testing a bit) as I 
> hit it. I know nothing of the design plans behind
> the change though.
> -pete
> 
> -- 
> peter royal -> proyal@apache.org
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Altrmi] StubGenerator

Posted by Peter Royal <pr...@apache.org>.
On Wednesday 24 April 2002 03:13 pm, Vinay Chandran wrote:
> Moreover  this class array is being populated by
> applending ".class" at the end of the Class name
> of the argument.
>
> This would NOT work for ARRAY parameters.
> mClassSource.println( "    argClasses[" + i + "] = " +
> clazz.getName() + ".class;" );

I fixed that earlier today (just committed patch after testing a bit) as I 
hit it. I know nothing of the design plans behind the change though.
-pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>