[patch] Implement java.beans.Expression

jlquinn@optonline.net jlquinn@optonline.net
Fri Jun 25 15:30:00 GMT 2004


> Hi,
> 
> On Thu, 2004-06-24 at 07:10, Jerry Quinn wrote:
> > This depends on http://gcc.gnu.org/ml/java-patches/2004-q2/msg00739.html
> >
> > 2004-06-24  Jerry Quinn  <jlquinn@optonline.net>
> >
> >  * java/beans/Expression.java: New.
> >  * Makefile.am: Add Expression.java.
> >  * Makefile.in: Regenerate.
> 
> Very nice. Thanks for working on these classes.
> Are you still waiting for approval to check them in?

Thanks.  Both the Expression.java and Statement.java patches are waiting for
approval.

> I quickly tried them by adding them to GNU Classpath.
> It gave one Mauve failure though with jamvm
> (thanks for writing Mauve tests btw!).

[snip]

> That didn't work for me since klazz now points to java.lang.Class which
> doesn't have any constructors. My quick and dirty patch to get all mauve
> tests working was to change the assignment of klazz to:
> 
>     Class klazz = (target instanceof Class)
>                   ? (Class) target : target.getClass();
> 
> What do you think?

I also discovered this while testing Expression and have an equivalent fix in
my Statement.java, but hadn't posted it.  Yours is cleaner, though.

Thanks,
Jerry




More information about the Java-patches mailing list