You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Satheesh Bandaram <ba...@gmail.com> on 2006/05/19 09:05:36 UTC

SqlExceptionTest failure on JDK 1.3 platforms ...

Looks like this test was modified to use getCause() method, which is not
supported in JDK 1.3 platforms. This causes the test to fail. What should be
done to fix the failure on JDK 1.3?

Satheesh

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by David Van Couvering <Da...@Sun.COM>.
Checked in the change, revision 409008.  My tests indicate it skips when 
using JDK 1.3.  Let me know if this doesn't work for you for some reason.

David

Satheesh Bandaram wrote:
> David Van Couvering wrote:
> 
>> Hi, Kathey.  I think you have a good point.  Satheesh, if you haven't
>> fixed this, I can go ahead and do it.
>>
>> Thanks,
>>
>> David
>>
> I haven't done it yet... You can go-ahead if you want to. Thanks!
> 
> Satheesh
> 
> 

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Satheesh Bandaram <ba...@gmail.com>.
David Van Couvering wrote:

> Hi, Kathey.  I think you have a good point.  Satheesh, if you haven't
> fixed this, I can go ahead and do it.
>
> Thanks,
>
> David
>
I haven't done it yet... You can go-ahead if you want to. Thanks!

Satheesh



Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by David Van Couvering <Da...@Sun.COM>.
Hi, Kathey.  I think you have a good point.  Satheesh, if you haven't 
fixed this, I can go ahead and do it.

Thanks,

David

Kathey Marsden wrote:
> David Van Couvering wrote:
> 
>> Sorry, recently modified as I am, I don't have the itch to fix this on 
>> JDK 1.3...  I support you removing it from that platform.
>>
> Thanks Satheesh for cleaning this up. Of course, once the code is 
> checked in it belongs to all of us so it is the community's 
> responsibility as a whole to make sure tests pass for supported JDK's 
> like JDK 1.3.1.  Disabling specific tests on JDK 1.3.1 seems sensible in 
> some cases like this one.    It would be really helpful though, if 
> contributors did this as part of the contribution so Satheesh and others 
> don't have to run around and cleanup.
> 
> Kathey
> 
> 

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Kathey Marsden <km...@sbcglobal.net>.
David Van Couvering wrote:

> Sorry, recently modified as I am, I don't have the itch to fix this on 
> JDK 1.3...  I support you removing it from that platform.
>
Thanks Satheesh for cleaning this up. Of course, once the code is 
checked in it belongs to all of us so it is the community's 
responsibility as a whole to make sure tests pass for supported JDK's 
like JDK 1.3.1.  Disabling specific tests on JDK 1.3.1 seems sensible in 
some cases like this one.    It would be really helpful though, if 
contributors did this as part of the contribution so Satheesh and others 
don't have to run around and cleanup.

Kathey



Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by David Van Couvering <Da...@Sun.COM>.
Sorry, recently modified as I am, I don't have the itch to fix this on 
JDK 1.3...  I support you removing it from that platform.

David

