[Mono-bugs] [Bug 73046][Nor] Changed - gmcs doesn't support new enums (defined in 2.0) in (security) attributes
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 15 Mar 2005 16:09:42 -0500 (EST)
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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73046
--- shadow/73046 2005-02-28 03:32:12.000000000 -0500
+++ shadow/73046.tmp.19231 2005-03-15 16:09:42.000000000 -0500
@@ -10,14 +10,13 @@
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: sebastien@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Cc:
-Summary: mcs/gmcs doesn't support new SecurityAction defined in 2.0
+Summary: gmcs doesn't support new enums (defined in 2.0) in (security) attributes
Description of Problem:
mcs/gmcs don't support new SecurityAction defined in 2.0
Steps to reproduce the problem:
1. Try compiling this with gmcs
@@ -104,6 +103,38 @@
I think the '#ifdef NET_2_0' is inappropriate for code in 'gmcs'.
That code almost uses mscorlib from the 2.0 profile, and so we can use
many .Net2.0 APIs directly. However, we have to ensure such APIs are
available under NET_2_0_BOOTSTRAP in mscorlib.
+
+------- Additional Comments From sebastien@ximian.com 2005-03-15 16:09 -------
+The problem is more general than I originally thought. Trying to use
+new enums value from IsolatedStorageScope in security attributes
+results in errors.
+
+System.IO.IsolatedStorage/IsolatedStorageFile.cs(160) error CS0647:
+Error emitting 'IsolatedStorageFilePermission' attribute because
+'System.ArgumentException was thrown during attribute processing:
+Invalid enum 69
+Parameter name: IsolatedStorageContainment'
+System.IO.IsolatedStorage/IsolatedStorageFile.cs(170) error CS0647:
+Error emitting 'IsolatedStorageFilePermission' attribute because
+'System.ArgumentException was thrown during attribute processing:
+Invalid enum 64
+Parameter name: IsolatedStorageContainment'
+System.IO.IsolatedStorage/IsolatedStorageFile.cs(180) error CS0647:
+Error emitting 'IsolatedStorageFilePermission' attribute because
+'System.ArgumentException was thrown during attribute processing:
+Invalid enum 48
+Parameter name: IsolatedStorageContainment'
+System.IO.IsolatedStorage/IsolatedStorageFile.cs(191) error CS0647:
+Error emitting 'IsolatedStorageFilePermission' attribute because
+'System.ArgumentException was thrown during attribute processing:
+Invalid enum 37
+Parameter name: IsolatedStorageContainment'
+
+
+So forget my previous hack as it was only hidding the more complex
+problem.
+
+I'm c.c. Marek as he had been doing the security attribute stuff in mcs.