Home Bug Reports

CS: compiler warning

DeepDiverDeepDiver Member Thomas MuellerOrganization: Freelance Software DeveloperProject: Project depend on Customers ✭✭✭
hi guys,

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

slice:
exception SomeException
{
	string		Message;
};

csc warning:
warning CS0108: keyword 'new' neccessary in 'SomeException'


thx tom

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    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.
  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Actually, the fix was trivial -- I've posted a patch here: http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=1116.

    Cheers,

    Michi.
Sign In or Register to comment.