[Monetdb-developers] Workaround for JDK6 Bug 6795561

Fabian Groffen Fabian.Groffen at cwi.nl
Thu May 7 14:26:48 CEST 2009

Hi Bram,

On 07-05-2009 12:51:51 +0200, Bram Van Dam wrote:
> When using the MonetDB JDBC driver on JDK6 (or JRE6) > 6.10 you will get 
> IndexOutOfBoundsExceptions when using transactions (possibly in other 
> cases as well). This happens because there is a bug in 
> CharBuffer.subSequence(), which is used in StartOfHeaderParser.java
> The following patch remedies this problem, without any regressions as 
> far as I can tell. Recompiling the JDBC driver is all that's required.


> You'll still have to compile with the 1.5 option because the JDBC 
> interface changed quite a bit between 5 and 6, but if I have time left I 
> might fix that as well.
> Hope this'll help someone.

Do you have any idea what this performance wise does to the driver?  (I
don't at the moment.)

More information about the developers-list mailing list