You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andy Jefferson (JIRA)" <ji...@apache.org> on 2006/01/03 20:52:00 UTC

[jira] Created: (JDO-271) SingleStringQuery has a query accessing a field in a subclass

SingleStringQuery has a query accessing a field in a subclass
-------------------------------------------------------------

         Key: JDO-271
         URL: http://issues.apache.org/jira/browse/JDO-271
     Project: JDO
        Type: Bug
  Components: tck20  
    Reporter: Andy Jefferson
 Assigned to: Michael Bouschen 


Bug JDO-270 was raised against JPOX for not detecting accesses to fields in subclasses, saying that it should raise an exception when it encounters such things. In which case can we please have the test SingleStringQuery fixed since it tries to access "salary" when using a candidate class of Person, which has no such "salary" (which is on FullTimeEmployee), or "projects" for that matter. Maybe change the candidate to FullTimeEmployee ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (JDO-271) SingleStringQuery has a query accessing a field in a subclass

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-271?page=comments#action_12361674 ] 

Craig Russell commented on JDO-271:
-----------------------------------

Committed revision 365748.

This fixes SingleStringQuery. Other tests have not been changed.

> SingleStringQuery has a query accessing a field in a subclass
> -------------------------------------------------------------
>
>          Key: JDO-271
>          URL: http://issues.apache.org/jira/browse/JDO-271
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Andy Jefferson
>     Assignee: Michael Bouschen

>
> Bug JDO-270 was raised against JPOX for not detecting accesses to fields in subclasses, saying that it should raise an exception when it encounters such things. In which case can we please have the test SingleStringQuery fixed since it tries to access "salary" when using a candidate class of Person, which has no such "salary" (which is on FullTimeEmployee), or "projects" for that matter. Maybe change the candidate to FullTimeEmployee ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (JDO-271) SingleStringQuery has a query accessing a field in a subclass

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-271?page=comments#action_12361668 ] 

Andy Jefferson commented on JDO-271:
------------------------------------

Also Grouping.testPositive has access to "salary" for Employee.
Also VariablesAndFields.testPositive has access to "team" when using a candidate class of Person.


> SingleStringQuery has a query accessing a field in a subclass
> -------------------------------------------------------------
>
>          Key: JDO-271
>          URL: http://issues.apache.org/jira/browse/JDO-271
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Andy Jefferson
>     Assignee: Michael Bouschen

>
> Bug JDO-270 was raised against JPOX for not detecting accesses to fields in subclasses, saying that it should raise an exception when it encounters such things. In which case can we please have the test SingleStringQuery fixed since it tries to access "salary" when using a candidate class of Person, which has no such "salary" (which is on FullTimeEmployee), or "projects" for that matter. Maybe change the candidate to FullTimeEmployee ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (JDO-271) SingleStringQuery has a query accessing a field in a subclass

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-271?page=all ]
     
Craig Russell resolved JDO-271:
-------------------------------

    Resolution: Fixed

Committed revision 365775.

This fixes the VariablesAndFields and Grouping tests.

> SingleStringQuery has a query accessing a field in a subclass
> -------------------------------------------------------------
>
>          Key: JDO-271
>          URL: http://issues.apache.org/jira/browse/JDO-271
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Andy Jefferson
>     Assignee: Michael Bouschen

>
> Bug JDO-270 was raised against JPOX for not detecting accesses to fields in subclasses, saying that it should raise an exception when it encounters such things. In which case can we please have the test SingleStringQuery fixed since it tries to access "salary" when using a candidate class of Person, which has no such "salary" (which is on FullTimeEmployee), or "projects" for that matter. Maybe change the candidate to FullTimeEmployee ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira