[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2412) Hibernate 3 cannot be compiled under JDK 6

David Driscoll (JIRA) noreply at atlassian.com
Mon Aug 17 21:02:15 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Driscoll updated HHH-2412:
--------------------------------

    Attachment: patch_HH2412_Blob_Interface_Types.txt
                patch_HH2412_ResultSetWrapper.txt

I also ran into this issue when trying to resolve HHH-3579.
Since the 20 or so new methods are required by java.sql.ResultSet are new, for now
generated them as stubs. 

The classes BlobImpl, ClobImpl, SerializableBlob, SerializableClob also have 2 new methods that 
needed to be implemented since java.sql.Blob and java.sql.Clob in Java 1.5 were updated. For now these methods
generated them as stubs. 

Legacy code won't call these methods since they didn't yet exist and current code base
needs them implemented in order to compile.


> Hibernate 3 cannot be compiled under JDK 6
> ------------------------------------------
>
>                 Key: HHH-2412
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2412
>             Project: Hibernate Core
>          Issue Type: Task
>          Components: core
>    Affects Versions: 3.2.1, 3.2.2
>         Environment: windows xp, JDK 6
>            Reporter: Ahmet A. Akin
>            Assignee: Steve Ebersole
>             Fix For: 3.6
>
>         Attachments: patch_HH2412_Blob_Interface_Types.txt, patch_HH2412_ResultSetWrapper.txt
>
>
> Hibernate code cannot be compiled under JDK 6. Problems and possible solutions:
> 1- org.hibernate.jdbc.ResultSetWrapper implements ResultSet. But in Java 6, there are big changes in Resultset interface, and maybe 20+ more methods needs to be implemented in the ResultSetWrapper class. i would suggest eliminating this wrapper class once and for all, because it is only used in one method (in ColumnNameCache, getIndexForColumnName method) and i dont think there is a justification for using that wrapper class.
> 2-  org.hibernate.lob.SerializableBlob needs to implement new Blob interface methods:
>     public void free() throws SQLException;
>     public InputStream getBinaryStream(long pos, long length) throws SQLException 
> But, if this class is publicly accesible or used by API's back compatibility issues needs to be checked.
> 3- Same as number 2, org.hibernate.lob.BlobImpl class needs to implement new Blob methods.
> 4- org.hibernate.lob.SerializableClob class needs to implent new Clob methods.
> 5- org.hibernate.lob.ClobImpl , same as 4.
> In fact, Java 6 has a lot of JDBC improvements, maybe a java6 special extra package can be created., but that is a whole different issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list