Satheesh Bandaram wrote:
> I would like to see this failure go away one way or the other on JDK 1.3 
> runs. Looking at svn log, you seem to be the "recently modified person" 
> and the author of the test! Do you have itch to modify the test?
> 
> Otherwise, I will likely disable the test for JDK1.3. This platform is 
> getting little too old..
> 
> Satheesh
> 
> On 5/19/06, *David Van Couvering* < David.Vancouvering@sun.com 
> <ma...@sun.com>> wrote:
> 
>     What does it mean to be a "recently modified person?" :)
> 
>     I was the one who wrote this (quite a while ago, actually), and you're
>     right, as it stands it won't run on JDK 1.3.
> 
>     However, I think there is value in testing the getNextException()
>     methods on JDK 1.3.  Can't we test for the JDK version in the test and
>     exclude the tests of getCause() if it's JDK 1.3?
> 
>     David
> 
>     Satheesh Bandaram wrote:
>      > Sounds like a good approach... Any interest from the writers or
>     recently
>      > modified persons to exclude this test on 1.3? If no one has this
>     itch, I
>      > probably will address this test issue.
>      >
>      > Satheesh
>      >
>      > On 5/19/06, *Rick Hillegas* < Richard.Hillegas@sun.com
>     <ma...@sun.com>
>      > <mailto:Richard.Hillegas@sun.com
>     <ma...@sun.com>>> wrote:
>      >
>      >     Hi Satheesh,
>      >
>      >     It looks to me like this is a new test introduced by revision
>     386710 to
>      >     close DERBY-1117. Testing getCause() appears to be central to
>     what this
>      >     test wants to verify. Maybe we shouldn't run this test on 1.3.
>      >
>      >     Regards,
>      >     -Rick
>      >
>      >     Satheesh Bandaram wrote:
>      >
>      >      > Looks like this test was modified to use getCause()
>     method, which is
>      >      > not supported in JDK 1.3 platforms. This causes the test
>     to fail.
>      >     What
>      >      > should be done to fix the failure on JDK 1.3 ?
>      >      >
>      >      > Satheesh
>      >
>      >
>      >
> 
> 

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Satheesh Bandaram <ba...@gmail.com>.
I would like to see this failure go away one way or the other on JDK
1.3runs. Looking at svn log, you seem to be the "recently modified
person" and
the author of the test! Do you have itch to modify the test?

Otherwise, I will likely disable the test for JDK1.3. This platform is
getting little too old..

Satheesh

On 5/19/06, David Van Couvering <Da...@sun.com> wrote:
>
> What does it mean to be a "recently modified person?" :)
>
> I was the one who wrote this (quite a while ago, actually), and you're
> right, as it stands it won't run on JDK 1.3.
>
> However, I think there is value in testing the getNextException()
> methods on JDK 1.3.  Can't we test for the JDK version in the test and
> exclude the tests of getCause() if it's JDK 1.3?
>
> David
>
> Satheesh Bandaram wrote:
> > Sounds like a good approach... Any interest from the writers or recently
> > modified persons to exclude this test on 1.3? If no one has this itch, I
> > probably will address this test issue.
> >
> > Satheesh
> >
> > On 5/19/06, *Rick Hillegas* <Richard.Hillegas@sun.com
> > <ma...@sun.com>> wrote:
> >
> >     Hi Satheesh,
> >
> >     It looks to me like this is a new test introduced by revision 386710
> to
> >     close DERBY-1117. Testing getCause() appears to be central to what
> this
> >     test wants to verify. Maybe we shouldn't run this test on 1.3.
> >
> >     Regards,
> >     -Rick
> >
> >     Satheesh Bandaram wrote:
> >
> >      > Looks like this test was modified to use getCause() method, which
> is
> >      > not supported in JDK 1.3 platforms. This causes the test to fail.
> >     What
> >      > should be done to fix the failure on JDK 1.3 ?
> >      >
> >      > Satheesh
> >
> >
> >
>

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Andrew McIntyre <mc...@gmail.com>.
On 5/19/06, Daniel John Debrunner <dj...@apache.org> wrote:
>
> Except that tests should not be using internal Derby classes.

So what's the preferred method? Compare with the value of
java.specification.version?

FYI,

grep --recursive JVMInfo * | grep -v .svn | wc

in java/testing/org/apache/derbyTesting/functionTests/tests yields 22
references to JVMInfo in the tests.

andrew

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Daniel John Debrunner <dj...@apache.org>.
Andrew McIntyre wrote:
> On 5/19/06, David Van Couvering <Da...@sun.com> wrote:
> 
>> What does it mean to be a "recently modified person?" :)
>>
>> I was the one who wrote this (quite a while ago, actually), and you're
>> right, as it stands it won't run on JDK 1.3.
>>
>> However, I think there is value in testing the getNextException()
>> methods on JDK 1.3.  Can't we test for the JDK version in the test and
>> exclude the tests of getCause() if it's JDK 1.3?
> 
> 
> Yes. Import org.apache.derby.iapi.service.info.JVMInfo, then wrap the
> offending calls in:
> 
> if (JVMInfo.JDK_ID >= JVMInfo.J2SE_14) { ... }

