Thanks for providing the patch, Abhilash.
I had a quick look at it, and it seems to me it is a lot bigger than it has to be because of unrelated whitespace changes.
There is a preference in the Derby community to leave unrelated whitespace changes out of patches fixing other issues. I do notice that the class you are working on (DRDAStatement) contains a mix of tabs and spaces, and also a number of lines with trailing whitespace.
The current policy for new Derby source code is to use four spaces for indentation.
1) Can you please make another patch, where you don't incorporate unrelated whitespace changes?
2) Have you run any regression tests for the changes?
If you have questions, feel free to ask!