This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213257 - Use setBinaryStream and setCharacterStream with more compatibility
Summary: Use setBinaryStream and setCharacterStream with more compatibility
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2012-05-30 19:44 UTC by matthias42
Modified: 2012-06-01 05:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
proposed patch v1 (1.42 KB, patch)
2012-05-30 19:44 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description matthias42 2012-05-30 19:44:53 UTC
Created attachment 120087 [details]
proposed patch v1

In the current version of the LOB rework the setBinaryStream and setCharacterStream methods are used in a variant added in java 1.6. This could lead to more incompatibilities than needed (seen with the informix driver, which has some more shortcomings).

The attached patch switches to the older versions of the methods without loss of functionality. The limit of 2GB/2 Million Chars max size seems not to be a practical problem, considering that there are other more limiting factors.
Comment 1 Jaroslav Havlin 2012-05-31 09:47:57 UTC
http://hg.netbeans.org/core-main/rev/6daa738e2844
Applied. Good idea. Thank you.
Comment 2 Quality Engineering 2012-06-01 05:25:53 UTC
Integrated into 'main-golden', will be available in build *201206010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6daa738e2844
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #213257: Use setBinaryStream and setCharacterStream with more compatibility