R
Rafal
Here's a code snippet:
---
public boolean isValid(Quote q)
{
String s = q.getSymbol();
double b = q.getBid();
int bs = q.getAskSize();
//...
// validation code (some if statements that's all)
//...
System.out.println("lSym=" + s + ", lBid=" + b +"lBidSize=" + bs);
System.out.println("qSym=" + q.getSymbol() + ", qBid=" +
q.getBid() +"qBidSize=" + q.getBidSize();
}
---
The problem is that sometimes the System output printouts printout
different values for member of q and local variables s, b, bs. To be
more specific, the local variables b & bs (in particular) are zero
while q.getBid() and q.getBidSize() return other values.
Has anyone come across it?
I don't want to have to use q.getXXX() for efficiency's sake. This
method is called very often in my program.
Any help would be appreciated. Thanks.
Rafal
---
public boolean isValid(Quote q)
{
String s = q.getSymbol();
double b = q.getBid();
int bs = q.getAskSize();
//...
// validation code (some if statements that's all)
//...
System.out.println("lSym=" + s + ", lBid=" + b +"lBidSize=" + bs);
System.out.println("qSym=" + q.getSymbol() + ", qBid=" +
q.getBid() +"qBidSize=" + q.getBidSize();
}
---
The problem is that sometimes the System output printouts printout
different values for member of q and local variables s, b, bs. To be
more specific, the local variables b & bs (in particular) are zero
while q.getBid() and q.getBidSize() return other values.
Has anyone come across it?
I don't want to have to use q.getXXX() for efficiency's sake. This
method is called very often in my program.
Any help would be appreciated. Thanks.
Rafal