Results 1 to 3 of 3

Thread: Java 5.0 code generation for slice2java

  1. #1
    vsonnathi is offline Registered User
    Name: Venkat Ramana
    Organization: Amazon.com
    Project: Prototype
    Join Date
    May 2004
    Posts
    39

    Question Java 5.0 code generation for slice2java

    Hi,

    Is there a plan for enhancing slice2java to generate JAva 5.0 code? Especially using generics for Dictionary mapping.

    Thanks,
    --Venkat.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi Venkat,

    We don't currently allow metadata on dictionaries, but you can already specify generic types for sequences. For example:
    Code:
    ["java:type:java.util.ArrayList<int>"] sequence<int> IntSeq;
    The generated code compiles just fine with JDK 1.5.0.

    We'll look into adding metadata support for dictionaries.

    Take care,
    - Mark

  3. #3
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    I'm resurrecting this old thread to announce that metadata is fully supported for dictionaries in Java as of Ice 3.0, and you can use it with generic types. For example:
    Code:
    ["java:type:java.util.TreeMap<Integer, String>"]
    dictionary<int, string> IntStringMap;
    See the manual for more information on using metadata in Slice.

    Take care,
    - Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-20-2008, 08:49 AM
  2. slice2sl 0.3.0 - code generation for dispatch__
    By kwaclaw in forum Bug Reports
    Replies: 3
    Last Post: 09-26-2008, 09:54 AM
  3. slice2sl 0.3.0 - amd code generation
    By kwaclaw in forum Bug Reports
    Replies: 5
    Last Post: 09-23-2008, 01:00 PM
  4. Slice2Java code generation
    By JShah in forum Comments
    Replies: 1
    Last Post: 01-18-2008, 05:22 PM
  5. C# code generation issue
    By DeepDiver in forum Bug Reports
    Replies: 3
    Last Post: 09-01-2005, 05:54 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
  •