Except that tests should not be using internal Derby classes.

Dan.


Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Andrew McIntyre <mc...@gmail.com>.
On 5/19/06, David Van Couvering <Da...@sun.com> wrote:
> What does it mean to be a "recently modified person?" :)
>
> I was the one who wrote this (quite a while ago, actually), and you're
> right, as it stands it won't run on JDK 1.3.
>
> However, I think there is value in testing the getNextException()
> methods on JDK 1.3.  Can't we test for the JDK version in the test and
> exclude the tests of getCause() if it's JDK 1.3?

Yes. Import org.apache.derby.iapi.service.info.JVMInfo, then wrap the
offending calls in:

if (JVMInfo.JDK_ID >= JVMInfo.J2SE_14) { ... }

andrew

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by David Van Couvering <Da...@Sun.COM>.
What does it mean to be a "recently modified person?" :)

I was the one who wrote this (quite a while ago, actually), and you're 
right, as it stands it won't run on JDK 1.3.

However, I think there is value in testing the getNextException() 
methods on JDK 1.3.  Can't we test for the JDK version in the test and 
exclude the tests of getCause() if it's JDK 1.3?

David

Satheesh Bandaram wrote:
> Sounds like a good approach... Any interest from the writers or recently 
> modified persons to exclude this test on 1.3? If no one has this itch, I 
> probably will address this test issue.
> 
> Satheesh
> 
> On 5/19/06, *Rick Hillegas* <Richard.Hillegas@sun.com 
> <ma...@sun.com>> wrote:
> 
>     Hi Satheesh,
> 
>     It looks to me like this is a new test introduced by revision 386710 to
>     close DERBY-1117. Testing getCause() appears to be central to what this
>     test wants to verify. Maybe we shouldn't run this test on 1.3.
> 
>     Regards,
>     -Rick
> 
>     Satheesh Bandaram wrote:
> 
>      > Looks like this test was modified to use getCause() method, which is
>      > not supported in JDK 1.3 platforms. This causes the test to fail.
>     What
>      > should be done to fix the failure on JDK 1.3 ?
>      >
>      > Satheesh
> 
> 
> 

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Satheesh Bandaram <ba...@gmail.com>.
Sounds like a good approach... Any interest from the writers or recently
modified persons to exclude this test on 1.3? If no one has this itch, I
probably will address this test issue.

Satheesh

On 5/19/06, Rick Hillegas <Ri...@sun.com> wrote:
>
> Hi Satheesh,
>
> It looks to me like this is a new test introduced by revision 386710 to
> close DERBY-1117. Testing getCause() appears to be central to what this
> test wants to verify. Maybe we shouldn't run this test on 1.3.
>
> Regards,
> -Rick
>
> Satheesh Bandaram wrote:
>
> > Looks like this test was modified to use getCause() method, which is
> > not supported in JDK 1.3 platforms. This causes the test to fail. What
> > should be done to fix the failure on JDK 1.3 ?
> >
> > Satheesh
>
>
>

Re: SqlExceptionTest failure on JDK 1.3 platforms ...

Posted by Rick Hillegas <Ri...@Sun.COM>.
Hi Satheesh,

It looks to me like this is a new test introduced by revision 386710 to 
close DERBY-1117. Testing getCause() appears to be central to what this 
test wants to verify. Maybe we shouldn't run this test on 1.3.

Regards,
-Rick

Satheesh Bandaram wrote:

> Looks like this test was modified to use getCause() method, which is 
> not supported in JDK 1.3 platforms. This causes the test to fail. What 
> should be done to fix the failure on JDK 1.3 ?
>
> Satheesh