Call me a miminalist, but this version does the same as your proposal with
less source and less bytecode:
public Object[] getSelectedObjects()
{
return state ? new Object[] { getLabel() } : null;
}
Of course, this is taking your example out of context (I haven't looked at
AWT, and your patch isn't in unidiff). You should consider resubmitting
your proposed patch in unidiff format against CVS; that makes it a lot
easier to apply.
Aha - before I sent this reply you posted another bug. Yes, synchronized
classes are illegal. Someone has probably been committing to CVS without
compiling (shame on them)...
--
Eric Blake, Elixent, Castlemead, Lwr Castle St., Bristol BS1 3AG, UK
[EMAIL PROTECTED] tel:+44(0)117 917 5611
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of R.S. Veldema
> Sent: 18 July 2001 16:54
> To: [EMAIL PROTECTED]
> Subject: small bug
>
>
>
> Hi, im giving classpath's awt a go with my compiler,
> so checked a version out.
> One bug discovered thusfar:
>
> CheckBoxMenuItem.java: getsel-objs.
> should be
>
> public Object[]
> getSelectedObjects()
> {
> if (state == false)
> return(null);
>
> Object[] obj = new Object[1];
> obj[0] = getLabel();
>
> return(obj);
> }
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath