Bug 196608 Compile error when i switch jdk from 1.5 to 1.6
When i switch jdk from 1.5 to 1.6, there are 2 compile errors in plugin: org.eclipse.birt.report.data.oda.jdbc here is the error message: - The type SqlBlobUtil.BlobHelper must implement the inherited abstract method Blob.free() - The type SqlBlobUtil.BlobHelper must implement the inherited abstract method Blob.getBinaryStream(long, long) One more thing, the jdk version is 1.6.0_02. Thanks.
data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/SqlBlobUtil.java
isInit = true;
		}
		
		/*
		 * @see java.sql.Blob#length()
		 */
		public long length( ) throws SQLException
		{
			init( );
			return this.blobLength;
		}
		/*
		 * @see java.sql.Blob#truncate(long)
		 */
		public void truncate( long len ) throws SQLException
		{
			throw new SQLException( "Unsupported in this database" );
		}
		/*
		 * @see java.sql.Blob#getBytes(long, int)
		 */
		public byte[] getBytes( long pos, int length ) throws SQLException
		{
			init( );
			
			int destPos = (int) ( ( pos - 1 ) + length );
			if ( destPos > this.blobLength ) 
			{
				throw new SQLException( "pos or length is not valid" );
			}