InlineFlow.setBorder not accepting null argument [message #210103] |
Wed, 22 February 2006 16:34 |
Eclipse User |
|
|
|
Originally posted by: andrew_NOSPAM_.eisenberg.as
The comment for the method InlineFlow.setBorder says that passing in a null
value for the new border is valid. However the code for that method is:
public void setBorder(Border border) {
if (border instanceof FlowBorder)
super.setBorder(border);
else
throw new RuntimeException("Border must be an instance of FlowBorder");
}
This code throws an error when passed a null argument.
Is this a bug? I would really like to remove a border of a TextFlow, but I
can't do this as it currently stands.
thanks,
--a
|
|
|
Re: InlineFlow.setBorder not accepting null argument [message #210133 is a reply to message #210103] |
Wed, 22 February 2006 20:58 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Open a bugzilla. We can fix this in 3.2.
"Andrew Eisenberg" <andrew_NOSPAM_@eisenberg.as> wrote in message
news:dti3re$l04$1@utils.eclipse.org...
> The comment for the method InlineFlow.setBorder says that passing in a
> null value for the new border is valid. However the code for that method
> is:
>
> public void setBorder(Border border) {
> if (border instanceof FlowBorder)
> super.setBorder(border);
> else
> throw new RuntimeException("Border must be an instance of
> FlowBorder");
> }
>
> This code throws an error when passed a null argument.
>
> Is this a bug? I would really like to remove a border of a TextFlow, but
> I can't do this as it currently stands.
>
> thanks,
> --a
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds