Description
A DESCRIPTION OF THE PROBLEM :
The example of code is not accurate and does not represent what the class is intended to do. The Range class example states the value should be within a 2 values, but the algorithm example shows that the value must be >= than the 2 values.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
if ((rs.getObject(idx[i]) >= lo[i]) &&
(rs.getObject(idx[i]) <= hi[i]) {
bool1 = true; // within filter constraints
} else {
bool2 = true; // outside of filter constraints
}
ACTUAL -
if ((rs.getObject(idx[i]) >= lo[i]) &&
(rs.getObject(idx[i]) >= hi[i]) {
bool1 = true; // within filter constraints
} else {
bool2 = true; // outside of filter constraints
}
URL OF FAULTY DOCUMENTATION :
http://download.oracle.com/javase/7/docs/api/javax/sql/rowset/Predicate.html
The example of code is not accurate and does not represent what the class is intended to do. The Range class example states the value should be within a 2 values, but the algorithm example shows that the value must be >= than the 2 values.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
if ((rs.getObject(idx[i]) >= lo[i]) &&
(rs.getObject(idx[i]) <= hi[i]) {
bool1 = true; // within filter constraints
} else {
bool2 = true; // outside of filter constraints
}
ACTUAL -
if ((rs.getObject(idx[i]) >= lo[i]) &&
(rs.getObject(idx[i]) >= hi[i]) {
bool1 = true; // within filter constraints
} else {
bool2 = true; // outside of filter constraints
}
URL OF FAULTY DOCUMENTATION :
http://download.oracle.com/javase/7/docs/api/javax/sql/rowset/Predicate.html