facebook

Hibernate and Java 5 problem?

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #233429 Reply

    Chris Parsons
    Participant

    I am starting to look at Hibernate, and have created a new (web) project and added Hibernate to it – but am getting warnings about ‘type safety’ that look to be related to the latest release of Java?

    
    Type safety: The method set(Object) belongs to the raw type ThreadLocal. 
    
    References to generic type ThreadLocal<T> should be parameterized
    
    SessionFactory.java    
    
    Service Directory/src/uk/gov/torbay/sd    line 57    21 July 2005 17:12:26
    

    This is in the automatically generated code, is this expected behaviour?

    Thanks

    Chris Parsons

    #233432 Reply

    support-michael
    Keymaster

    I believe the warning is benign but will research further. Definitely Java5 want’s ThreadLocal get/set access to be parameterized and the SessionFactory only gen’s Java 1.4- compatible code. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ThreadLocal.html

    I have asked dev team to look at this.

    Michael

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate and Java 5 problem?

You must be logged in to post in the forum log in