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 "Tomohito Nakayama (JIRA)" <de...@db.apache.org> on 2006/06/13 18:26:29 UTC
[jira] Created: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
-----------------------------------------------------------------------------------------------------------------------------------
Key: DERBY-1401
URL: http://issues.apache.org/jira/browse/DERBY-1401
Project: Derby
Type: Bug
Reporter: Tomohito Nakayama
In the work of DERBY-1301, I found this issue.
Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
public int read( char[] cbuf,
int off,
int len ){
if(wroteLength >= total)
return -1;
int i;
for(i = off ;
i < off + len &&
wroteLength <= total ;
i++, wroteLength ++){
cbuf[i] = (char) (wroteLength % 0x10000L);
}
return i - off;
}
Problem exists in next part...
wroteLength <= total
Because an evaluation of this expression is true when wroteLength equals total,
test data is created beyond max length passed in total.
--
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: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Tomohito Nakayama (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=all ]
Tomohito Nakayama resolved DERBY-1401.
--------------------------------------
Resolution: Fixed
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Issue Type: Bug
> Components: Test
> Reporter: Tomohito Nakayama
> Assigned To: Tomohito Nakayama
> Attachments: DERBY-1401.patch
>
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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] Assigned: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Tomohito Nakayama (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=all ]
Tomohito Nakayama reassigned DERBY-1401:
----------------------------------------
Assign To: Tomohito Nakayama
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Type: Bug
> Reporter: Tomohito Nakayama
> Assignee: Tomohito Nakayama
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Tomohito Nakayama (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=comments#action_12426533 ]
Tomohito Nakayama commented on DERBY-1401:
------------------------------------------
I hope so .
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Issue Type: Bug
> Components: Test
> Reporter: Tomohito Nakayama
> Assigned To: Tomohito Nakayama
> Attachments: DERBY-1401.patch
>
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Tomohito Nakayama (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=comments#action_12416180 ]
Tomohito Nakayama commented on DERBY-1401:
------------------------------------------
Committed ...
Sending java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/Stream.java
Transmitting file data .
Committed revision 414199.
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Type: Bug
> Components: Test
> Reporter: Tomohito Nakayama
> Assignee: Tomohito Nakayama
> Attachments: DERBY-1401.patch
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Manjula Kutty (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=comments#action_12426348 ]
Manjula Kutty commented on DERBY-1401:
--------------------------------------
The patch for this issue had been comitted a while ago. Can we close it?
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Issue Type: Bug
> Components: Test
> Reporter: Tomohito Nakayama
> Assigned To: Tomohito Nakayama
> Attachments: DERBY-1401.patch
>
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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] Updated: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Tomohito Nakayama (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=all ]
Tomohito Nakayama updated DERBY-1401:
-------------------------------------
Component: Test
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Type: Bug
> Components: Test
> Reporter: Tomohito Nakayama
> Assignee: Tomohito Nakayama
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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] Updated: (DERBY-1401) TestDataReader class in
jdbcapi/Stream.java creates test data of which length is not equals to
value passed as length of test data.
Posted by "Tomohito Nakayama (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1401?page=all ]
Tomohito Nakayama updated DERBY-1401:
-------------------------------------
Attachment: DERBY-1401.patch
Description of the patch :
* Stop generating test data when wroteLength reaches total value.
Test :
* Execute derbyall and found no error other than DERBY-1351.
> TestDataReader class in jdbcapi/Stream.java creates test data of which length is not equals to value passed as length of test data.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1401
> URL: http://issues.apache.org/jira/browse/DERBY-1401
> Project: Derby
> Type: Bug
> Components: Test
> Reporter: Tomohito Nakayama
> Assignee: Tomohito Nakayama
> Attachments: DERBY-1401.patch
>
> In the work of DERBY-1301, I found this issue.
> Seeing the code, next part in org.apache.derbyTesting.functionTests.tests.jdbcapi.Stream.TestDataReader had problem.
> public int read( char[] cbuf,
> int off,
> int len ){
>
> if(wroteLength >= total)
> return -1;
>
> int i;
> for(i = off ;
> i < off + len &&
> wroteLength <= total ;
> i++, wroteLength ++){
>
> cbuf[i] = (char) (wroteLength % 0x10000L);
>
> }
> return i - off;
> }
> Problem exists in next part...
> wroteLength <= total
> Because an evaluation of this expression is true when wroteLength equals total,
> test data is created beyond max length passed in total.
--
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