[Mono-list] Some more class library compliance issues
Duncan Mak
duncan@ximian.com
12 Mar 2002 18:21:17 -0500
On Tue, 2002-03-12 at 12:08, Piers Haken wrote:
> Here's another list (attached to prevent line-breaks). This time of
> missing interfaces and mismatched base classes:
I fixed the files that I wrote.
> -- corlib.dll --
> WARNING: Base class mismatch on System.IO.EndOfStreamException, is: 'System.SystemException' [should be: 'System.IO.IOException']
> WARNING: Base class mismatch on System.IO.FileLoadException, is: 'System.SystemException' [should be: 'System.IO.IOException']
> WARNING: Base class mismatch on System.IO.FileNotFoundException, is: 'System.SystemException' [should be: 'System.IO.IOException']
> WARNING: Base class mismatch on System.IO.PathTooLongException, is: 'System.SystemException' [should be: 'System.IO.IOException']
These are fixed.
> WARNING: Base class mismatch on System.FieldAccessException, is: 'System.SystemException' [should be: 'System.MemberAccessException']
> WARNING: Base class mismatch on System.MethodAccessException, is: 'System.SystemException' [should be: 'System.MemberAccessException']
> WARNING: Base class mismatch on System.PlatformNotSupportedException, is: 'System.SystemException' [should be: 'System.NotSupportedException']
Fixed.
> WARNING: Base class mismatch on System.Security.Permissions.UIPermissionAttribute, is: 'System.Security.Permissions.IsolatedStoragePermissionAttribute' [should be: 'System.Security.Permissions.CodeAccessSecurityAttribute']
> WARNING: Base class mismatch on System.Security.Permissions.SiteIdentityPermissionAttribute, is: 'System.Security.Permissions.IsolatedStoragePermissionAttribute' [should be: 'System.Security.Permissions.CodeAccessSecurityAttribute']
> WARNING: Base class mismatch on System.Security.SecurityException, is: 'System.Exception' [should be: 'System.SystemException']
> WARNING: Base class mismatch on System.Resources.MissingManifestResourceException, is: 'System.Exception' [should be: 'System.SystemException']
Also fixed.
> -- System.Xml.dll --
> WARNING: Base class mismatch on System.Xml.XmlEntityReference, is: 'System.Object' [should be: 'System.Xml.XmlLinkedNode']
> WARNING: Missing interface on System.Xml.XmlEntityReference: 'System.ICloneable'
> WARNING: Missing interface on System.Xml.XmlEntityReference: 'System.Collections.IEnumerable'
> WARNING: Missing interface on System.Xml.XmlEntityReference: 'System.Xml.XPath.IXPathNavigable'
> WARNING: Base class mismatch on System.Xml.XmlSignificantWhitespace, is: 'System.Object' [should be: 'System.Xml.XmlCharacterData']
> WARNING: Missing interface on System.Xml.XmlSignificantWhitespace: 'System.ICloneable'
> WARNING: Missing interface on System.Xml.XmlSignificantWhitespace: 'System.Collections.IEnumerable'
> WARNING: Missing interface on System.Xml.XmlSignificantWhitespace: 'System.Xml.XPath.IXPathNavigable'
> WARNING: Base class mismatch on System.Xml.XmlWhitespace, is: 'System.Object' [should be: 'System.Xml.XmlCharacterData']
> WARNING: Missing interface on System.Xml.XmlWhitespace: 'System.ICloneable'
> WARNING: Missing interface on System.Xml.XmlWhitespace: 'System.Collections.IEnumerable'
> WARNING: Missing interface on System.Xml.XmlWhitespace: 'System.Xml.XPath.IXPathNavigable'
I will look into these later.
Thanks!
Duncan.