Results 1 to 4 of 4

Thread: slice2freezej problem

  1. #1
    iwagner is offline Registered User
    Name: Isaac Wagner
    Organization: Raytheon
    Project: Product Evaluation
    Join Date
    May 2011
    Posts
    12

    slice2freezej problem

    I'm having an issue with silce2freezej...I just can't get it to work. I'm not sure what I'm doing wrong. Here's a simple slice file I created called test.ice:

    Code:
    module test {
        struct MyStruct {
            int num;
            string s;
        };
    };
    Then I try to generate the Java class:
    Code:
     slice2freezej --dict MyMap,string,test.MyStruct test.ice
    I get the error "slice2freezej: error: `test.MyStruct' is not a valid type." What am I doing wrong?

    Thanks,

    Isaac

  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,445
    Hi Isaac,

    When referring to Slice types, you need to use the Slice syntax, not the Java syntax. Replace test.MyStruct with test::MyStruct and it should work.

    Regards,
    Mark

  3. #3
    iwagner is offline Registered User
    Name: Isaac Wagner
    Organization: Raytheon
    Project: Product Evaluation
    Join Date
    May 2011
    Posts
    12
    Ah, thanks. That works. FYI, section 39.6.3 in the manual is wrong then. I was following that example, which uses the Java notation.

  4. #4
    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,445
    Thanks, I've fixed this in the 3.4.2 manual.

    Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. slice2freezej --index bug
    By aalberg in forum Bug Reports
    Replies: 1
    Last Post: 02-18-2004, 11:01 AM
  2. Patch for 1.2.0 slice2freezej
    By bernard in forum Patches
    Replies: 0
    Last Post: 02-18-2004, 10:59 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
  •