You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Ivanov, Alexey A" <al...@intel.com> on 2006/10/13 13:22:22 UTC
[classlib][swing] Non-bug difference HARMONY-1745?
Hello,
Can HARMONY-1745 be treated as non-bug difference?
In short, in Harmony implementation method
j.s.t.CompositeView.getView(int n) throws ArrayIndexOutOfBoundsException
unless the parameter n is in the range [0, getViewCount() - 1]. Yet the
RI throws the same exception in some cases, and it doesn't throw any
exception and silently returns null in other cases where n is outside
the range mentioned above. It seems the RI always accepts getViewCount()
as valid parameter value.
Shall we bother to fix it or can we leave the code as is?
Thank you in advance for your comments,
Alexey.
--
Alexey A. Ivanov
Intel Middleware Product Division
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib][swing] Non-bug difference HARMONY-1745?
Posted by Tony Wu <wu...@gmail.com>.
+1 to as is.
On 10/18/06, Richard Liang <ri...@gmail.com> wrote:
> On 10/13/06, Ivanov, Alexey A <al...@intel.com> wrote:
> > Hello,
> >
> > Can HARMONY-1745 be treated as non-bug difference?
> >
> > In short, in Harmony implementation method
> > j.s.t.CompositeView.getView(int n) throws ArrayIndexOutOfBoundsException
> > unless the parameter n is in the range [0, getViewCount() - 1]. Yet the
> > RI throws the same exception in some cases, and it doesn't throw any
> > exception and silently returns null in other cases where n is outside
> > the range mentioned above. It seems the RI always accepts getViewCount()
> > as valid parameter value.
> >
> > Shall we bother to fix it or can we leave the code as is?
>
> IMHO, it's a bug of RI. We could leave the code as it and change the
> components of Harmony-1745 to "Non-bug differences from RI".
>
> Best regards,
> Richard.
>
> >
> > Thank you in advance for your comments,
> > Alexey.
> >
> >
> > --
> > Alexey A. Ivanov
> > Intel Middleware Product Division
> >
> > ---------------------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
> >
>
>
> --
> Richard Liang
> China Development Lab, IBM
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
--
Tony Wu
China Software Development Lab, IBM
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib][swing] Non-bug difference HARMONY-1745?
Posted by Richard Liang <ri...@gmail.com>.
On 10/13/06, Ivanov, Alexey A <al...@intel.com> wrote:
> Hello,
>
> Can HARMONY-1745 be treated as non-bug difference?
>
> In short, in Harmony implementation method
> j.s.t.CompositeView.getView(int n) throws ArrayIndexOutOfBoundsException
> unless the parameter n is in the range [0, getViewCount() - 1]. Yet the
> RI throws the same exception in some cases, and it doesn't throw any
> exception and silently returns null in other cases where n is outside
> the range mentioned above. It seems the RI always accepts getViewCount()
> as valid parameter value.
>
> Shall we bother to fix it or can we leave the code as is?
IMHO, it's a bug of RI. We could leave the code as it and change the
components of Harmony-1745 to "Non-bug differences from RI".
Best regards,
Richard.
>
> Thank you in advance for your comments,
> Alexey.
>
>
> --
> Alexey A. Ivanov
> Intel Middleware Product Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
--
Richard Liang
China Development Lab, IBM
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org