Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-07-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
Issue with Icecs 3.3.0

Hello,

It seems that Dictionaries are not well generated with ice 3.3.0.

See what I got :

Code:
public static _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> read(IceInternal.BasicStream is__)
        {
            int sz__ = is__.readSize();
            _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> r__ = new _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress>();
            for(int i__ = 0; i__ < sz__; ++i__)
            {
                castor.UnderlyingCrossCorrelationKey k__;
                v__ = new castor.UnderlyingCrossCorrelationKey();
                k__.read__(is__);
                is__.readObject(new Patcher__("::castor::CorrelationStress", r__, k__));
            }
            return r__;
        }
"v__" is not declared and I have the same behaviour with all my dictionaries. I thik "k__" should replace it.

See another example :

Code:
public static _System.Collections.Generic.Dictionary<castor.CrossKey, double> read(IceInternal.BasicStream is__)
        {
            int sz__ = is__.readSize();
            _System.Collections.Generic.Dictionary<castor.CrossKey, double> r__ = new _System.Collections.Generic.Dictionary<castor.CrossKey, double>();
            for(int i__ = 0; i__ < sz__; ++i__)
            {
                castor.CrossKey k__;
                v__ = new castor.CrossKey();
                k__.read__(is__);
                double v__;
                v__ = is__.readDouble();
                r__[k__] = v__;
            }
            return r__;
        }
This time, another variable "v__" is declared and used after...
Reply With Quote
  #2 (permalink)  
Old 08-07-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 209
Hi,

Could you post the slice that was used to generate these functions?

Dwayne
Reply With Quote
  #3 (permalink)  
Old 08-07-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
Here's an example :

Code:
module Test
{
	
	struct Key
    {
        long Key1;
        long Key2;
    };
    
    dictionary<Key, double> Dict;

}; // module Test
It gives :

Code:
public static _System.Collections.Generic.Dictionary<Test.Key, double> read(IceInternal.BasicStream is__)
        {
            int sz__ = is__.readSize();
            _System.Collections.Generic.Dictionary<Test.Key, double> r__ = new _System.Collections.Generic.Dictionary<Test.Key, double>();
            for(int i__ = 0; i__ < sz__; ++i__)
            {
                Test.Key k__;
                v__ = new Test.Key();
                k__.read__(is__);
                double v__;
                v__ = is__.readDouble();
                r__[k__] = v__;
            }
            return r__;
        }
Reply With Quote
  #4 (permalink)  
Old 08-07-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 209
I have posted a source patch for slice2cs here. Thanks for the bug report.

Dwayne
Reply With Quote
  #5 (permalink)  
Old 08-07-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
Ok thank you !
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
icecs.dll and Mono kwaclaw Comments 1 11-15-2007 08:28 PM
ICECS error in in Windows XP Sp2 lifejoy Help Center 9 08-24-2006 03:53 AM
Build issue with ICECS 3.1.0 lkw Bug Reports 2 07-18-2006 11:19 PM
a misstake for IceCS-2.0.0 vs.net2003 solution? lkw Bug Reports 3 01-04-2005 07:45 PM
Question about the IceCS generate.exe damingyipai Help Center 3 08-12-2004 10:18 PM


All times are GMT -4. The time now is 08:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.