[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3272) using of Integer.valueOf(int), which is not available in JDK 1.4

Diego Plentz (JIRA) noreply at atlassian.com
Sat May 10 19:01:33 EDT 2008


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

Diego Plentz resolved HHH-3272.
-------------------------------

         Assignee: Diego Plentz
       Resolution: Fixed
    Fix Version/s: 3.3.0.CR2

Fixed. Strange that Eclipse doesn't show an error even if the compliance level is JDK 1.4. I looked at all 3.3 source code and this is the only place that this method is used.

> using of Integer.valueOf(int), which is not available in JDK 1.4
> ----------------------------------------------------------------
>
>                 Key: HHH-3272
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3272
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.3.0.CR1
>         Environment: Windows XP SP2, Tomcat 5.5.26, JDK 1.4.2_17, Spring 2.5.4, Hibernate 3.3.0.CR1
>            Reporter: Gary Ip
>            Assignee: Diego Plentz
>             Fix For: 3.3.0.CR2
>
>
> In class org.hibernate.jdbc.util.BasicFormatterImpl$FormatProcess line: 271:
> 		private void select() {
> 			out();
> 			indent++;
> 			newline();
> 			parenCounts.addLast( Integer.valueOf( parensSinceSelect ) );
> 			afterByOrFromOrSelects.addLast( Boolean.valueOf( afterByOrSetOrFromOrSelect ) );
> 			parensSinceSelect = 0;
> 			afterByOrSetOrFromOrSelect = true;
> 		}
> parensSinceSelect is a int type, while in Integer.valueOf(int) only available since JDK 1.5

-- 
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