Thanks Alexei! > IMHO it is ok to throw NullPointerException here and file Non-Bug-Diff JIRA.
Why NPE and not IllegalArgumentException? If doc says "non-null", the latter may also be appropriate... Vasily -----Original Message----- From: Alexei Zakharov [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 4:57 PM To: [email protected] Subject: Re: Compatibility or non-bug question Hi, > http://issues.apache.org/jira/browse/HARMONY-1024 So RI allows creation of the Binding with null name. I don't see much sence in such object. How can it be used? For what? Moreover, we have a non-null spec requirement. So IMHO it is ok to throw NullPointerException here and file Non-Bug-Diff JIRA. > http://issues.apache.org/jira/browse/HARMONY-2525 The same thing here. The only exception is that IMHO test3 from this JIRA is valid. Why not to throw IndexOutOfBoundsException before NullPointerException? Regards, 2006/12/17, Zakharov, Vasily M <[EMAIL PROTECTED]>: > > Well, that's better than nothing. :) > > In fact, those two bugs I've mentioned are the ones I'm most interested > in right now: > > http://issues.apache.org/jira/browse/HARMONY-1024 > http://issues.apache.org/jira/browse/HARMONY-2525 > > What to you think we should do to them? > > Thank you. > > Vasily > > > -----Original Message----- > From: Alexey Petrenko [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 16, 2006 7:48 AM > To: [email protected] > Subject: Re: Compatibility or non-bug question > > We have a compatibility guideline [1]. > And according this guideline we should discuss cases like yours one by > one. > > SY, Alexey > > [1] http://harmony.apache.org/subcomponents/classlibrary/compat.html > > 2006/12/16, Zakharov, Vasily M <[EMAIL PROTECTED]>: > > Hi, all, > > > > I'm now trying to investigate and fix some trivial bugs, but I'm not > > sure which way to fix them to. > > > > There're multiple situations where RI, say, doesn't throw exception > and > > Harmony does throw, and throwing an exception in that situation looks > > good and logical. > > > > In other words, the question is, what is a compatibility bug (that > needs > > to be fixed to match RI) and what is a non-bug difference. > > > > Also, there's a question on non-bug differences. They're not bugs, but > > what should we do to them? Just close them, if Harmony behaviour seems > > more correct than RI's? Or fix them to match RI though they're not > bugs, > > to make sure we don't break existing applications? > > > > Here are two characteristic examples of uncertainties that occur > rather > > frequently: > > http://issues.apache.org/jira/browse/HARMONY-1024 > > http://issues.apache.org/jira/browse/HARMONY-2525 > > > > Do we have some, say, policy, or guideline on how issues like these > > could (or should) be resolved? > > > > There're many issues like these, and having a general approach would > > ease dealing with them... > > > > Any opinions? > > > > Thank you! > > > > Vasily Zakharov > > Intel Enterprise Solutions Software Division -- Alexei Zakharov, Intel ESSD
