cp-tools-discuss
[Top][All Lists]
Advanced

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

Re: [Cp-tools-discuss] gnu.bytecode


From: Per Bothner
Subject: Re: [Cp-tools-discuss] gnu.bytecode
Date: Sun, 30 Jan 2005 13:52:38 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Elliott Hughes wrote:
i think what you checked in contains a bug:

    short mask
      = (kind == 'C' ? CLASS_MODIFIERS
         : kind == 'F' ? FIELD_MODIFIERS
         : kind == 'F' ? METHOD_MODIFIERS
         : (CLASS_MODIFIERS|FIELD_MODIFIERS|METHOD_MODIFIERS));

shouldn't the second 'F' be 'M'?

Yes, indeed.

i'm also not sure i understand the Access.toString() method, and its use in decoding the InnerClasses attribute; shouldn't that use Access.toString(blah, 'C')?

Yes, that would be better.

I checked in both fixes.
--
        --Per Bothner
address@hidden   http://per.bothner.com/




reply via email to

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