Results 1 to 1 of 1

Thread: Generic version of Java evictor servant locator

  1. #1
    blair is offline Registered User
    Name: Blair Zajac
    Organization: Sony Pictures Imageworks
    Project: VnP
    Join Date
    Mar 2007
    Posts
    34

    Generic version of Java evictor servant locator

    There was an unchecked cast warning in the code in IceJ-3.2.0-java5/demo/book/evictor so I decided to convert the code to use Java generics.

    Please find attached the two files. It would be nice to include this in the Ice distribution, along with the raw type version, say in two different directories, so people can decide which one they want.

    BTW, the warning I got was:

    Code:
    EvictorBase.java:70: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
        [javac]             _map.put(c.id, ec.entry);
    Regards,
    Blair
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to pass value into servant locator instance?
    By fabware in forum Help Center
    Replies: 4
    Last Post: 11-09-2009, 08:50 AM
  2. Java servant locator documentation missing code
    By blair in forum Bug Reports
    Replies: 1
    Last Post: 07-01-2007, 06:22 PM
  3. Servant Locator implementation
    By mwilson in forum Help Center
    Replies: 13
    Last Post: 12-04-2006, 11:29 AM
  4. Evictor Recreates Servant Unnecessarily?
    By acbell in forum Help Center
    Replies: 2
    Last Post: 04-07-2006, 09:59 AM
  5. a problem about servant locator
    By rwxybh in forum Help Center
    Replies: 14
    Last Post: 01-01-2006, 05:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •