classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] [RFA/JDWP] ArrayReferenceCommandSet.java


From: Tom Tromey
Subject: Re: [cp-patches] [RFA/JDWP] ArrayReferenceCommandSet.java
Date: 21 Jul 2005 18:18:16 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Aaron" == Aaron Luchko <address@hidden> writes:

Aaron> There's a slightly ugly part with a big if/else in executeGetValues but
Aaron> there doesn't seem to be a way to get rid of this.

This looks really similar to some code in the Values patch.  I suggest
a static utility method somewhere that takes a class and returns the
corresponding tag.  Then the big if/else here just becomes a method
call, and the conditional tag stuff in that method in Values becomes a
single conditional write... what do you think?

Aaron> +    // Write all the values, primatives should be untagged and Objects 
must be

Should be "primitives" ... this occurs both here and I think in the
Values patch as well.

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]