Results 1 to 3 of 3

Thread: CS: compiler warning

  1. #1
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105

    CS: compiler warning

    hi guys,

    this is just a small warning genereated with csc.
    Just to let you know.

    slice:

    Code:
    exception SomeException
    {
    	string		Message;
    };
    csc warning:
    Code:
    warning CS0108: keyword 'new' neccessary in 'SomeException'

    thx tom

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Thanks for reporting this! The member clashes with the "Message" property that is inherited from System.Exception. The Slice compiler should map that member to _Ice_Message instead of using it unchanged. I'll fix the compiler to do this for the next release. In the mean time, I'm afraid you'll have to call the member something else. ("message" would work, for example.)

    Cheers,

    Michi.

  3. #3
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Actually, the fix was trivial -- I've posted a patch here: http://www.zeroc.com/vbulletin/showt...&threadid=1116.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using clr:property with cs:attribute
    By JVerwey in forum Help Center
    Replies: 2
    Last Post: 01-23-2009, 03:42 PM
  2. IceSL 0.3.2: ArgumentException in IceConnection.cs
    By kwaclaw in forum Bug Reports
    Replies: 0
    Last Post: 10-20-2008, 06:41 PM
  3. perhaps a bug in pather.cs
    By OrNot in forum Bug Reports
    Replies: 7
    Last Post: 03-14-2006, 01:43 AM
  4. perhaps a mistake in IncomingAsync.cs
    By xiehua in forum Bug Reports
    Replies: 1
    Last Post: 02-04-2006, 11:32 AM
  5. C#: loadPlugin() in PluginManagerI.cs
    By kwaclaw in forum Bug Reports
    Replies: 3
    Last Post: 09-26-2005, 05:54 PM

Posting Permissions

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