TCK : Instanceof
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > TCK : Instanceof




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    TCK : Instanceof  
Andy Jefferson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-04-05 12:45 PM

The TCK test Instanceof has an error.
It defines 2 queries, yet only 1 set of expected results, ending up with
ArrayOutOfBoundsException when trying to get the expected result for the sec
ond part.

--
Andy






[ Post a follow-up to this message ]



    Re: TCK : Instanceof  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-04-05 12:45 PM

Hi Andy,

you are right! The second query seems to be a leftover from a previous
test. I'll fix that.

BTW: The expected query result is also wrong - should be emp3, emp4.

Thanks,
Michael
> The TCK test Instanceof has an error.
> It defines 2 queries, yet only 1 set of expected results, ending up with
> ArrayOutOfBoundsException when trying to get the expected result for the s
econd part.
>
> --
> Andy


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Re: TCK : Instanceof  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-04-05 12:45 PM

Hi Andy,

Michael convinced me that it makes sense to keep the second query.

There was a bug in the second query: The Java keyword 'import' was
specified in capitals. I fixed that also and adapted the expected result.

I checked in these changes (Revision 330795).

However, the second query fails. JPOX returns an empty result though pc
instances "emp3" and "emp4" are expected. Semantically the first query
and the second query are the same. Thus, this seems to be a JPOX issue.

Please have a look.

Regards,
Michael
> Hi Andy,
>
> you are right! The second query seems to be a leftover from a previous
> test. I'll fix that.
>
> BTW: The expected query result is also wrong - should be emp3, emp4.
>
> Thanks,
> Michael
> 
>
>
>


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Re: TCK : Instanceof  
Andy Jefferson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-04-05 10:45 PM

Hi Michael,

thanks for your changes.
I don't understand why you changed the expected result to be "emp3, emp4". T
he
query is looking for Employees that have a mentor field that is PartTimeEmpl
oyee.
That means that it should return emp2 and emp3. The query is *not* which
employees *are* PartTimeEmployees. Or am I mistaken ?

Re: the JPOX status on instanceOf, what you have in last nights build won't 
give
you success since I've only just finished implementing it. Next nightly buil
d
will pass the test, assuming you change the expected results back to what I 
think
they should be.

--
Andy






[ Post a follow-up to this message ]



    Re: TCK : Instanceof  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-04-05 10:45 PM

Hi Andy,

> Hi Michael,
>
> thanks for your changes.
> I don't understand why you changed the expected result to be "emp3, emp4".
 The
> query is looking for Employees that have a mentor field that is PartTimeEm
ployee.
> That means that it should return emp2 and emp3. The query is *not* which
> employees *are* PartTimeEmployees. Or am I mistaken ?
You are completely right! Don't know why I thouht the query searches for
PartTimeEmployees?! I'll relax for ten minutes, smoke a cigarette, and
then fix it :-)

>
> Re: the JPOX status on instanceOf, what you have in last nights build won'
t give
> you success since I've only just finished implementing it. Next nightly bu
ild
> will pass the test, assuming you change the expected results back to what 
I think
> they should be.
That's fine.

Thanks,
Michael
>
> --
> Andy


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:14 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register