mail-archives/mono-bugs/2003-July/006170.html

136 строки
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 45889][Cri] New - MCS allows use of internal attributes from other assemblies
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="006169.html">
<LINK REL="Next" HREF="006171.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 45889][Cri] New - MCS allows use of internal attributes from other assemblies
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 45889][Cri] New - MCS allows use of internal attributes from other assemblies">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Sun, 6 Jul 2003 13:43:54 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006169.html">[Mono-bugs] [Bug 45880][Maj] Changed - XmlTextReader on network streams
</A></li>
<LI> Next message: <A HREF="006171.html">[Mono-bugs] [Bug 45897][Wis] New - Failed to load function when call P/Invoke
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6170">[ date ]</a>
<a href="thread.html#6170">[ thread ]</a>
<a href="subject.html#6170">[ subject ]</a>
<a href="author.html#6170">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:bmaurer@users.sf.net.">bmaurer@users.sf.net.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=45889">http://bugzilla.ximian.com/show_bug.cgi?id=45889</A>
--- shadow/45889 Sun Jul 6 13:43:54 2003
+++ shadow/45889.tmp.2329 Sun Jul 6 13:43:54 2003
@@ -0,0 +1,72 @@
+Bug#: 45889
+Product: Mono/MCS
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: XD2. Mono: cvs
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: Misc
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:bmaurer@users.sf.net">bmaurer@users.sf.net</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS allows use of internal attributes from other assemblies
+
+Description of Problem:
+MCS allows internal attributes in other assemblies to be compiled.
+
+Steps to reproduce the problem:
+using System;
+
+namespace myNs
+{
+ public class T
+ {
+ public static void Main ()
+ {
+ UnfinishedMethod ();
+ }
+
+ [MonoTODO (&quot;not done&quot;)]
+ public static void UnfinishedMethod ()
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+Note, that the MonoTODO attribute is defined as following inside our corlib:
+
+internal class MonoTODOAttribute : Attribute
+{
+// ...
+}
+
+Actual Results:
+Program throws NotImplemented exception
+
+Expected Results:
+Compile time error
+
+
+How often does this happen?
+Always.
+
+
+Additional Information:
+This is preveting System.Xml from compiling, so i am marking critical. (in
+System.Xml, there is an attribute MonoTODO in System.Xml, and it tells that
+there is a conflict, when there is not one).
+
+monodis shows the follwing il code from the assembly:
+.custom instance void class [corlib]System.MonoTODOAttribute::.ctor(stri
+ng) = (01 00 08 6E 6F 74 20 64 6F 6E 65 00 00 ) // ...not done..
+
+So it is being compiled.
+
+Also, is this a runtime bug? Shouldn't the runtime throw some sort of error
+as we are using a type that should not be accessable?
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006169.html">[Mono-bugs] [Bug 45880][Maj] Changed - XmlTextReader on network streams
</A></li>
<LI> Next message: <A HREF="006171.html">[Mono-bugs] [Bug 45897][Wis] New - Failed to load function when call P/Invoke
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6170">[ date ]</a>
<a href="thread.html#6170">[ thread ]</a>
<a href="subject.html#6170">[ subject ]</a>
<a href="author.html#6170">[ author ]</a>
</LI>
</UL>
</body></html>