mail-archives/mono-bugs/2008-September/080168.html

102 строки
4.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20430804%5D%20Static%20readonly%20field%20optimization%20doesn%27%0A%20t%20account%20for%20changes%20via%20reflection&In-Reply-To=bug-430804-28286%40https.bugzilla.novell.com/">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="080167.html">
<LINK REL="Next" HREF="080190.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20430804%5D%20Static%20readonly%20field%20optimization%20doesn%27%0A%20t%20account%20for%20changes%20via%20reflection&In-Reply-To=bug-430804-28286%40https.bugzilla.novell.com/"
TITLE="[Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection">bugzilla_noreply at novell.com
</A><BR>
<I>Tue Sep 30 11:30:46 EDT 2008</I>
<P><UL>
<LI>Previous message: <A HREF="080167.html">[Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection
</A></li>
<LI>Next message: <A HREF="080190.html">[Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#80168">[ date ]</a>
<a href="thread.html#80168">[ thread ]</a>
<a href="subject.html#80168">[ subject ]</a>
<a href="author.html#80168">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=430804">https://bugzilla.novell.com/show_bug.cgi?id=430804</A>
User <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lupus at novell.com</A> added comment
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=430804#c3">https://bugzilla.novell.com/show_bug.cgi?id=430804#c3</A>
Paolo Molaro &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lupus at novell.com</A>&gt; changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Paolo Molaro &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lupus at novell.com</A>&gt; 2008-09-30 09:30:46 MDT ---
fi.SetValue(null, 1) is not ignored as the output of the test shows.
This is not a bug: readonly fields can be updated only in the ctor/cctor: if
you try to work around this you will have to use the workaround also when you
read the value.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="080167.html">[Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection
</A></li>
<LI>Next message: <A HREF="080190.html">[Mono-bugs] [Bug 430804] Static readonly field optimization doesn' t account for changes via reflection
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#80168">[ date ]</a>
<a href="thread.html#80168">[ thread ]</a>
<a href="subject.html#80168">[ subject ]</a>
<a href="author.html#80168">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>