This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: More AWT merging


Tom Tromey wrote:

>I'm checking this in, another in the endless AWT merge.
>
>This merges MenuComponent, MenuItem, and Button.
>
>
>+/**
>+  * Returns a debugging string for this button.
>+  *
>+  * @return A debugging string for this button.
>+  */
>+protected String
>+paramString()
>+{
>+  return(getClass().getName() + "(label=" + getLabel() + ",actionCommand=" +
>+         getActionCommand() + ")");
>+}
>+
>+} // class Button 
>+
>
The merged paramString methods may be wrong here - I dont think they 
should ever call getClass().getName() or toString(). toString() calls 
paramString (see Component).

getTreeLock() shouldn't be public.

regards

Bryce.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]