Compare commits

...
1084 Commits
Author SHA1 Message Date
nobody c0ce58ee90 This commit was manufactured by cvs2svn to create tag 'MCS_1_0_4'.
svn path=/tags/MCS_1_0_4/mcs/; revision=35462
2004-10-29 15:00:19 +00:00
Gonzalo Paniagua Javier 616aa26986 from HEAD
svn path=/branches/mono-1-0/mcs/; revision=35425
2004-10-29 04:21:46 +00:00
Sanja Gupta 545ce9502d ChangeLog: Updated.
SmtpClient.cs: Backported fix for bug 68829.

svn path=/branches/mono-1-0/mcs/; revision=35387
2004-10-28 05:16:57 +00:00
Gonzalo Paniagua Javier bab24d1ce7 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't fail if the request has already been sent
	when accessing ContentType setter. Fixes bug #68848.

svn path=/branches/mono-1-0/mcs/; revision=35367
2004-10-27 20:07:52 +00:00
Sebastien Pouliot 1b3f2c7dbd 2004-10-27 Sebastien Pouliot <[email protected]>
* signcode.cs: -i (url) and -n (description) parameters were inverted.

svn path=/branches/mono-1-0/mcs/; revision=35360
2004-10-27 19:09:14 +00:00
Gonzalo Paniagua Javier f5a8f39bed 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: when compiling a single .cs file, add the file
	itself to dependencies. Fixes bug #68788.

svn path=/branches/mono-1-0/mcs/; revision=35359
2004-10-27 19:07:35 +00:00
Gonzalo Paniagua Javier 44de1fc242 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: backported fixes related to SetupInformation in HEAD.
	Closes bug #68859.
	* AppDomainSetup.cs: added copy constructor.

svn path=/branches/mono-1-0/mcs/; revision=35355
2004-10-27 17:42:23 +00:00
Sebastien Pouliot e544a1caf9 2004-10-27 Sebastien Pouliot <[email protected]>
* AuthenticodeFormatter.cs: Fix NullReferenceException from signcode
	tool when no URL is specified on the command line.

svn path=/branches/mono-1-0/mcs/; revision=35354
2004-10-27 16:47:09 +00:00
Gonzalo Paniagua Javier 6a4e763a67 2004-10-26 Gonzalo Paniagua Javier <[email protected]>
* System.Design.dll.sources: added files in
	System.Web.UI.Design.WebControls.

svn path=/branches/mono-1-0/mcs/; revision=35347
2004-10-27 01:04:24 +00:00
Lluis Sanchez 59aa51ce13 * ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
	  code that reads the url from the config file, instead of doing it at
	  the moment of generation. This fixes bug #68795.

svn path=/branches/mono-1-0/mcs/; revision=35334
2004-10-26 15:40:35 +00:00
Zoltan Varga 3747fde416 2004-10-26 Zoltan Varga <[email protected]>
* mono-codeman.c: Fall back to malloc if MAP_ANON is not defined.

svn path=/branches/mono-1-0/mono/; revision=35328
2004-10-26 09:54:45 +00:00
Fawad Halim 3bab242b23 System.Environment.ExpandEnvironmentVariables: If an Environment variable value isn't found, leave the trailing % of the reference for further matches.
Add text between end of current lookup window and next % match if we just got a match, or add all text to the end if there are no further % matches.
This fixes bug #64995.

svn path=/branches/mono-1-0/mcs/; revision=35319
2004-10-26 02:19:26 +00:00
Gonzalo Paniagua Javier 4746610d93 2004-10-25 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs:
	(WantMore): we're not done until we get a 0 chunk size and the trailer.
	The 0 can be expressed as more than one character too (ie, 000000).

	* HttpWebRequest.cs: new argument in SetResponseError.
	* WebConnection.cs: added argument to HandleError as a hint for
	debugging.
	(Connect): make the chunked stream be in the expected state when
	reusing.

	* WebConnectionStream.cs: removed unused method (ResetWriteBuffer).

svn path=/branches/mono-1-0/mcs/; revision=35313
2004-10-25 21:27:59 +00:00
Zoltan Varga 7100587187 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=35309
2004-10-25 20:11:49 +00:00
Zoltan Varga d1b7ee7816 2004-10-25 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type_full): Fix parsing of custom
	modifiers.

svn path=/branches/mono-1-0/mono/; revision=35307
2004-10-25 18:05:07 +00:00
Sebastien Pouliot 285e851d2f 2004-10-25 Sebastien Pouliot <[email protected]>
* BigInteger.cs: Fix issue #68452 when Randomize was being called on a
	0 BigInteger (i.e. BitCount == 0).

svn path=/branches/mono-1-0/mcs/; revision=35306
2004-10-25 16:34:27 +00:00
Zoltan Varga 2372f9b33c 2004-10-25 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Fix
	argument of mono_get_exception_file_not_found.

	* assembly.c (mono_assembly_names_equal): Compare the cultures as well,
	so multiple satellite assemblies for the same name can be loaded.
	Fixes #68259.

	* appdomain.c (mono_domain_assembly_preload): Actually return the loaded assembly,
	not NULL.

svn path=/branches/mono-1-0/mono/; revision=35305
2004-10-25 14:53:50 +00:00
Zoltan Varga cabb02a5af 2004-10-25 Zoltan Varga <[email protected]>
* icall.c (ves_icall_type_is_subtype_of): Fix this for byref types.
	(ves_icall_type_is_assignable_from): Ditto. Fixes #68582.

svn path=/branches/mono-1-0/mono/; revision=35300
2004-10-25 13:51:10 +00:00
Gonzalo Paniagua Javier 470ef6e7b0 2004-10-25 Gonzalo Paniagua Javier <[email protected]>
* ListItemCollection.cs: fixed bug when indexing changed elements in
	LoadViewState. Patch from Alois B��la��ka.

svn path=/branches/mono-1-0/mcs/; revision=35298
2004-10-25 13:02:46 +00:00
Zoltan Varga 214dbb1353 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=35293
2004-10-25 11:15:08 +00:00
Joerg Rosenkranz 35a5b8b671 2004-10-21 Joerg Rosenkranz <[email protected]>
* regex.cs: Fixed a bug introduced with the last patch which
      prevented any replacements when a postive count is given.
      This also happens in all overloads without count parameter.

svn path=/branches/mono-1-0/mcs/; revision=35237
2004-10-22 05:34:19 +00:00
Atsushi Eno 723c07bbc1 2004-10-19 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : When namespace is an empty string,
	  XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
	  such case.

svn path=/branches/mono-1-0/mcs/; revision=35147
2004-10-19 22:13:24 +00:00
Lluis Sanchez 6ab6acf3c6 * MarshalByRefObject.cs: Field _identity is not serializable.
This fixes bug #68567.

svn path=/branches/mono-1-0/mcs/; revision=35145
2004-10-19 21:59:06 +00:00
Gonzalo Paniagua Javier 47cb910839 2004-10-18 Gonzalo Paniagua Javier <[email protected]>
* System.Text.RegularExpressions/regex.cs: in Replace, when count is
	negative, replacement continues to the end of the string.

	* Test/System.Text.RegularExpressions/RegexBugs.cs: added test for this
	fix.

	Fixes bug #68398. Patch by Jon Larimer.

svn path=/branches/mono-1-0/mcs/; revision=35111
2004-10-18 22:14:50 +00:00
Atsushi Eno 089731f3fd 2004-10-18 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs :
	  Normalization check is also required for ReadText(). This fixes
	  bug #68449.

svn path=/branches/mono-1-0/mcs/; revision=35086
2004-10-18 15:37:21 +00:00
Atsushi Eno 92ca036733 2004-10-15 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
	  is regatded as invalid. This fixes bug #68410. (Error message was
	  also not correct.)

svn path=/branches/mono-1-0/mcs/; revision=35045
2004-10-15 22:04:38 +00:00
Atsushi Eno 8a9873f5a5 2004-10-15 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
	  is regatded as invalid. This fixes bug #68410. (Error message was
	  also not correct.)

svn path=/branches/mono-1-0/mcs/; revision=35046
2004-10-15 22:04:38 +00:00
Atsushi Eno 3a132aaa09 2004-10-15 Atsushi Enomoto <[email protected]>
* DataSet.cs : Also clear UnhandledAttributes ArrayList before
	  generating next attribute column schema. This fixes bug #68432.

svn path=/branches/mono-1-0/mcs/; revision=35044
2004-10-15 18:39:54 +00:00
Geoff Norton ea3de14477 * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
methods as their native size, fixed bug #57543, #57545.
        * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
        This saves a temporary register and mullw call down into 1 (minor perf
        increase for cases like sum = sum * 5;

svn path=/branches/mono-1-0/mono/; revision=35040
2004-10-15 15:50:11 +00:00
Zoltan Varga 51f5800c2d Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=35015
2004-10-14 23:21:44 +00:00
Joe Shaw e415b219de 2004-10-14 Joe Shaw <[email protected]>
* man/mono.1: Fix the syntax of the M: trace syntax

svn path=/branches/mono-1-0/mono/; revision=35011
2004-10-14 19:56:00 +00:00
Miguel de Icaza 4494256ec0 2004-10-14 Miguel de Icaza <[email protected]>
* TextInfo.cs: Fix ToTitleCase to do title case for each word on
	the string per the spec.

svn path=/branches/mono-1-0/mcs/; revision=35009
2004-10-14 19:50:36 +00:00
Atsushi Eno c07a622943 2004-10-14 Atsushi Enomoto <[email protected]>
* Iterator.cs :
	  - Added WrapperIterator to return BaseIterator in such case that
	    variable reference is resolved to XPathNodeIterator. This fixes
	    bug #68267.
	  - Path ".." is reverse axis (actually no effect).
	  - Fixed DescendantIterator.Clone() that missed "_finished" field.
	* Expression.cs :
	  In ExprVariable.Evaluate(), use WrapperIterator() for custom
	  XPathNodeIterator.

svn path=/branches/mono-1-0/mcs/; revision=34997
2004-10-14 15:12:57 +00:00
Dick Porter da5a46c004 2004-10-14 Dick Porter <[email protected]>
* SocketTest.cs: Test the blocking status of accepted sockets

svn path=/branches/mono-1-0/mcs/; revision=34990
2004-10-14 13:05:42 +00:00
Dick Porter 348cd083ec 2004-10-14 Dick Porter <[email protected]>
* Socket.cs (Sockets ): Set Accept()ed socket blocking status to
	be the same as the listening socket.  This follows MS behaviour.

svn path=/branches/mono-1-0/mcs/; revision=34988
2004-10-14 12:13:55 +00:00
Dick Porter e0c2a2e0e6 2004-10-14 Dick Porter <[email protected]>
* sockets.c (_wapi_accept): Revert the previous change.  We now
	set the accepted socket to have the same blocking status as the
	listening socket in managed code.  This follows MS behaviour.

svn path=/branches/mono-1-0/mono/; revision=34986
2004-10-14 12:13:09 +00:00
Dick Porter 53c44fa7df 2004-10-14 Dick Porter <[email protected]>
* sockets.c (_wapi_accept): On Darwin, make sure a newly
	accept()ed socket is blocking.  Fixes bug 67355, patch by
	[email protected].

svn path=/branches/mono-1-0/mono/; revision=34981
2004-10-14 09:00:58 +00:00
Atsushi Eno 12b04f647a 2004-10-13 Atsushi Enomoto <[email protected]>
* DataSet.cs : clear UnhandledAttributes ArrayList before generating
	  next element column schema. This fixes bug #68256.

svn path=/branches/mono-1-0/mcs/; revision=34960
2004-10-13 21:17:40 +00:00
Paolo Molaro 07e1b9c1ee Wed Oct 13 15:12:17 CEST 2004 Paolo Molaro <[email protected]>
* System.Resources/ResXResourceReader.cs: patch by
	 [email protected] (joel) to handle CDATA sections.

svn path=/branches/mono-1-0/mcs/; revision=34950
2004-10-13 11:56:40 +00:00
Atsushi Eno 5d5253742b wrote incorrect filename :(
svn path=/branches/mono-1-0/mcs/; revision=34914
2004-10-12 14:55:02 +00:00
Atsushi Eno d3cab14bd8 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSetTest.cs : now xs:schema contains xmlns="".

svn path=/branches/mono-1-0/mcs/; revision=34913
2004-10-12 14:54:18 +00:00
Atsushi Eno 05296f4cd9 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs : now xs:schema contains xmlns="".
	  This fixes bug #68008.

svn path=/branches/mono-1-0/mcs/; revision=34912
2004-10-12 14:53:00 +00:00
Atsushi Eno 665a15e27a 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs : DBNull attribute column should not be written as
	  empty attribute. This fixes bug #68007.

svn path=/branches/mono-1-0/mcs/; revision=34908
2004-10-12 13:27:34 +00:00
Atsushi Eno b1e6fbe143 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
	  DataColumn.ReadOnly was not handled. This fixes bug #68005.
	  Attribute defaultValue was not handled too.

svn path=/branches/mono-1-0/mcs/; revision=34906
2004-10-12 13:11:36 +00:00
Lluis Sanchez e3f65e1443 * Methods.cs: Use the service namespace as the base for the soap action.
This fixes bug #60379.

svn path=/branches/mono-1-0/mcs/; revision=34860
2004-10-11 09:15:56 +00:00
David Sheldon 5b33c10f15 2004-10-11 David Sheldon <[email protected]>
* HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.

svn path=/branches/mono-1-0/mcs/; revision=34859
2004-10-11 07:19:39 +00:00
Zoltan Varga dc367754b8 Merge from HEAD
svn path=/branches/mono-1-0/mono/; revision=34846
2004-10-10 16:27:53 +00:00
Gonzalo Paniagua Javier f85f5d54fc 2004-10-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: don't cast to Page is the handler it's
	not a page.

	* System.Web.Configuration/WebConfigurationSettings.cs: use
	CurrentExecutionFilePath instead of FilePath. Fixes bug #67982.

svn path=/branches/mono-1-0/mcs/; revision=34842
2004-10-10 13:37:01 +00:00
Miguel de Icaza 227a439658 1.0.3
svn path=/branches/mono-1-0/mono/; revision=34824
2004-10-08 18:04:19 +00:00
Zoltan Varga 1b368ec2c9 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=34823
2004-10-08 18:03:55 +00:00
Zoltan Varga cf6e3f73af 2004-10-08 Zoltan Varga <[email protected]>
* Convert.cs (ToType): Throw an exception when converting null to a
	valuetype. Fixes #67780.

svn path=/branches/mono-1-0/mcs/; revision=34813
2004-10-08 15:25:35 +00:00
Atsushi Eno 1013f7ad07 2004-10-08 Atsushi Enomoto <[email protected]>
* DataSet.cs : Yesterday's fix was different and broke the build :(

svn path=/branches/mono-1-0/mcs/; revision=34802
2004-10-08 11:35:14 +00:00
Atsushi Eno f784af0a89 2004-10-08 Atsushi Enomoto <[email protected]>
* DateTime.cs : Removed incorrectly injected HEAD fix.

svn path=/branches/mono-1-0/mcs/; revision=34794
2004-10-08 02:22:13 +00:00
Atsushi Eno 3f57ad30b6 2004-10-07 Atsushi Enomoto <[email protected]>
* DataSet.cs :
	  - When AllowDBNull is false on attribute DataColumn, its schema
	    should contain use="required". This fixes bug #66792.
	  - If MaxLength is set on attribute DataColumn, the mapped schema
	    type should contain maxLength facet. This fixes bug #66793.

svn path=/branches/mono-1-0/mcs/; revision=34793
2004-10-07 22:17:33 +00:00
Jackson Harper 3e535bd542 * culture-info-tables.h: regenerate file.
svn path=/branches/mono-1-0/mono/; revision=34790
2004-10-07 17:21:58 +00:00
Jackson Harper a7d64001e4 * pt.xml: We need a space after R$. Is there a better way to do
this? I should know...
	* pt_BR.xml: Fix currency format.

svn path=/branches/mono-1-0/mono/; revision=34786
2004-10-07 16:51:25 +00:00
nobody 7f449e7aff This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mono/; revision=34785
2004-10-07 16:51:25 +00:00
Atsushi Eno 0bfc11990a 2004-10-08 Atsushi Enomoto <[email protected]>
* DateTime.cs : When it it not exact parse, 'Z' is allowed as a suffix
	  of m/s/t/z. This fixes bug 66723.

svn path=/branches/mono-1-0/mcs/; revision=34781
2004-10-07 15:15:12 +00:00
Zoltan Varga 05e78aac87 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=34777
2004-10-07 13:12:29 +00:00
Jackson Harper 10fe51d67b * pt.xml: We need a space after R$. Is there a better way to do
this? I should know...
	* pt_BR.xml: Fix currency format.

svn path=/trunk/mono/; revision=34771
2004-10-07 03:51:07 +00:00
Gonzalo Paniagua Javier eb59dab15d 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: if the file is removed between reading the
	directory and filling the file info, catch the exception and ignore the
	file. Fixes bug #59482.

svn path=/branches/mono-1-0/mcs/; revision=34768
2004-10-07 00:46:54 +00:00
Gonzalo Paniagua Javier c995669093 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: if the file is removed between reading the
	directory and filling the file info, catch the exception and ignore the
	file. Fixes bug #59482.

svn path=/trunk/mcs/; revision=34767
2004-10-07 00:44:12 +00:00
Gonzalo Paniagua Javier f978d1c957 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
	pattern has no wildcards. Fixes bug #67447.

svn path=/branches/mono-1-0/mcs/; revision=34766
2004-10-07 00:30:03 +00:00
Gonzalo Paniagua Javier 0556ad0e07 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
	pattern has no wildcards. Fixes bug #67447.

svn path=/trunk/mcs/; revision=34765
2004-10-07 00:29:30 +00:00
John Luke 882f5bfa49 2004-10-05 John Luke <[email protected]>
* cs-parser.jay: add location to error CS0175

svn path=/trunk/mcs/; revision=34764
2004-10-06 17:25:26 +00:00
Zoltan Varga 44bfd4ea8d 2004-10-06 Zoltan Varga <[email protected]>
* TypeTest.cs: Add tests for GetInterfaces ().

svn path=/trunk/mcs/; revision=34762
2004-10-06 14:35:24 +00:00
Zoltan Varga 0b57ed8147 2004-10-06 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetInterfaces): Include interfaces
	implemented by other interfaces in the result. Fixes #65764.

svn path=/trunk/mono/; revision=34761
2004-10-06 14:33:09 +00:00
Sanja Gupta a1819f33c8 ChangeLog: Updated ChangeLog.
IButtonControl.cs: Corrected property name.

svn path=/trunk/mcs/; revision=34760
2004-10-06 12:57:24 +00:00
Jordi Mas i Hernandez b89b37c7e0 removes warnings from compilation
svn path=/trunk/mcs/; revision=34758
2004-10-06 09:59:05 +00:00
Paolo Molaro b67d64bf1b Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <[email protected]>
* inssel-ppc.brg: added a couple of speedup rules.

svn path=/trunk/mono/; revision=34757
2004-10-06 09:25:03 +00:00
Paolo Molaro 46773fcd43 Wed Oct 6 12:37:54 CEST 2004 Paolo Molaro <[email protected]>
* String.cs: make GetHashCode() managed.

svn path=/trunk/mcs/; revision=34756
2004-10-06 09:22:06 +00:00
Anirban Bhattacharjee 73975d58ce 2004-10-06 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Added support for Call keyword in invocation statement

svn path=/trunk/mcs/; revision=34755
2004-10-06 09:15:26 +00:00
Jordi Mas i Hernandez 17ebcc38dc insert line break
svn path=/trunk/mcs/; revision=34754
2004-10-06 08:43:37 +00:00
Zoltan Varga 7fc7f6f8e6 Merge from HEAD
svn path=/branches/mono-1-0/mcs/; revision=34753
2004-10-06 08:22:41 +00:00
Zoltan Varga 705efbacab 2004-10-06 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (GetTypes): Fix length of returned array. Fixes
	#65931.

svn path=/trunk/mcs/; revision=34752
2004-10-06 08:19:49 +00:00
Gonzalo Paniagua Javier 4ef99e858b 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: error code is 403 and the message different when
	trace is enabled but not for remote clients.

svn path=/branches/mono-1-0/mcs/; revision=34751
2004-10-06 05:47:21 +00:00
Gonzalo Paniagua Javier 2c0860c663 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: error code is 403 and the message different when
	trace is enabled but not for remote clients.

svn path=/trunk/mcs/; revision=34750
2004-10-06 05:46:02 +00:00
Gonzalo Paniagua Javier 1aed6001de 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
	changes when Transfer or Execute are used, not FilePath.

	* System.Web/HttpServerUtility.cs: moved form saving/restoring from
	Transfer to Execute, as it's needed there too. the query string is
	correctly set now. Fixes bug #67388.

	* System.Web/HttpContext.cs:
	* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
	instead of SetFilePath.

svn path=/branches/mono-1-0/mcs/; revision=34749
2004-10-06 04:50:46 +00:00
Gonzalo Paniagua Javier 6ed6c3f05f forgotten
svn path=/trunk/mcs/; revision=34748
2004-10-06 04:48:57 +00:00
Gonzalo Paniagua Javier 50e3e9fef4 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
	changes when Transfer or Execute are used, not FilePath.

	* System.Web/HttpServerUtility.cs: moved form saving/restoring from
	Transfer to Execute, as it's needed there too. the query string is
	correctly set now. Fixes bug #67388.

	* System.Web/HttpContext.cs:
	* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
	instead of SetFilePath.

svn path=/trunk/mcs/; revision=34747
2004-10-06 04:48:39 +00:00
César Natarén 9b713bba27 2004-10-06 Cesar Lopez Nataren <[email protected]>
* expression.cs: added support for function calls. Handle case of
	print where no args are supplied.

svn path=/trunk/mcs/; revision=34746
2004-10-06 04:34:01 +00:00
Umadevi S ffda989f3e 2004-10-06 Umadevi S <[email protected]>
* System.Data.dll.sources : Added ISqlNotificationReceiver, SqlNotifcationType,
                SqlNotificationInfo, SqlNotificationSource

svn path=/trunk/mcs/; revision=34745
2004-10-06 04:24:01 +00:00
Umadevi S 8de1969f14 2004-10-06 Umadevi S <[email protected]>
* ISqlNoticationReceiver.cs - changed namespace
        * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs

svn path=/trunk/mcs/; revision=34744
2004-10-06 04:20:14 +00:00
Atsushi Eno 55f818a438 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathSequence.cs, XQueryTokenizer.cs :
	  removed commented && unused code.
	* XQueryContext.cs, XQueryCliFunction.cs, XQueryFunction.cs,
	  XQueryFunctionCliImpl.cs :
	  Now that position() requires current sequence that is not managed by
	  XQueryContextManager (that is for FLWOR), it need to support
	  XPathSequence input as the current node information.

svn path=/trunk/mcs/; revision=34741
2004-10-06 00:35:57 +00:00
Zoltan Varga 096ce4191c 2004-10-06 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal):
	Handle unloadable modules without crashing.

	* image.c (load_modules): Revert the previous patch since modules must
	have a fixed index inside the array.

svn path=/trunk/mono/; revision=34737
2004-10-05 22:43:01 +00:00
César Natarén 12f3c5e8d4 2004-10-05 Cesar Lopez Nataren <[email protected]>
* ast.cs: added GetContainerFunction property.
	* Statement.cs: added class NotVoidReturnEventArgs and delegate
	NotVoidReturnEventHandler, throw an event in case we find a
	return, the enclosing function object takes care of changing the
	return type of the function.
	* FunctionDeclaration.cs, FunctionExpression.cs: take care of
	return's inside functions.

2004-09-22  Cesar Lopez Nataren  <[email protected]>

svn path=/trunk/mcs/; revision=34736
2004-10-05 22:36:30 +00:00
Zoltan Varga e6fd659155 2004-10-06 Zoltan Varga <[email protected]>
* image.c (load_modules): Don't include native modules in the modules
	array.

svn path=/trunk/mono/; revision=34735
2004-10-05 22:15:05 +00:00
Atsushi Eno 166ee63ee3 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : missing Init() definition for float and string;
	  latter one resulted in infinite loop in Init(object,XmlSchemaType).

svn path=/trunk/mcs/; revision=34733
2004-10-05 21:01:49 +00:00
Jackson Harper 7ff4988b08 Fix ctor
svn path=/trunk/mcs/; revision=34732
2004-10-05 18:23:54 +00:00
Gonzalo Paniagua Javier 19141d7309 removed Console
svn path=/branches/mono-1-0/mcs/; revision=34731
2004-10-05 18:13:53 +00:00
Atsushi Eno 51c45aa436 2004-10-05 Atsushi Enomoto <[email protected]>
* XQueryParser.jay, XQueryTokenizer.cs :
	  Added attribute value template support.
	* XPath2Expression.cs : Inside attribute value, expressions must not
	  serialize attributes as attribute node but should just pick value up.
	  e.g. attr="{foo/@bar}" and <elem>{foo/@bar}</elem> are different.

svn path=/trunk/mcs/; revision=34730
2004-10-05 17:47:08 +00:00
Zoltan Varga 4451cdeea0 2004-10-05 Zoltan Varga <[email protected]>
* Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
	to speed up rebuilds.

svn path=/trunk/mono/; revision=34729
2004-10-05 17:15:15 +00:00
Peter Dennis Bartok c9642ee2eb - Partial implementation by Benjamin Dasnois
svn path=/trunk/mcs/; revision=34728
2004-10-05 17:10:57 +00:00
John Luke 1f90c1aa12 2004-10-05 John Luke <[email protected]>
* Makefile: add *.mdb to clean target

svn path=/trunk/mcs/; revision=34727
2004-10-05 17:04:10 +00:00
Jackson Harper 527aed6ee9 Improve rendering of the radio button patch by John BouAntoun
svn path=/trunk/mcs/; revision=34726
2004-10-05 16:15:30 +00:00
Sebastien Pouliot 9baf8bc4c3 2004-10-05 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed bug where a change to a permission
	(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
	to clear existing entries.

svn path=/branches/mono-1-0/mcs/; revision=34725
2004-10-05 15:58:59 +00:00
Sebastien Pouliot 1eebc646d3 2004-10-05 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed bug where a change to a permission
	(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
	to clear existing entries.

svn path=/trunk/mcs/; revision=34724
2004-10-05 15:57:43 +00:00
Miguel de Icaza c3ea191f0e Improve test to handle constants of classes whose value is null
svn path=/trunk/mcs/; revision=34723
2004-10-05 14:32:51 +00:00
Sebastien Pouliot 59a7a67d5f 2004-10-05 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed InputBuffer to internal (was protected).

svn path=/branches/mono-1-0/mcs/; revision=34722
2004-10-05 14:19:03 +00:00
Sebastien Pouliot 5451ab0192 2004-10-05 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed InputBuffer to internal (was protected).

svn path=/trunk/mcs/; revision=34720
2004-10-05 14:16:44 +00:00
Atsushi Eno c10e9c5879 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : Actually all other kind of nodes than
	  Element and Root must be treated as "start node only" as well as
	  attributes and namespaces.

svn path=/trunk/mcs/; revision=34718
2004-10-05 13:48:02 +00:00
Atsushi Eno 85afdc362c 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathDocument2Editable.cs : for WriteAttributes(), use
	  CreateAttributesWriter() that creates attribute tree XmlWriter.
	* XPathNavigatorReader.cs : the reader was missing attributes when
	  it is created with an element node that has attriibutes.

svn path=/trunk/mcs/; revision=34717
2004-10-05 13:09:25 +00:00
Raja R Harinath 62f2bd39d9 New testcases for type-resolution.
svn path=/trunk/mcs/; revision=34716
2004-10-05 11:33:05 +00:00
Zoltan Varga fca6d5f5bc 2004-10-04 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (DefineType): Check for duplicate type names. Fixes
	#65988.

svn path=/trunk/mcs/; revision=34715
2004-10-05 11:30:45 +00:00
Zoltan Varga 1cb4a802a3 2004-10-05 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add tests for default values for parameters.

svn path=/trunk/mcs/; revision=34714
2004-10-05 11:29:59 +00:00
Zoltan Varga e7f6b686f6 2004-10-05 Zoltan Varga <[email protected]>
* reflection.h: Add param_defaults field.

	* reflection.c: Add support for parameter defaults in dynamic methods.
	Fixes #64595.

svn path=/trunk/mono/; revision=34713
2004-10-05 11:20:34 +00:00
Zoltan Varga 816550c96b 2004-10-05 Zoltan Varga <[email protected]>
* TypeTest.cs: Add test for empty namespaces.

svn path=/trunk/mcs/; revision=34712
2004-10-05 09:24:13 +00:00
Zoltan Varga 7f6414b598 2004-10-05 Zoltan Varga <[email protected]>
* icall.c (ves_icall_MonoType_get_Namespace): Return NULL instead of
	an empty string when a type has no namespace. Fixes #64230.

svn path=/trunk/mono/; revision=34711
2004-10-05 09:20:13 +00:00
Ravindra 2eb053f5ae - Removed a private method, Draw ().
- Fixed the ButtonDropDown event handling.
	- Fixed MouseMove event handling.

svn path=/trunk/mcs/; revision=34709
2004-10-05 09:07:07 +00:00
Ravindra c4d76288f0 - Added DrawListView method and ListViewDefaultSize property.
- Changed ControlPaint method calls to CPDrawXXX wherever possible.
	- Changed DOS style CRLF to Unix format (dos2unix).

svn path=/trunk/mcs/; revision=34708
2004-10-05 09:04:31 +00:00
Ravindra 731ab3fd05 - Added DrawListView method and ListViewDefaultSize property.
svn path=/trunk/mcs/; revision=34707
2004-10-05 09:03:55 +00:00
Ravindra 09e2f61b58 Added an internal member dd_pressed to handle clicks on DropDown arrow.
svn path=/trunk/mcs/; revision=34706
2004-10-05 08:42:20 +00:00
Anirban Bhattacharjee 53587521d4 2004-10-05 Anirban Bhattacharjee <[email protected]>
* Interaction.cs:
        * Strings.cs :
                Few important fixes

svn path=/branches/mono-1-0/mcs/; revision=34705
2004-10-05 07:59:17 +00:00
Jackson Harper e67bdc2854 Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
svn path=/trunk/mcs/; revision=34704
2004-10-05 04:56:12 +00:00
Jackson Harper b9005253e8 The control handles resizing the buffers now.
svn path=/trunk/mcs/; revision=34701
2004-10-05 03:20:55 +00:00
Jackson Harper d3c2032cd0 When resizing the buffers should be invalidated. This should be handled in Control not in derived classes.
svn path=/trunk/mcs/; revision=34700
2004-10-05 03:18:16 +00:00
Gonzalo Paniagua Javier 4066588651 2004-10-05 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
	* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
	SetInternal.

svn path=/branches/mono-1-0/mcs/; revision=34699
2004-10-05 01:54:16 +00:00
Gonzalo Paniagua Javier 3ca52666c9 2004-10-05 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
	* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
	SetInternal.

svn path=/trunk/mcs/; revision=34698
2004-10-05 01:53:40 +00:00
John Luke 075dbfc004 2004-10-04 John Luke <[email protected]>
* cs8205.cs: remove, same as cs1624
        * cs8206.cs: fix yield syntax, and add line number, now passes
        * cs8207.cs: remove, same as cs1623
        * cs8208.cs: remove, same as cs1625
        * cs8209.cs: remove, same as cs1631

svn path=/trunk/mcs/; revision=34695
2004-10-04 22:40:16 +00:00
Sebastien Pouliot e123b08a6a 2004-10-04 Sebastien Pouliot <[email protected]>
* dump.c: Added new "internal" security actions for non-CAS demands:
	NonCasDemand, NonCasLinkDemand and NonCasInheritance.
	* main.c: Added new "internal" security actions for non-CAS demands:
	noncasdemand, noncaslinkdemand and noncasinheritance.

svn path=/trunk/mono/; revision=34694
2004-10-04 22:22:47 +00:00
Sebastien Pouliot b73cc9a3bd 2004-10-04 Sebastien Pouliot <[email protected]>
* tabledefs.h: Added "internal" security actions to support non-CAS
	permissions NonCasDemand, NonCasLinkDemand and NonCasInheritance.
	Note: they do not seems to be used anymore in 2.0 (new metadata format)

svn path=/trunk/mono/; revision=34693
2004-10-04 22:21:53 +00:00
Atsushi Eno 931efe6671 2004-10-04 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : TypedValue could be implemented.
	* XPathEditableNavigator.cs : removed some MonoTODO since now there
	  are implementations.

svn path=/trunk/mcs/; revision=34692
2004-10-04 22:04:53 +00:00
Atsushi Eno 375e5aa0c7 2004-10-04 Atsushi Enomoto <[email protected]>
* XQueryParser.jay, XPath2Expression.cs, XPathSequence.cs :
	  two or more Filter expressions could be simply constructed as
	  nested FilterExpr objects.

svn path=/trunk/mcs/; revision=34691
2004-10-04 22:01:48 +00:00
Atsushi Eno a252366b96 2004-10-04 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
	  For attribute nodes, it should not use WriteSubtree() which does not
	  support attribute nodes.

svn path=/trunk/mcs/; revision=34690
2004-10-04 21:59:19 +00:00
Atsushi Eno 090ff35320 2004-10-04 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : It can reject attribute and namespace
	  nodes as its input (It is used only for WriteNode(), InsertBefore()
	  and so on, which are not intended to be used with attribute nodes).
	  On Initial state, it was Element that should check IsEmptyElement,
	  and Root should just go to the first child node.

svn path=/trunk/mcs/; revision=34689
2004-10-04 21:57:50 +00:00
Jackson Harper 97e090a6cd oops
svn path=/trunk/mcs/; revision=34688
2004-10-04 20:45:25 +00:00
Miguel de Icaza 6e26acaedb 2004-10-04 Miguel de Icaza <[email protected]>
* ecore.cs (Expression.Constantity): Add support for turning null
	into a constant.

	* const.cs (Const.Define): Allow constants to be reference types
	as long as the value is Null.

svn path=/trunk/mcs/; revision=34687
2004-10-04 20:43:48 +00:00
Miguel de Icaza cdb3e827d8 nullref is what should be printed out here
svn path=/trunk/mono/; revision=34686
2004-10-04 20:42:22 +00:00
Atsushi Eno f2cbdf35f7 2004-10-04 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : When the reader's root node is not of type
	  Root, it incorrectly skipped the node itself.

svn path=/trunk/mcs/; revision=34685
2004-10-04 20:30:23 +00:00
Gonzalo Paniagua Javier e78bbebe46 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
	tunneling a secure connection.

	* ServicePoint.cs: added UseConnect property.

	* ServicePointManager.cs: set the UseConnect property when we use a http
	proxy for a https connection.

	* WebConnection.cs: setup the tunnled connection when using a proxy and
	https.

svn path=/branches/mono-1-0/mcs/; revision=34684
2004-10-04 20:30:01 +00:00
Gonzalo Paniagua Javier 5a3ff91231 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: the .ctor receives a pre-read buffer now.
	* SslClientStream.cs: added InputBuffer property.

svn path=/branches/mono-1-0/mcs/; revision=34683
2004-10-04 20:28:19 +00:00
Gonzalo Paniagua Javier 7b5d49ae29 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
	tunneling a secure connection.

	* ServicePoint.cs: added UseConnect property.

	* ServicePointManager.cs: set the UseConnect property when we use a http
	proxy for a https connection.

	* WebConnection.cs: setup the tunnled connection when using a proxy and
	https.

svn path=/trunk/mcs/; revision=34682
2004-10-04 20:25:38 +00:00
Gonzalo Paniagua Javier 0c0907fb08 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: the .ctor receives a pre-read buffer now.
	* SslClientStream.cs: added InputBuffer property.

svn path=/trunk/mcs/; revision=34681
2004-10-04 20:25:24 +00:00
Zoltan Varga a120cadcc6 2004-10-04 Zoltan Varga <[email protected]>
* icall.c (ves_icall_InternalInvoke): Throw an exception when calling
	constructor of abstract class. Fixes #61689.

svn path=/trunk/mono/; revision=34680
2004-10-04 20:09:33 +00:00
Atsushi Eno bbf3065590 2004-10-04 Atsushi Enomoto <[email protected]>
* HtmlEmitter.cs : TH tag is not regarded as HTML tag.
	  This fixes bug #67390.

svn path=/branches/mono-1-0/mcs/; revision=34679
2004-10-04 19:30:44 +00:00
Atsushi Eno bfbcc064d4 2004-10-04 Atsushi Enomoto <[email protected]>
* HtmlEmitter.cs : TH tag is not regarded as HTML tag.
	  This fixes bug #67390.

svn path=/trunk/mcs/; revision=34678
2004-10-04 19:30:12 +00:00
Zoltan Varga 59a21406a4 2004-10-04 Zoltan Varga <[email protected]>
* web/team.xml: Update my info.

svn path=/trunk/mono/; revision=34677
2004-10-04 19:29:21 +00:00
Juraj Skripsky 5c4138c242 2004-10-04 Juraj Skripsky <[email protected]>
* namespace.cs (NamespaceEntry.Using): No matter which warning
	level is set, check if this namespace name has already been added.

svn path=/branches/mono-1-0/mcs/; revision=34676
2004-10-04 18:43:34 +00:00
Juraj Skripsky f26a7366ad 2004-10-04 Juraj Skripsky <[email protected]>
* namespace.cs (NamespaceEntry.Using): No matter which warning
	level is set, check if this namespace name has already been added.

svn path=/trunk/mcs/; revision=34675
2004-10-04 18:10:27 +00:00
Zoltan Varga 9a81eb4339 Merge from HEAD
svn path=/branches/mono-1-0/mcs/; revision=34674
2004-10-04 16:25:41 +00:00
Zoltan Varga 86591cf11a 2004-10-04 Zoltan Varga <[email protected]>
* AppDomain.cs: Make ThreadStatic variables static. Fixes #56614.

svn path=/trunk/mcs/; revision=34673
2004-10-04 16:17:37 +00:00
Miguel de Icaza f603fd0670 Add zlib_macros.c from Chris Lahey
svn path=/trunk/mono/; revision=34672
2004-10-04 15:36:04 +00:00
Atsushi Eno 0b1c73c1f7 2004-10-04 Atsushi Enomoto <[email protected]>
* DataSet.cs : For a row, when a relation is not nested, then it is
	  still output target since it won't be written as a child of its
	  parent. It fixes bug #66379.

svn path=/branches/mono-1-0/mcs/; revision=34671
2004-10-04 13:37:10 +00:00
Atsushi Eno e8c49cbcd4 2004-10-04 Atsushi Enomoto <[email protected]>
* DataSet.cs : For a row, when a relation is not nested, then it is
	  still output target since it won't be written as a child of its
	  parent. It fixes bug #66379.

svn path=/trunk/mcs/; revision=34670
2004-10-04 13:36:37 +00:00
Sanja Gupta 1457a9c4dc ChangeLog: Updated ChangeLog.
ParameterCollection.cs: Updated.

svn path=/trunk/mcs/; revision=34669
2004-10-04 12:56:58 +00:00
Zoltan Varga fe1d162935 2004-10-04 Zoltan Varga <[email protected]>
* NGenAttribute.cs: Add ComVisible (false).

svn path=/trunk/mcs/; revision=34668
2004-10-04 12:33:39 +00:00
Raja R Harinath a1579959ab * System.IO.Compression/DeflateStreamTest.cs: NET_2_0 only.
* System.IO.Compression/GzipStreamTest.cs: Likewise.
Report from Mayank Ritvik <[email protected]>.

svn path=/trunk/mcs/; revision=34667
2004-10-04 12:15:10 +00:00
Sanja Gupta ee356822ed ChangeLog: Updated ChangeLog.
Parameter.cs: Updated and completed implementation.

svn path=/trunk/mcs/; revision=34666
2004-10-04 12:04:22 +00:00
Martin Baulig b085171f11 2004-10-04 Martin Baulig <[email protected]>
* class-internals.h (MonoGenericContainer): New type.
	(MonoMethodNormal): Replaced `MonoGenericParam *gen_params' with
	`MonoGenericContainer *generic_container'.
	(MonoClass): Replaced `gen_params' and `num_gen_params' with
	`MonoGenericContainer *generic_container'.

	* metadata.c (mono_metadata_load_generic_params): Return a
	`MonoGenericContainer *' instead of a `MonoGenericParam *';
	removed the `num' argument.

svn path=/trunk/mono/; revision=34665
2004-10-04 12:04:11 +00:00
Neale Ferguson ca4dc9a43d Minor fix to OP_OR_IMM.
svn path=/trunk/mono/; revision=34664
2004-10-04 11:57:04 +00:00
Zoltan Varga 491cb45330 2004-10-04 Zoltan Varga <[email protected]>
* *.cs: Add some more 2.0 stuff.

svn path=/trunk/mcs/; revision=34663
2004-10-04 11:53:13 +00:00
Ravindra d80a3f7586 Updated project.
svn path=/trunk/mcs/; revision=34662
2004-10-04 10:58:41 +00:00
Zoltan Varga 0f2a7f89bc 2004-10-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add more 2.0 classes under System.Runtime.InteropServices.

svn path=/trunk/mcs/; revision=34661
2004-10-04 09:55:07 +00:00
Zoltan Varga 82416566c3 2004-10-04 Zoltan Varga <[email protected]>
* *.cs: Add more 2.0 stuff.

svn path=/trunk/mcs/; revision=34660
2004-10-04 09:51:57 +00:00
Zoltan Varga d0e8c70c5e 2004-10-04 Zoltan Varga <[email protected]>
* MethodImplOptions.cs MethodCodeType.cs RuntimeHelpers.cs DecimalConstantAttribute.cs: Add 2.0 stuff.

svn path=/trunk/mcs/; revision=34659
2004-10-04 09:41:04 +00:00
Zoltan Varga 348fbc5da2 Merge from HEAD.
svn path=/branches/mono-1-0/mcs/; revision=34658
2004-10-04 09:25:50 +00:00
Zoltan Varga ca67deeefd 2004-10-04 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (DefineType): Check for duplicate type names. Fixes
	#65988.

svn path=/trunk/mcs/; revision=34657
2004-10-04 09:23:28 +00:00
Zoltan Varga 75d4659421 2004-10-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add new 2.0 classes under System.Runtime.InteropServices.

svn path=/trunk/mcs/; revision=34656
2004-10-04 09:04:59 +00:00
Zoltan Varga b10dce9bf9 2004-10-04 Zoltan Varga <[email protected]>
* *.cs: Add new 2.0 classes.

svn path=/trunk/mcs/; revision=34655
2004-10-04 09:01:29 +00:00
Peter Dennis Bartok df43f8117e - Initial check-in
svn path=/trunk/mcs/; revision=34654
2004-10-04 08:14:40 +00:00
Ravindra ff72cf3b67 * gdipFunctioncs.cs: Backporting. Fix from Alois for bug #67383.
svn path=/branches/mono-1-0/mcs/; revision=34653
2004-10-04 07:58:55 +00:00
Ravindra 625d1e6cab * gdipFunctioncs.cs: Fix from Alois for bug #67383.
svn path=/trunk/mcs/; revision=34652
2004-10-04 07:53:06 +00:00
Jordi Mas i Hernandez 273cee6877 fixes right button position causing right button not showing on horizontal scrollbars
svn path=/trunk/mcs/; revision=34651
2004-10-04 07:09:37 +00:00
Gonzalo Paniagua Javier 68fceaaea4 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* system.c: check the number of online processors instead of the
	existing ones. Sanitize return value if it's an error.

svn path=/trunk/mono/; revision=34650
2004-10-04 02:37:00 +00:00
Ben Maurer 88c778b4f0 2004-10-03 Ben Maurer <[email protected]>
* expression.cs: reftype [!=]= null should always use br[true,false].
 	# 67410

svn path=/branches/mono-1-0/mcs/; revision=34649
2004-10-04 01:46:17 +00:00
Ben Maurer ac0c751f8d 2004-10-03 Ben Maurer <[email protected]>
* expression.cs: reftype [!=]= null should always use br[true,false].
	# 67410

svn path=/trunk/mcs/; revision=34648
2004-10-04 01:38:46 +00:00
Ben Maurer af8ea6d8c7 build fixeroo
svn path=/trunk/mcs/; revision=34647
2004-10-04 01:09:47 +00:00
Atsushi Eno d4778fa871 2004-10-03 Atsushi Enomoto <[email protected]>
* DataSet.cs : Attribute constraint field XPath must be written as
	  @blah. This fixes bug #66366.

svn path=/trunk/mcs/; revision=34646
2004-10-04 00:37:52 +00:00
Atsushi Eno 684d3741e0 2004-10-03 Atsushi Enomoto <[email protected]>
* DataSet.cs : Attribute constraint field XPath must be written as
	  @blah. This fixes bug #66366.

svn path=/branches/mono-1-0/mcs/; revision=34645
2004-10-04 00:37:12 +00:00
Ben Maurer 0c593051b4 2004-10-03 Ben Maurer <[email protected]>
* HttpResponse.cs: use UtcNow

svn path=/branches/mono-1-0/mcs/; revision=34643
2004-10-03 21:59:24 +00:00
Ben Maurer 7ddb1b82b0 2004-10-03 Ben Maurer <[email protected]>
* HttpResponse.cs: use UtcNow

svn path=/trunk/mcs/; revision=34642
2004-10-03 21:59:09 +00:00
Ben Maurer 91b53198a3 2004-10-03 Ben Maurer <[email protected]>
* Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
	use UtcNow rather than Now.

svn path=/branches/mono-1-0/mcs/; revision=34641
2004-10-03 21:56:21 +00:00
Ben Maurer c06c79073a 2004-10-03 Ben Maurer <[email protected]>
* Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
	use UtcNow rather than Now.

svn path=/trunk/mcs/; revision=34640
2004-10-03 21:55:41 +00:00
Marek Safar 48a85faff5 2004-10-03 Marek Safar <[email protected]>
* test-297.cs: Incorporated test for #67108

svn path=/trunk/mcs/; revision=34639
2004-10-03 20:54:49 +00:00
Ben Maurer 3017fb8e70 2004-10-03 Ben Maurer <[email protected]>
* system.c: Add support for getting the # of cpus.

svn path=/trunk/mono/; revision=34638
2004-10-03 20:54:10 +00:00
Zoltan Varga 320c781d23 2004-10-04 Zoltan Varga <[email protected]>
* Runtime*Handle.cs ModuleHandle.cs: Add Equals + GetHashCode.

	* ModuleHandle.cs: Add missing methods.

	* RuntimeTypeHandle.cs: Add GetModuleHandle () method.

svn path=/trunk/mcs/; revision=34637
2004-10-03 20:52:58 +00:00
Marek Safar 9e42c4e1ac 2004-10-03 Marek Safar <[email protected]>
Fix #67108
	* attribute.cs: Enum conversion moved to
	GetAttributeArgumentExpression to be applied to the all
	expressions.

svn path=/trunk/mcs/; revision=34636
2004-10-03 20:52:58 +00:00
Zoltan Varga a55915e15b 2004-10-03 Zoltan Varga <[email protected]>
* tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
	better. Fixes appdomain-unload.exe on sparc.

svn path=/trunk/mono/; revision=34635
2004-10-03 19:05:39 +00:00
Zoltan Varga 66791c4e0f 2004-10-03 Zoltan Varga <[email protected]>
* AttributeTargets.cs: Add 2.0 GenericParameter value.

svn path=/trunk/mcs/; revision=34634
2004-10-03 18:02:38 +00:00
Miguel de Icaza 92f9f4c961 Update
svn path=/trunk/mono/; revision=34633
2004-10-03 16:44:36 +00:00
Zoltan Varga 07f45b1a9d 2004-10-03 Zoltan Varga <[email protected]>
* AssemblyBuilderAccess.cs: Remove [Flags].

	* PackingSize.cs: Add new 2.0 members. Remove [Flags].

	* AssemblyBuilder.cs: Add net 2.0 Save method.

	* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
	net 2.0. Reorganize fields so the layout visible to the runtime is the
	same under 1.0 and 2.0. Add 2.0 properties.

svn path=/trunk/mcs/; revision=34632
2004-10-03 16:31:32 +00:00
Zoltan Varga 786d6ceda6 2004-10-03 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Module_GetPEKind): Add support
	for dynamic images.

	* object-internals.h (MonoReflectionAssemblyBuilder): Add pe_kind and
	machine fields.

	* metadata-internals.h (MonoDynamicImage): Add pe_kind and machine fields.

	* reflection.c: Save pe_kind and machine values into the generated
	image file.

svn path=/trunk/mono/; revision=34631
2004-10-03 16:29:27 +00:00
Zoltan Varga 5a2650b1ba 2004-10-03 Zoltan Varga <[email protected]>
* appdomain.c: Bump corlib version number.

	* object-internals.h: Reorganize layout of LocalBuilder.

svn path=/trunk/mono/; revision=34630
2004-10-03 15:47:30 +00:00
Zoltan Varga 272e4b3fcf 2004-10-03 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=34629
2004-10-03 15:46:04 +00:00
Zoltan Varga 9185df356b 2004-10-03 Zoltan Varga <[email protected]>
* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
	net 2.0. Reorganize fields so the layout visible to the runtime is the
	same under 1.0 and 2.0. Add 2.0 properties.

svn path=/trunk/mcs/; revision=34628
2004-10-03 15:44:24 +00:00
Zoltan Varga b9fd49724d 2004-10-03 Zoltan Varga <[email protected]>
* LocalVariableInfo.cs: Reorganize fields so LocalBuilder can inherit
	from this class.

svn path=/trunk/mcs/; revision=34627
2004-10-03 15:42:23 +00:00
Zoltan Varga f1bb274310 2004-10-03 Zoltan Varga <[email protected]>
* class-internals.h class.c (mono_class_get_implemented_interfaces):
	New helper function.

svn path=/trunk/mono/; revision=34626
2004-10-03 13:44:52 +00:00
Zoltan Varga c7b43da48d 2004-10-03 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes): Return the
	created MonoType for dynamic types. Fixes #66180.

svn path=/trunk/mono/; revision=34625
2004-10-03 12:48:09 +00:00
Ben Maurer ff10e7df78 2004-10-02 Ben Maurer <[email protected]>
* threadpool.c: the ares hashtable needs a critical section around it.
	this prevents some nasty segfaults

svn path=/branches/mono-1-0/mono/; revision=34623
2004-10-02 23:54:32 +00:00
Ben Maurer 9fe9c1338f 2004-10-02 Ben Maurer <[email protected]>
* threadpool.c: the ares hashtable needs a critical section around it.
	this prevents some nasty segfaults

svn path=/trunk/mono/; revision=34622
2004-10-02 23:51:07 +00:00
Massimiliano Mantione 3dc7b6a845 Updated the changelogs to give credit to [email protected] (Ville-Pertti Keinonen) for the patch and put the bug number.
svn path=/trunk/mono/; revision=34621
2004-10-02 21:12:06 +00:00
Massimiliano Mantione bdf234490a 2004-10-02 Massimiliano Mantione <[email protected]>
* ssa.c: Fixed casts to unsigned where the value was of 64 bits in
	simulate_long_compare.

	* process.c: Fixed alignments to 32 bits (casting to unsigned is unsafe on
	64 bits platforms).

svn path=/trunk/mono/; revision=34620
2004-10-02 20:45:31 +00:00
Miguel de Icaza ebcd5acafb Apply fix from [email protected] (Joe Gasiorek)
svn path=/trunk/mcs/; revision=34619
2004-10-02 19:48:46 +00:00
Peter Dennis Bartok 84d408d0da - Simplified the Invalidate method by using an X call instead of generating
the expose ourselves
- Added an expose when the window background is changed
- Implemented ClientToScreen method

svn path=/trunk/mcs/; revision=34618
2004-10-02 19:12:18 +00:00
Peter Dennis Bartok d40f6e00d9 - Added Win32EnableWindow method (test for implementing modal dialogs)
- Added ClientToScreen method and imports

svn path=/trunk/mcs/; revision=34617
2004-10-02 19:08:38 +00:00
Peter Dennis Bartok ef89bcc210 - Added ClientToScreen coordinate translation method
svn path=/trunk/mcs/; revision=34616
2004-10-02 19:07:36 +00:00
Peter Dennis Bartok eb6aa01ddd - Fixed access level for constructor
svn path=/trunk/mcs/; revision=34615
2004-10-02 19:06:40 +00:00
Peter Dennis Bartok d2cf640882 - Changed access level for the window_collection hash table
svn path=/trunk/mcs/; revision=34614
2004-10-02 19:06:20 +00:00
Peter Dennis Bartok 8e71ec9f0d - Added KeyPreview property
- Added Menu property (still incomplete, pending Jordi's menu work)
- Implemented ProcessCmdKey
- Implemented ProcessDialogKey
- Implemented ProcessKeyPreview

svn path=/trunk/mcs/; revision=34613
2004-10-02 19:05:52 +00:00
Peter Dennis Bartok d81ea2c6b4 - Added private method to get the Control object from the window handle
- Implemented ContextMenu property
- Implemented PointToScreen
- Implemented PreProcessMessage
- Implemented IsInputChar
- Implemented IsInputKey
- Implemented ProcessCmdKey
- Completed ProcessKeyEventArgs
- Fixed message loop to call the proper chain of functions on key events
- Implemented ProcessDialogChar
- Implemented ProcessDialogKey
- Implemented ProcessKeyMessage
- Implemented ProcessKeyPreview
- Added RaiseDragEvent stub (MS internal method)
- Added RaiseKeyEvent stub (MS internal method)
- Added RaiseMouseEvent stub (MS Internal method)
- Added RaisePaintEvent stub (MS Internal method)
- Added ResetMouseEventArgs stub (MS Internal method)
- Implemented RtlTranslateAlignment
- Implemented RtlTranslateContent
- Implemented RtlTranslateHorizontal
- Implemented RtlTranslateLeftRight
- Added generation of KeyPress event

svn path=/trunk/mcs/; revision=34612
2004-10-02 19:02:56 +00:00
Peter Dennis Bartok dd91676cd4 - Added LeftRightAlignment source reference
svn path=/trunk/mcs/; revision=34611
2004-10-02 18:55:20 +00:00
Miguel de Icaza ff0d74eeb5 Add System.IO.Compression from Chris Lahey ([email protected])
svn path=/trunk/mcs/; revision=34610
2004-10-02 18:48:07 +00:00
Zoltan Varga 5a3fd5b35d 2004-10-02 Zoltan Varga <[email protected]>
* Int32Test.cs: Add tests for TryParse ().

svn path=/trunk/mcs/; revision=34609
2004-10-02 14:47:25 +00:00
Zoltan Varga 873ca3789b 2004-10-02 Zoltan Varga <[email protected]>
* Int32.cs UInt32.cs Byte.cs SByte.cs Int16.cs UInt16.cs Int64.cs UInt64.cs: Implement 2.0 TryParse methods.

svn path=/trunk/mcs/; revision=34608
2004-10-02 14:46:45 +00:00
Zoltan Varga 90abab8373 2004-10-02 Zoltan Varga <[email protected]>
* jit-icalls.c: Handle a nonexisting trunc function more correctly.

svn path=/trunk/mono/; revision=34607
2004-10-02 12:55:10 +00:00
Ravindra 4319aeacd4 Added attributes.
svn path=/trunk/mcs/; revision=34606
2004-10-02 11:57:56 +00:00
Ravindra e0396e1d38 Added attributes.
svn path=/trunk/mcs/; revision=34605
2004-10-02 11:32:01 +00:00
Gert Driesen 514dcfb065 * TypeBuilderTest.cs: Added test to ensure NotSupportedException is
thrown when creating a type with a default ctor while parent does
        not have a default ctor.

svn path=/trunk/mcs/; revision=34604
2004-10-02 10:48:16 +00:00
Gert Driesen 96db215dd1 ChangeLog: removed conflict indicators
svn path=/trunk/mcs/; revision=34603
2004-10-02 10:46:45 +00:00
Gert Driesen 42c4541f58 * TypeBuilder.cs: throw NotSupportedException when defining default
ctor if parent type does not have default ctor

svn path=/trunk/mcs/; revision=34602
2004-10-02 10:44:53 +00:00
Marek Safar bfd8b9f4b3 2004-10-02 Marek Safar <[email protected]>
* CSharpCodeCompiler.cs: Fix #65722.

svn path=/trunk/mcs/; revision=34601
2004-10-01 22:12:13 +00:00
Jackson Harper b033610375 Implement the Close method so work on MessageBox can continue.
svn path=/trunk/mcs/; revision=34600
2004-10-01 17:53:26 +00:00
John Luke ac5cb1f8a9 2004-10-01 John Luke <[email protected]>
* *.cs: fix some incorrect tests by either addding a Main method,
        or adding a -t:library compiler option.  Makes one test pass, and adds
        19 to *-expect-wrong-error as they compile when they shouldn't
        * *mcs-expect-*-error: update

svn path=/trunk/mcs/; revision=34599
2004-10-01 17:42:18 +00:00
Gonzalo Paniagua Javier 9dc8009b78 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: even if the control has no children the naming container
	may contain the control we're looking for. Fixes bug #67304.

svn path=/branches/mono-1-0/mcs/; revision=34594
2004-10-01 13:14:47 +00:00
Gonzalo Paniagua Javier c1e8d7d744 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: even if the control has no children the naming container
	may contain the control we're looking for. Fixes bug #67304.

svn path=/trunk/mcs/; revision=34593
2004-10-01 13:10:44 +00:00
Sureshkumar T 9b97fa9c9b * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
getting available provider factories and creating a specified provider factory.

* DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
DbProviderFactories configuration section.

* DbProviderFactory.cs: Added protected constructor. SupportedClasses property
is made abstract.

svn path=/trunk/mcs/; revision=34592
2004-10-01 13:09:13 +00:00
Sanja Gupta 9883033a63 ChangeLog: Updated ChangeLog.
ParameterCollection.cs: Resolved warnings, "Unreachable code detected"          while compilation.

svn path=/trunk/mcs/; revision=34591
2004-10-01 10:46:55 +00:00
Sanja Gupta 56dbe2544e ChangeLog: Updated ChangeLog.
AccessDataSource.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34590
2004-10-01 10:43:59 +00:00
Anirban Bhattacharjee 9403470a95 2004-10-01 Anirban Bhattacharjee <[email protected]>
* ecore.cs: Bug fixing - when event raised from other assembly

svn path=/trunk/mcs/; revision=34589
2004-10-01 08:24:19 +00:00
Raja R Harinath bbfb76d4da * cs0122-5.cs, cs0122-6.cs: New tests.
* gmcs-expect-no-error: Update.

svn path=/trunk/mcs/; revision=34587
2004-10-01 05:23:57 +00:00
Raja R Harinath 7a33bcc5e9 * Makefile (NEW_TEST_SOURCES_common): Add test-300.
* test-300.cs: New.  Test based on #65833.

svn path=/trunk/mcs/; revision=34586
2004-10-01 05:17:23 +00:00
Raja R Harinath 1ab7bd7dbd Fix #65833, test-300.cs, cs0122-5.cs, cs0122-6.cs.
* class.c (TypeContainer.DefineType): Flag error if
base types aren't accessible due to access permissions.
* decl.cs (DeclSpace.ResolveType): Move logic to
Expression.ResolveAsTypeTerminal.
(DeclSpace.ResolveTypeExpr): Thin layer over
Expression.ResolveAsTypeTerminal.
(DeclSpace.CheckAccessLevel, DeclSpace.FamilyAccess):
Refactor code into NestedAccess.  Use it.
(DeclSpace.NestedAccess): New.
* ecore.cs (Expression.ResolveAsTypeTerminal): Add new
argument to silence errors.  Check access permissions.
(TypeExpr.DoResolve, TypeExpr.ResolveType): Update.
* expression.cs (ProbeExpr.DoResolve): Use ResolveAsTypeTerminal.
(Cast.DoResolve): Likewise.
(New.DoResolve): Likewise.
(InvocationOrCast.DoResolve,ResolveStatement): Likewise.
(TypeOf.DoResolve): Likewise.

* expression.cs (Invocation.BetterConversion): Return the Type of
the better conversion.  Implement section 14.4.2.3 more faithfully.
(Invocation.BetterFunction): Make boolean.  Make correspondence to
section 14.4.2.2 explicit.
(Invocation.OverloadResolve): Update.
(Invocation): Remove is_base field.
(Invocation.DoResolve): Don't use is_base.  Use mg.IsBase.
(Invocation.Emit): Likewise.

svn path=/trunk/mcs/; revision=34585
2004-10-01 05:16:01 +00:00
Gonzalo Paniagua Javier bf1a566e4e 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: SuppressContent does not throw and clears all the
	buffered output. Fixes bug #67213.

svn path=/branches/mono-1-0/mcs/; revision=34584
2004-10-01 03:38:22 +00:00
Gonzalo Paniagua Javier e998d57e29 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: SuppressContent does not throw and clears all the
	buffered output. Fixes bug #67213.

svn path=/trunk/mcs/; revision=34583
2004-10-01 03:36:52 +00:00
Gonzalo Paniagua Javier dd5367c39b s/Behaviour/Behavior/g Fixes bug 67261
svn path=/branches/mono-1-0/mcs/; revision=34582
2004-10-01 03:05:36 +00:00
Gonzalo Paniagua Javier eaa21f98ab s/Behaviour/Behavior/g Fixes bug 67261
svn path=/trunk/mcs/; revision=34581
2004-10-01 03:04:50 +00:00
Geoff Norton d09f4446fa 2004-09-30 Geoff Norton <[email protected]>
* Convert.cs: ConvertToBase* was not endian aware.  Implemented EndianSwap
        and swapping of all values before going into the BitConverter so that values
        are returned with proper endianess.

svn path=/branches/mono-1-0/mcs/; revision=34580
2004-10-01 02:55:45 +00:00
Gonzalo Paniagua Javier 6f302f5543 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: support attributes inherited from the one
	we want. Fixes bug #67088. Thanks to Sander Rijken.

svn path=/branches/mono-1-0/mcs/; revision=34579
2004-10-01 02:52:24 +00:00
Gonzalo Paniagua Javier fcbc77cd65 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: support attributes inherited from the one
	we want. Fixes bug #67088. Thanks to Sander Rijken.

svn path=/trunk/mcs/; revision=34578
2004-10-01 02:51:30 +00:00
Geoff Norton 849dc441cc 2004-09-30 Geoff Norton <[email protected]>
* Convert.cs: ConvertToBase* was not endian aware.  Implemented EndianSwap
        and swapping of all values before going into the BitConverter so that values
        are returned with proper endianess.

svn path=/trunk/mcs/; revision=34577
2004-10-01 02:44:39 +00:00
Francisco Figueiredo Jr. ac979279bb * Initial import of BSD license of LargeObject support ported code.
svn path=/trunk/mcs/; revision=34576
2004-09-30 21:39:06 +00:00
Francisco Figueiredo Jr. 0de8c14094 2004-09-30 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/FastPath.cs,
    NpgsqlTypes/FastPathArg.cs,
    NpgsqlTypes/LargeObject.cs,
    NpgsqlTypes/LargeObjectManager.cs,
    Npgsql.dll.sources: Added large object support. Thanks Emiliano Necciari (e dot necciari at blogic dot it) for the patch.

svn path=/trunk/mcs/; revision=34575
2004-09-30 21:36:09 +00:00
Lluis Sanchez 802e76ff67 * HttpSimpleProtocolImporter.cs: Fix import of arrays of primitive types.
svn path=/trunk/mcs/; revision=34574
2004-09-30 21:05:31 +00:00
Lluis Sanchez 3a465797dc * MapCodeGenerator.cs: When the Object type is exported, export all
derived maps. This was done in IncludeMetadata, but this method is
	  not called by the xsd tool.
	* XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
	  attribute for primitive types and arrays.
	* XmlSchemaImporter.cs: Only export all object-derived maps if the
	  Object type is explicitly referenced by an element.
	* XmlSerializationWriter.cs: Minor fix.

svn path=/trunk/mcs/; revision=34573
2004-09-30 20:56:52 +00:00
Zoltan Varga c34cf85b03 2004-09-30 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionTypeBuilder): Add 'created' field.

svn path=/trunk/mono/; revision=34572
2004-09-30 20:50:30 +00:00
Zoltan Varga 593d49b98b 2004-09-30 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Make 'created' field visible to the runtime.

svn path=/trunk/mcs/; revision=34571
2004-09-30 20:48:20 +00:00
Peter Dennis Bartok 9f98e52209 - Bug fixes
svn path=/trunk/mcs/; revision=34570
2004-09-30 20:06:56 +00:00
Miguel de Icaza ee9073842e Just rename the damn file
svn path=/trunk/mcs/; revision=34569
2004-09-30 18:08:29 +00:00
Jackson Harper 25077313f2 Fix typo. Patch by John BouAntoun.
svn path=/trunk/mcs/; revision=34568
2004-09-30 17:34:08 +00:00
Lluis Sanchez a84a63f44a * mini.c: Always generate a field read/write wrapper for members
of the class MarshalByRefObject since the actual instance could
	be a CBO.

svn path=/trunk/mono/; revision=34567
2004-09-30 15:59:13 +00:00
Lluis Sanchez 89b40cefda * image.c: Always canonicalize image file names, to avoid loading
the same assembly twice when referenced using a relative path.

svn path=/trunk/mono/; revision=34566
2004-09-30 15:30:01 +00:00
Ravindra 62e67d4d25 Updated project and sources list.
svn path=/trunk/mcs/; revision=34565
2004-09-30 13:32:06 +00:00
Ravindra 8afcb76cc4 Converter for ListViewItem.
svn path=/trunk/mcs/; revision=34564
2004-09-30 13:26:35 +00:00
Ravindra 9e98b297cc Enum for ListView control.
svn path=/trunk/mcs/; revision=34563
2004-09-30 13:26:00 +00:00
Ravindra 6bc48869d3 Supporting class for ListView control.
svn path=/trunk/mcs/; revision=34562
2004-09-30 13:25:33 +00:00
Ravindra cd50430a4e Initial implementation.
svn path=/trunk/mcs/; revision=34561
2004-09-30 13:24:45 +00:00
Anirban Bhattacharjee 9074575b6d 2004-09-30 Anirban Bhattacharjee <[email protected]>
* EventH.vb:
        * EventI.vb:
                Couple of more scenario got covered

svn path=/trunk/mcs/; revision=34560
2004-09-30 13:21:41 +00:00
Ravindra 57a5f76f64 Enum for ListView Control.
svn path=/trunk/mcs/; revision=34559
2004-09-30 13:20:20 +00:00
Anirban Bhattacharjee 422e2c0077 2004-09-30 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay:
        * statement.cs:
                Removed unused event_target field from
                AddHandler and RemoveHandler

svn path=/trunk/mcs/; revision=34558
2004-09-30 13:13:26 +00:00
Anirban Bhattacharjee 95bdcfa89e 2004-09-30 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: RemoveHandler function made cleaner

svn path=/trunk/mcs/; revision=34557
2004-09-30 12:52:50 +00:00
Anirban Bhattacharjee 89679ed9b1 2004-09-30 Anirban Bhattacharjee <[email protected]>
* expression.cs:
        * ecore.cs:
                Fix for resolution of event expression
                when we have a AddHandler statement
                like
                AddHandler Me.E, AddressOf Me.EH
                Submitted by Raja Harinath<[email protected]>

svn path=/trunk/mcs/; revision=34556
2004-09-30 12:33:26 +00:00
Anirban Bhattacharjee c7cd6bad2d 2004-09-30 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Unnecessary to and fro conversion of types
                        is removed from AddHandler function

svn path=/trunk/mcs/; revision=34555
2004-09-30 12:12:18 +00:00
Zoltan Varga e8d226500c 2004-09-30 Zoltan Varga <[email protected]>
* marshal.cs: Add test for GetFunctionPointerForDelegate.

svn path=/trunk/mono/; revision=34553
2004-09-30 10:29:13 +00:00
Zoltan Varga 58319033ea 2004-09-30 Zoltan Varga <[email protected]>
* marshal.h marshal.c icall.c: Fix bugs in previous patch.

svn path=/trunk/mono/; revision=34552
2004-09-30 10:28:34 +00:00
Zoltan Varga 048633f1af 2004-09-30 Zoltan Varga <[email protected]>
* marshal.c marshal.h icall.c: Add GetDelegateForFunctionPointerInternal icall.

	* marshal.c: Fix warnings.

svn path=/trunk/mono/; revision=34551
2004-09-30 10:06:42 +00:00
Zoltan Varga 79bc19eb16 2004-09-30 Zoltan Varga <[email protected]>
* Marshal.cs: Implement GetDelegateForFunctionPointer.

svn path=/trunk/mcs/; revision=34550
2004-09-30 10:03:56 +00:00
Zoltan Varga d62c5ab97b 2004-09-30 Zoltan Varga <[email protected]>
* libtest.c pinvoke2.cs: Add test for returning delegates.

svn path=/trunk/mono/; revision=34549
2004-09-30 09:45:14 +00:00
Sanja Gupta f4733688c3 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added and removed an enumeration in
          System.Web.UI.WebControls.

svn path=/trunk/mcs/; revision=34548
2004-09-30 08:58:53 +00:00
Sanja Gupta 828bc42967 ChangeLog: Updated ChangeLog.
DataControlRowState.cs:
ScrollBars.cs:
TreeNodeTypes.cs: Added attribute.
DataControlRowType.cs:
HotSpotMode.cs:
SortDirection.cs: Corrected enumeration values.
TableRowSection.cs: Added new enumeration.
ObjectDataSourceStatusEventHandler.cs: Corrected method name.

svn path=/trunk/mcs/; revision=34547
2004-09-30 08:53:57 +00:00
Umadevi S c35a250ace *** empty log message ***
svn path=/trunk/mcs/; revision=34546
2004-09-30 07:58:38 +00:00
Jambunathan K 747b3e80a3 Updated csproj to include Appearance.cs, CheckBox.cs, CheckState.cs
svn path=/trunk/mcs/; revision=34545
2004-09-30 05:02:20 +00:00
Miguel de Icaza 1f34ff944b 2004-09-14 Everaldo Canut <[email protected]>
* Mono.Data.SqliteClient/Sqlite.cs added.
	* Mono.Data.SqliteClient/SqliteDataAdapter.cs added.
	* Mono.Data.SqliteClient/SqliteRowUpdatedEventArgs added.
	* Mono.Data.SqliteClient/SqliteRowUpdatedEventHandler added.
	* Mono.Data.SqliteClient/SqliteRowUpdatingEventArgs added.
	* Mono.Data.SqliteClient/SqliteRowUpdatingEventHandler added.
	* Mono.Data.SqliteClient/SqliteDataReader.cs GetSchemaTable fixed.
	* All sources documented.

I submited a patch to SqliteClient, now Sqlite Data
Provider has full implemented, I think that the good
idea is describe this on release notes.

	-Everaldo

svn path=/trunk/mcs/; revision=34544
2004-09-30 03:00:09 +00:00
Gonzalo Paniagua Javier b9a6cfc5bb 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.

svn path=/branches/mono-1-0/mcs/; revision=34543
2004-09-30 02:40:07 +00:00
Gonzalo Paniagua Javier 9fdf11a261 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.

svn path=/trunk/mcs/; revision=34542
2004-09-30 02:39:06 +00:00
Peter Dennis Bartok 41d6265c85 - Added lookup of pixel value for background color; tries to get a color
'close' to the requested color, it avoids having to create a colormap.
  Depending on the display this could mean the used color is slightly off
  the desired color. Might have to change it to a more resource intensive
  colormap approach, but it will work as a workaround to avoid red screens.

svn path=/trunk/mcs/; revision=34541
2004-09-30 02:29:33 +00:00
Gonzalo Paniagua Javier e185d54494 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* threads.c: don't call mono_thread_detach() in start_wrapper(),
	avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.

svn path=/branches/mono-1-0/mono/; revision=34538
2004-09-30 01:09:05 +00:00
Ben Maurer 6fa080c443 2004-09-29 Ben Maurer <[email protected]>
* HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.

svn path=/branches/mono-1-0/mcs/; revision=34537
2004-09-30 01:00:57 +00:00
Ben Maurer fef6a9d994 2004-09-29 Ben Maurer <[email protected]>
* HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.

svn path=/trunk/mcs/; revision=34536
2004-09-30 01:00:32 +00:00
Gonzalo Paniagua Javier 13c545eab7 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: added OtherTags.
	* System.Web.UI/ControlBuilder.cs: don't close server tags when we get
	to a closing tag that is not applied to a server control. Fixes bug
	#60323.

svn path=/trunk/mcs/; revision=34534
2004-09-30 00:21:54 +00:00
Sebastien Pouliot 1f43385019 2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: KeySize is now always a multiple of 8 bits.
	Fix #66929.

svn path=/branches/mono-1-0/mcs/; revision=34533
2004-09-29 20:39:18 +00:00
Sebastien Pouliot bea5f10927 2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: In synch with corlib. KeySize is now always a
	multiple of 8 bits. Fix #66929.

svn path=/trunk/mcs/; revision=34532
2004-09-29 20:36:17 +00:00
Jackson Harper 150aac845a Set the X DisplayHandle in System.Drawing
svn path=/trunk/mcs/; revision=34531
2004-09-29 20:27:41 +00:00
Jackson Harper 5d1e9e0828 * Graphics.cs: Use FromHdcInternal to set the X display
handle. Add a flag to check if we are on unix so we aren't calling
	Environment.OSVersion.Platform all the time. Mad props to Peter
	Bartok for this.

svn path=/trunk/mcs/; revision=34530
2004-09-29 20:26:54 +00:00
Lluis Sanchez d5792d7b20 * Makefile: Remove error directory on every run.
* wstest.cs: Added a timeout when calling the wsdl tool. No more
	  hangs there.

svn path=/trunk/mcs/; revision=34528
2004-09-29 18:18:47 +00:00
Sebastien Pouliot 8292f4ff45 2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: KeySize is always a multiple of 8 bits (promotion to
	a bigger size if required) to match MS implementation (and other
	issues like SSL).

svn path=/trunk/mcs/; revision=34526
2004-09-29 18:01:09 +00:00
Geoff Norton 2fdc3df2e1 2004-09-29 Geoff Norton <[email protected]>
* marshal.c (mono_ftnptr_to_delegate): This method was improperly
        attempting to marshal the delegate_trampoline as the method_addr.
        This patch has a static hashtable of marshalled delegates so that
        we can map delegate_trampoline addresses back to delegates.  This
        allows a delegate passed to managed code to be passed back into native
        code.  Fixes #67039

svn path=/trunk/mono/; revision=34521
2004-09-29 15:46:44 +00:00
Sanja Gupta 5e86697297 ChangeLog: Updated ChangeLog.
WebPartVerb.cs: Added attributes.

svn path=/trunk/mcs/; revision=34518
2004-09-29 12:25:35 +00:00
Zoltan Varga 4d3c345c8b 2004-09-29 Zoltan Varga <[email protected]>
* MissingAttribute.cs: Ignore DllImportAttribute and PreserveSigAttribute.

svn path=/trunk/mcs/; revision=34517
2004-09-29 12:00:29 +00:00
Zoltan Varga 1bcb176a27 2004-09-29 Zoltan Varga <[email protected]>
* UnmanagedFunctionPointerAttribute.cs: New file.

svn path=/trunk/mcs/; revision=34516
2004-09-29 11:53:03 +00:00
Zoltan Varga 68daf2e3f8 2004-09-29 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.Runtime.InteropServices/UnmanagedFunctionPointerAttribute.cs.

svn path=/trunk/mcs/; revision=34515
2004-09-29 11:52:25 +00:00
Zoltan Varga 91b866d607 2004-09-29 Zoltan Varga <[email protected]>
* Marshal.cs: Make GetFunctionPointerForDelegate icall private.

	* MarshalAsAttribute.cs: Add 2.0 IidParamIndex field.

svn path=/trunk/mcs/; revision=34514
2004-09-29 11:45:54 +00:00
Sanja Gupta e9863088a4 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new classes in System.Web.dll.sources.

svn path=/trunk/mcs/; revision=34513
2004-09-29 11:24:28 +00:00
Sanja Gupta a95341175a ChangeLog: Updated ChangeLog.
ConnectionPoint.cs: Initial implementation.
ConsumerConnectionPoint.cs:
ProviderConnectionPoint.cs: Added stubs.
TypeCollection.cs: Completed.

svn path=/trunk/mcs/; revision=34512
2004-09-29 11:16:12 +00:00
Raja R Harinath a406bfeec0 (test-clients): nunit-console.exe is now in a
profile-specific directory.
Report from Mayank Ritvik <[email protected]>.

svn path=/trunk/mcs/; revision=34511
2004-09-29 10:20:02 +00:00
Sanja Gupta def2497092 ChangeLog: Updated ChangeLog.
IWebPart.cs: Added new property and removed extra property.
WebPart.cs: Corrected according to change in interface IWebPart.

svn path=/trunk/mcs/; revision=34510
2004-09-29 08:59:03 +00:00
Sanja Gupta cd35797483 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new files in System.Web.UI.WebControls.WebParts
                        namespace.

svn path=/trunk/mcs/; revision=34509
2004-09-29 08:45:48 +00:00
Sanja Gupta b53f40210a ChangeLog: Updated ChangeLog.
WebPartPageMenuMode.cs: Added new enumeration.

svn path=/trunk/mcs/; revision=34508
2004-09-29 08:43:37 +00:00
Miguel de Icaza 835814413c update with some notes
svn path=/trunk/mcs/; revision=34504
2004-09-29 05:06:25 +00:00
Satya Sudha K 78fafab214 minor changes in the Makefile
svn path=/trunk/mcs/; revision=34503
2004-09-29 03:33:55 +00:00
Jackson Harper 416666608c Give the build some love
svn path=/trunk/mcs/; revision=34500
2004-09-28 20:11:41 +00:00
Zoltan Varga 26d94a3f57 2004-09-28 Zoltan Varga <[email protected]>
* Marshal.cs: Add some ReliabilityContractAttributes.

svn path=/trunk/mcs/; revision=34499
2004-09-28 19:55:22 +00:00
Zoltan Varga 5109d8edc8 2004-09-28 Zoltan Varga <[email protected]>
* icall.c: Add GetFunctionPointerForDelegateInternal icall.

svn path=/trunk/mono/; revision=34498
2004-09-28 19:22:27 +00:00
Zoltan Varga ae83572acc 2004-09-28 Zoltan Varga <[email protected]>
* Marshal.cs (GetFunctionPointerForDelegate): Implement.

svn path=/trunk/mcs/; revision=34497
2004-09-28 19:20:22 +00:00
Zoltan Varga f4a0a73956 2004-09-28 Zoltan Varga <[email protected]>
* Makefile.am: Add marshal.cs.

	* marshal.cs: New file for Marshal tests.

svn path=/trunk/mono/; revision=34496
2004-09-28 19:19:11 +00:00
Zoltan Varga e1e7286338 2004-09-28 Zoltan Varga <[email protected]>
* Marshal.cs: Add stubs for missing 2.0 methods.

svn path=/trunk/mcs/; revision=34495
2004-09-28 19:02:33 +00:00
Peter Dennis Bartok fe4cbbaa26 - Streamlined Theme interfaces:
* Each DrawXXX method for a control now is passed the object for the
    control to be drawn in order to allow accessing any state the theme
    might require

  * ControlPaint methods for the theme now have a CP prefix to avoid
    name clashes with the Draw methods for controls

  * Every control now retrieves it's DefaultSize from the current theme

svn path=/trunk/mcs/; revision=34494
2004-09-28 18:44:25 +00:00
Jackson Harper 3c78cc670c Do not redraw OnClick MouseUp/Down will handle the drawing
svn path=/trunk/mcs/; revision=34493
2004-09-28 18:17:46 +00:00
Zoltan Varga 19f3882eb5 2004-09-28 Zoltan Varga <[email protected]>
* reflection.c (method_encode_code): Align method headers properly.
	Fixes #66025.

svn path=/branches/mono-1-0/mono/; revision=34492
2004-09-28 18:04:56 +00:00
Zoltan Varga 0a5f23fe26 2004-09-28 Zoltan Varga <[email protected]>
* reflection.c (method_encode_code): Align method headers properly.
	Fixes #66025.

svn path=/trunk/mono/; revision=34491
2004-09-28 17:59:32 +00:00
Neale Ferguson d5736c4013 Minor JIT fixes
svn path=/trunk/mono/; revision=34490
2004-09-28 17:47:44 +00:00
Lluis Sanchez 3f504f249b * marshal.c: In the runtime invoke wrapper, reset the abort
exception if it is cached. This avoids the automatic rethrowal of
	the exception after the catch of the wrapper. Also check for pending
	interruptions before calling the managed method. This is done using
	the new method emit_thread_force_interrupt_checkpoint, since the
	normal checkpoint method is ignored when running the invoke wrapper.
	* object.c: If the abort exception is rethrown, set the abort_exc
	field of the thread, so it will be rethrown aftere every catch.
	* threadpool.c: Only run an interruption checkpoint if what has been
	requested is a stop of the thread (aborts will be ignored).
	* threads.c: By default, a thread will now never be interrumped while
	running the runtime invoke wrapper (this ensures that runtime_invoke
	will always return to the caller if an exception pointer is provided).
	There is a new special method mono_thread_force_interruption_checkpoint()
	to force an interruption checkpoint even if running a protected
	wrapper, which is used by the same runtime invoke wrapper to do a check
	at a safe point.

I'm leaving the ves_* rename for another patch ;-)

svn path=/trunk/mono/; revision=34489
2004-09-28 15:16:05 +00:00
Sanja Gupta 2a5a391b04 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new classes in System.Web.UI.WebControls.WebParts.

svn path=/trunk/mcs/; revision=34488
2004-09-28 13:20:16 +00:00
Sanja Gupta 5365310748 ChangeLog: Updated ChangeLog.
Part.cs: Corrected access modifier of constructor.

svn path=/trunk/mcs/; revision=34487
2004-09-28 13:17:43 +00:00
Sanja Gupta 9a1e1828ea ChangeLog: Updated ChangeLog.
WebPart.cs: Updated source and fixed bug 66907.

svn path=/trunk/mcs/; revision=34486
2004-09-28 13:12:05 +00:00
Dick Porter 57a4a5f91d 2004-09-28 Dick Porter <[email protected]>
* io.c (pipe_close_private): Fix one small typo in the last change
	that totally hosed process creation with redirected pipes.

svn path=/branches/mono-1-0/mono/; revision=34485
2004-09-28 13:09:31 +00:00
Dick Porter f3bdc8c2ef 2004-09-28 Dick Porter <[email protected]>
* io.c (pipe_close_private): Fix one small typo in the last change
	that totally hosed process creation with redirected pipes.

svn path=/trunk/mono/; revision=34484
2004-09-28 13:09:28 +00:00
Raja R Harinath d73833f6c8 * test-120.cs: Don't exit on the first failure.
* Makefile (TEST_EXCLUDES_common): Remove 'module-3'.
(TEST_SOURCES_win32): Rename from WINDOWS_SOURCES.
(TEST_NOPASS): Comment out tests that already are in
TEST_SOURCES_common.

svn path=/trunk/mcs/; revision=34483
2004-09-28 12:52:27 +00:00
Lluis Sanchez 30a6942dba mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
svn path=/trunk/mono/; revision=34482
2004-09-28 12:46:41 +00:00
Lluis Sanchez fb582e2b8e * object.c, object-internals.h: Implemented mono_release_type_locks,
which releases the cctor locks held by a thread.
	* threads.c, threads.h: In thread_cleanup, release cctor locks held
	by a thread. Added mono_thread_exit() method to be used to safely stop
	a thread.

svn path=/trunk/mono/; revision=34481
2004-09-28 12:45:05 +00:00
Raja R Harinath 6f08eae1e4 ($(tmpinst)/bin/pedump): New.
(mcs-do-run-test-profiles): Depend on it.

svn path=/trunk/mono/; revision=34480
2004-09-28 12:44:30 +00:00
Raja R Harinath 4dbc8109f2 (ves_icall_System_Reflection_Assembly_GetModulesInternal):
Move null check before dereference.  Avoid indexing beyond the end
of the 'modules' array.

svn path=/trunk/mono/; revision=34479
2004-09-28 12:42:40 +00:00
Raja R Harinath 766c694428 typo.
svn path=/trunk/mono/; revision=34478
2004-09-28 11:31:52 +00:00
Raja R Harinath 452111a129 * metadata-internals.h (MonoImage): Add module_count field.
* image.c (load_modules): Set image->module_count.
	(mono_image_load_file_for_image): Use image->module_count.
	* reflection.c (mono_image_load_module): Append to image->modules array
	of dynamic assembly.
	(mono_module_get_object): Fix loop to actually increment index.
	Use image->module_count.
	* assembly.c (mono_assembly_load_references): Use image->module_count.
	* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal):
	Likewise.

svn path=/trunk/mono/; revision=34477
2004-09-28 11:30:44 +00:00
Sanja Gupta 1191bb45f9 ChangeLog: Updated ChangeLog.
WebPartVerbCollection.cs: Completed and corrected implementation.

svn path=/trunk/mcs/; revision=34476
2004-09-28 11:12:05 +00:00
Zoltan Varga 996d5ddd6e 2004-09-28 Zoltan Varga <[email protected]>
* PropertyInfo.cs (OptionalCustomModifiers): Add [MonoTODO].

	* PropertyInfo.cs: Add stub for GetConstantValue ().

	* ParameterInfo.cs (marshalAs): Make this private.

	* Module.cs (ModuleHandle): Add [CLSCompliant(false)].

	* LocalVariableInfo.cs MethodBody.cs: Disable default constructor.

svn path=/trunk/mcs/; revision=34475
2004-09-28 11:07:58 +00:00
Zoltan Varga 487b93aed6 2004-09-28 Zoltan Varga <[email protected]>
* ExceptionHandlingClause.cs: Disable default constructor.

svn path=/trunk/mcs/; revision=34474
2004-09-28 10:55:24 +00:00
Ravindra 798d6d51ad Added a minor note.
svn path=/trunk/mcs/; revision=34473
2004-09-28 10:31:47 +00:00
Lluis Sanchez 61edf794f0 * WebServiceHelper.cs: Write the encodingStyle attribute when using the
encoded format. This fixes bug #66908.

svn path=/branches/mono-1-0/mcs/; revision=34472
2004-09-28 10:09:10 +00:00
Lluis Sanchez e1caad0483 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
This fixes bug #66877.

svn path=/branches/mono-1-0/mcs/; revision=34471
2004-09-28 09:27:39 +00:00
Lluis Sanchez 8bc4bccc0f * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
This fixes bug #66877.

svn path=/trunk/mcs/; revision=34470
2004-09-28 09:22:52 +00:00
Lluis Sanchez c3e7b4fa53 * RemotingServices.cs: Allways pass the uri when calling
GetClientChannelSinkChain, even if it has channel data.
	  This fixes bug 66768.

svn path=/trunk/mcs/; revision=34469
2004-09-28 08:18:29 +00:00
Lluis Sanchez ff5c907233 * CrossAppDomainChannel.cs: In CreateMessageSink, ignore the url
parameter, it is not needed.

svn path=/trunk/mcs/; revision=34468
2004-09-28 08:16:41 +00:00
Sanja Gupta 8f32d72264 ChangeLog: Updated ChangeLog.
WebPartVerbCollection.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34467
2004-09-28 07:56:07 +00:00
Sanja Gupta 21829c0fdd ChangeLog: Updated ChangeLog.
WebPartVerb.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34466
2004-09-28 06:20:21 +00:00
Peter Dennis Bartok 97cf16ca60 - Initial check in. A place to log info about MWF that doesn't fit anywhere
else

svn path=/trunk/mcs/; revision=34465
2004-09-28 06:18:35 +00:00
Martin Baulig 25a8811858 2004-09-28 Martin Baulig <[email protected]>
* GenericTypeParameterBuilder.cs
	(GenericTypeParameterBuilder.ContainsGenericParameters): Return
	true here; System.Type.ContainsGenericParameters returns true when
	called on a type parameter, so let's do the same here.

svn path=/trunk/mcs/; revision=34464
2004-09-28 05:53:55 +00:00
Martin Baulig b4c3c6a719 2004-09-28 Martin Baulig <[email protected]>
* generic.cs
	(GenericConstraints.EffectiveBaseClass): New public property.
	(TypeParameter.GenericConstraints): New public property.
	(ConstructedType.CheckConstraints): Improved.

	* convert.cs (Convert.TypeParam_EffectiveBaseType): New private method.
	(Convert.TypeParameterConversion): New private method; use this in
	ImplicitReferenceConversion() and ImplicitReferenceConversionExists()
	for all conversions related to type parameters.

svn path=/trunk/mcs/; revision=34463
2004-09-28 05:46:28 +00:00
Martin Baulig da9563af75 Another small fix, don't crash here.
svn path=/trunk/mcs/; revision=34462
2004-09-28 05:42:54 +00:00
Umadevi S 3025f62e09 2004-09-24 Umadevi S <[email protected]>
* DataRowTest.cs : Added a test for EnforceConstraints with relations defined.

svn path=/branches/mono-1-0/mcs/; revision=34461
2004-09-28 05:01:33 +00:00
Umadevi S 9919af677a 2004-09-28 Umadevi S <[email protected]>
* DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows

svn path=/branches/mono-1-0/mcs/; revision=34460
2004-09-28 04:59:55 +00:00
Umadevi S 47cdd315ff 2004-09-24 Umadevi S <[email protected]>
* DataRowTest.cs : Added a test for EnforceConstraints with relations defined.

svn path=/trunk/mcs/; revision=34459
2004-09-28 04:20:25 +00:00
Umadevi S a13f2334e0 2004-09-28 Umadevi S <[email protected]>
* DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows

svn path=/trunk/mcs/; revision=34458
2004-09-28 04:17:39 +00:00
Gonzalo Paniagua Javier 648fb06f32 2004-09-28 Gonzalo Paniagua Javier <[email protected]>
* TableStyle.cs: don't render empty 'rules' attribute (again).

svn path=/branches/mono-1-0/mcs/; revision=34457
2004-09-28 00:29:07 +00:00
Gonzalo Paniagua Javier f30f84f690 2004-09-28 Gonzalo Paniagua Javier <[email protected]>
* TableStyle.cs: don't render empty 'rules' attribute (again).

svn path=/trunk/mcs/; revision=34456
2004-09-28 00:27:59 +00:00
Zoltan Varga 2e1d58d56e 2004-09-28 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_FieldInfo_GetUnmanagedMarshal):
	Avoid assert on generic types.

svn path=/trunk/mono/; revision=34454
2004-09-27 22:46:38 +00:00
Zoltan Varga 8ef0b9671a 2004-09-28 Zoltan Varga <[email protected]>
* driver.c mini.h trace.c: Move the setting of the main assembly into
	a separate function called mono_trace_set_assembly () and call it after
	actually loading the main assembly. Fixes #66872.

svn path=/trunk/mono/; revision=34453
2004-09-27 22:36:24 +00:00
Lluis Sanchez 3266ee6e9a * ServerIdentity.cs: Only set the target identity if it has not already
been set.

svn path=/trunk/mcs/; revision=34447
2004-09-27 20:06:12 +00:00
Lluis Sanchez 7470dcd7d5 * MethodCallMessageWrapper.cs: The wrapper has to modify the wrapped
message. MS does it.
	* ReturnMessage.cs: Use TypeName instead of _typeName since now name is
	  lazely constructed.

svn path=/trunk/mcs/; revision=34446
2004-09-27 20:05:44 +00:00
Lluis Sanchez 897873b1c9 * RemotingProxy.cs: In Invoke, suport IMessages other than MonoMessage.
svn path=/trunk/mcs/; revision=34445
2004-09-27 20:05:06 +00:00
Lluis Sanchez df381473f3 * HttpClientChannel.cs: Throw an http exception if the response is a 500,
don't try to deserialize the exception.

svn path=/trunk/mcs/; revision=34444
2004-09-27 20:04:30 +00:00
Lluis Sanchez e0ae338c33 * ContextsTest.cs: Fixed test sequence.
* RemotingServicesTest.cs: Minor fix.
	* ServerObject.cs: Added check for transparent proxy in all CBO methods.

svn path=/trunk/mcs/; revision=34443
2004-09-27 20:04:03 +00:00
Lluis Sanchez ec5949643e * System.Runtime.Remoting_test.dll.sources: Added RemotingServicesTest.cs.
svn path=/trunk/mcs/; revision=34442
2004-09-27 20:03:22 +00:00
Duncan Mak 1b08e45156 2004-09-23 Martin Garton <[email protected]>
* Convert.cs: ToType was returning unconverted object when it should
	fail with an ArgumentException.

	* ConvertTest.cs: Ensure ToType() fails with an ArgumentException in
	a case where is cannot convert.

svn path=/branches/mono-1-0/mcs/; revision=34439
2004-09-27 16:15:57 +00:00
Duncan Mak 24d18c663e 2004-09-23 Martin Garton <[email protected]>
* Convert.cs: ToType was returning unconverted object when it should
	fail with an ArgumentException.

svn path=/trunk/mcs/; revision=34438
2004-09-27 16:10:45 +00:00
Zoltan Varga 37b3f92db6 2004-09-27 Zoltan Varga <[email protected]>
* CustomAttributeData.cs CustomAttributeTypedArgument.cs
	CustomAttributeNamedArgument.cs: New files.

svn path=/trunk/mcs/; revision=34437
2004-09-27 15:32:33 +00:00
Zoltan Varga bbf7cce948 2004-09-27 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add more 2.0 System.Reflection classes.

svn path=/trunk/mcs/; revision=34436
2004-09-27 15:31:17 +00:00
Zoltan Varga 19a415ecec 2004-09-27 Zoltan Varga <[email protected]>
* MethodBody.cs LocalVariableInfo.cs ExceptionHandlingClause.cs
	ExceptionHandlingClauseFlags.cs: New files.

svn path=/trunk/mcs/; revision=34435
2004-09-27 13:03:02 +00:00
Zoltan Varga 2c9e3d8b46 2004-09-27 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add some 2.0 System.Reflection classes.

svn path=/trunk/mcs/; revision=34434
2004-09-27 13:01:22 +00:00
Zoltan Varga 06788e15e7 2004-09-27 Zoltan Varga <[email protected]>
* Array.cs: Add stub for AsReadOnly<T>.

svn path=/trunk/mcs/; revision=34433
2004-09-27 12:59:58 +00:00
Raja R Harinath 02b8d362b1 * Makefile: Re-apply patches from 2004-09-14.
(NEW_TEST_SOURCES_common): Rename from NEW_TEST_SOURCES.
(TEST_SOURCES_common): Rename from TEST_SOURCES.
(TEST_SOURCES_all): Rename to ALL_TEST_SOURCES.  Handle profile- and
platform-specific test inclusion and exclusion.
(TEST_SOURCES_default, TEST_SOURCES_net_2_0, TEST_EXCLUDES_common)
(TEST_EXCLUDES_net_2_0): New.  Reorganized from various other variables.
(TEST2_SOURCES, UNSAFE_SOURCES): Remove.  Merge into TEST_SOURCES_common.
(test-2, test-unsafe-compiler-jit): Remove.  Merge into test-compiler-jit.
* 2tests-*.cs, unsafe-*.cs, test-58.cs, test-171.cs:
Add 'Compiler options: '.

svn path=/trunk/mcs/; revision=34432
2004-09-27 12:00:53 +00:00
Raja R Harinath 30140da798 Re-apply changes from 2004-09-14.
(test-everything): Run tests in both profiles.

svn path=/trunk/mcs/; revision=34431
2004-09-27 11:59:23 +00:00
Raja R Harinath 4c84313be5 Update to changes.
svn path=/trunk/mcs/; revision=34430
2004-09-27 11:54:11 +00:00
Raja R Harinath 67dcc38c92 (PROGRAM): Put in
profile-specific directory.

svn path=/trunk/mcs/; revision=34429
2004-09-27 11:41:01 +00:00
Raja R Harinath ce00fd8ef2 * library.make ($(test_nunit_dep)): Make sure NUnit is built for
the profile being tested.
(nunit-$(PROFILE).stamp): Rename from nunit.stamp.
* config-default.make (TEST_HARNESS): Look for 'nunit-console' in
profile-specific directory.

svn path=/trunk/mcs/; revision=34428
2004-09-27 11:40:35 +00:00
Raja R Harinath 5d62444ee8 (mono-do-testjit): New target, unused for now. Runs
the mono testsuite in tests/.
(tmpinst-dir): Create etc/mono/2.0.
($(tmpinst)/bin/ilasm, $(tmpinst)/etc/mono/2.0/machine.config): New.

svn path=/trunk/mono/; revision=34427
2004-09-27 11:16:55 +00:00
Zoltan Varga 6a70cddb04 2004-09-27 Zoltan Varga <[email protected]>
* ConstructorBuilder.cs: Add 2.0 GetILGenerator(size) method.

svn path=/trunk/mcs/; revision=34426
2004-09-27 09:04:06 +00:00
Zoltan Varga 239cbecd36 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add tests for MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34418
2004-09-26 17:14:13 +00:00
Zoltan Varga 59e88109e5 2004-09-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_FieldInfo_GetUnmanagedMarshal): New icall.

svn path=/trunk/mono/; revision=34417
2004-09-26 17:11:39 +00:00
Zoltan Varga 915e78f676 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfo.cs: Add support for returning MarshalAsAttribute.

	* ParameterInfo.cs: Add marshalAs field, add support for returning
	MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34416
2004-09-26 17:10:34 +00:00
Zoltan Varga 86002e0361 2004-09-26 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: Add tests for MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34415
2004-09-26 16:48:49 +00:00
Zoltan Varga cf4f2ee9fa 2004-09-26 Zoltan Varga <[email protected]>
* reflection.c (mono_param_get_objects): Fill out MarshalAsImpl field.

	* reflection.c (mono_reflection_marshal_from_marshal_spec): New
	function to convert a MarshalSpec structure to its managed counterpart.

	* reflection.c: Fix warnings.

	* object-internals.h (MonoReflectionParameter): Add MarshalAsImpl
	field.

svn path=/trunk/mono/; revision=34414
2004-09-26 16:41:16 +00:00
Zoltan Varga a5182a1cab 2004-09-26 Zoltan Varga <[email protected]>
* UnmanagedMarshal.cs: Add ToMarshalAsAttribute method.

svn path=/trunk/mcs/; revision=34413
2004-09-26 16:38:20 +00:00
Zoltan Varga c48bcb131d 2004-09-26 Zoltan Varga <[email protected]>
* ParameterInfo.cs: Add marshalAs field, add support for returning
	MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34412
2004-09-26 16:36:40 +00:00
Zoltan Varga 9a183ff622 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add tests for FieldOffsetAttribute.

svn path=/trunk/mcs/; revision=34411
2004-09-26 15:00:46 +00:00
Zoltan Varga 115800f817 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: New file.

svn path=/trunk/mcs/; revision=34410
2004-09-26 14:56:38 +00:00
Zoltan Varga d52da51026 2004-09-26 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System.Reflection/FieldInfoTest.

svn path=/trunk/mcs/; revision=34409
2004-09-26 14:56:03 +00:00
Zoltan Varga c1478f0c7c 2004-09-26 Zoltan Varga <[email protected]>
* MethodInfoTest.cs: Add tests for PreserveSigAttribute.

svn path=/trunk/mcs/; revision=34408
2004-09-26 14:50:57 +00:00
Zoltan Varga 551d466cb4 2004-09-26 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System.Reflection/MethodInfoTest.

svn path=/trunk/mcs/; revision=34407
2004-09-26 14:44:43 +00:00
Francisco Figueiredo Jr. 9f4808997f 2004-09-26 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlDataReader.cs:
        GetBytes: Added a little fix for proper handling of getbytes with current Npgsql semantics in mind. For while, we just support offset value of 0 as we
        read all the bytes field value at a time. So there is no copy when offset is not 0.

svn path=/trunk/mcs/; revision=34406
2004-09-26 13:42:26 +00:00
Francisco Figueiredo Jr. 1e71ffa36f 2004-09-25 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlCommand.cs:
        GetParseCommandText: Fixed an incorrect patch. Thanks Martin ( martijn at boland dot org) for heads up.

svn path=/trunk/mcs/; revision=34405
2004-09-25 23:05:01 +00:00
Zoltan Varga 832b44d92b 2004-09-26 Zoltan Varga <[email protected]>
* icall.c (mono_create_icall_signature): Fix build.

svn path=/trunk/mono/; revision=34403
2004-09-25 21:13:02 +00:00
Zoltan Varga 2252b400e4 2004-09-25 Zoltan Varga <[email protected]>
* StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.

svn path=/trunk/mcs/; revision=34402
2004-09-25 19:49:12 +00:00
Zoltan Varga 5f7b869f4d 2004-09-25 Zoltan Varga <[email protected]>
* icall.c: Add MakePointType icall.

	* icall.c (ves_icall_System_Text_Encoding_InternalCodePage): Fix
	warnings.

svn path=/trunk/mono/; revision=34401
2004-09-25 18:59:24 +00:00
Zoltan Varga d025ae955c 2004-09-25 Zoltan Varga <[email protected]>
* Type.cs: Add MakePointerType && stub for ReflectionOnlyGetType.

svn path=/trunk/mcs/; revision=34400
2004-09-25 18:54:29 +00:00
Zoltan Varga 35d89cef80 2004-09-25 Zoltan Varga <[email protected]>
* Module.cs: Add new 2.0 GetMethods and GetFields methods.

svn path=/trunk/mcs/; revision=34399
2004-09-25 18:29:37 +00:00
Zoltan Varga 4f2d725b42 2004-09-25 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Add IsCreated method.

svn path=/trunk/mcs/; revision=34398
2004-09-25 18:11:03 +00:00
Gonzalo Paniagua Javier b18cb85fdd 2004-09-25 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: reuse allocated slots in the queue.

svn path=/branches/mono-1-0/mono/; revision=34397
2004-09-25 18:01:10 +00:00
Gonzalo Paniagua Javier da48560ea1 2004-09-25 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: reuse allocated slots in the queue.

svn path=/trunk/mono/; revision=34396
2004-09-25 17:57:59 +00:00
Francisco Figueiredo Jr. 8efe75eb7a 2004-09-25 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlCommand.cs:
        ReplaceParameterValue: Fixed parameter replace when next byte after parameter name is '\\r'. Thanks Ivan Radovanovic rivan at sezampro dot yu for the fix.
        GetParseCommandText: Added a workaround to have some queries which are giving parameter type problems. Thanks Martin ( martijn at boland dot org) for bug report.

svn path=/trunk/mcs/; revision=34395
2004-09-25 17:54:27 +00:00
Zoltan Varga b5572b9b47 2004-09-25 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System.Reflection/ParameterInfoTest.

svn path=/trunk/mcs/; revision=34394
2004-09-25 16:45:27 +00:00
Zoltan Varga 7db58113f5 2004-09-25 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: New file.

svn path=/trunk/mcs/; revision=34393
2004-09-25 16:44:32 +00:00
Zoltan Varga c18ed9be96 2004-09-25 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs (GetCustomAttributesBase): Add support for
	parameters.

svn path=/trunk/mcs/; revision=34392
2004-09-25 16:36:34 +00:00
Zoltan Varga f017402d09 2004-09-25 Zoltan Varga <[email protected]>
* ParameterInfo.cs: Add GetPseudoCustomAttributes () method.

svn path=/trunk/mcs/; revision=34391
2004-09-25 16:35:35 +00:00
Zoltan Varga 00195671e4 2004-09-25 Zoltan Varga <[email protected]>
* test-254.cs: Fix test so it runs under NET 2.0.

svn path=/trunk/mcs/; revision=34390
2004-09-25 15:54:45 +00:00
Ben Maurer 4d983e0ff3 2004-09-25 Ben Maurer <[email protected]>
* HttpApplication.cs: Make sure requests are removed from
	the timeout manager. Fixes a major leak. #66751.

svn path=/branches/mono-1-0/mcs/; revision=34388
2004-09-25 14:48:05 +00:00
Ben Maurer e14280267e 2004-09-25 Ben Maurer <[email protected]>
* HttpApplication.cs: Make sure requests are removed from
	the timeout manager. Fixes a major leak. #66751.

svn path=/trunk/mcs/; revision=34387
2004-09-25 14:47:34 +00:00
Zoltan Varga 7f534620a9 2004-09-25 Zoltan Varga <[email protected]>
* mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
	using the code manager.

svn path=/trunk/mono/; revision=34386
2004-09-25 14:24:01 +00:00
Zoltan Varga cb8fd4f834 2004-09-25 Zoltan Varga <[email protected]>
* mono-codeman.c (new_codechunk): Set malloc'ed code pages as
	executable.

svn path=/trunk/mono/; revision=34385
2004-09-25 14:21:29 +00:00
Jackson Harper 96f1bba931 Don't lock/enqueue/dequeue for unhandled messages. Gives us a nice little performance boost.
svn path=/trunk/mcs/; revision=34381
2004-09-24 20:57:33 +00:00
Zoltan Varga 69cbca7fda 2004-09-24 Zoltan Varga <[email protected]>
* MonoField.cs: Add GetFieldOffset.

svn path=/trunk/mcs/; revision=34380
2004-09-24 19:28:20 +00:00
Zoltan Varga 71f0403ddb 2004-09-24 Zoltan Varga <[email protected]>
* ObfuscationAttribute.cs: Add ApplyToMembers.

svn path=/trunk/mcs/; revision=34379
2004-09-24 19:26:46 +00:00
Zoltan Varga e3a84a8528 2004-09-24 Zoltan Varga <[email protected]>
* Assembly.cs: Add stub for ReflectionOnlyLoadFrom.

svn path=/trunk/mcs/; revision=34378
2004-09-24 19:19:56 +00:00
Zoltan Varga 0118ab2ddc 2004-09-24 Zoltan Varga <[email protected]>
* Assembly.cs (LoadWithPartialName): Add [ComVisible] attribute.

svn path=/trunk/mcs/; revision=34377
2004-09-24 19:17:07 +00:00
Zoltan Varga 64915e38b9 2004-09-24 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionDllImportAttribute): New structure.

	* icall.c: Add new icalls for GetDllImportAttribute and GetFieldOffset.

svn path=/trunk/mono/; revision=34376
2004-09-24 19:09:31 +00:00
Zoltan Varga fbb55f7bef 2004-09-24 Zoltan Varga <[email protected]>
* FieldBuilder.cs: Add dummy GetFieldOffset method.

svn path=/trunk/mcs/; revision=34375
2004-09-24 19:06:33 +00:00
Zoltan Varga 7de18ce3d8 2004-09-24 Zoltan Varga <[email protected]>
* MonoMethod.cs FieldInfo.cs: Add GetPseudoAttributes () method.

svn path=/trunk/mcs/; revision=34374
2004-09-24 19:05:46 +00:00
Zoltan Varga cdc48434e0 2004-09-24 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs (GetCustomAttributesBase): Add support for
	methods and fields.

svn path=/trunk/mcs/; revision=34373
2004-09-24 19:04:34 +00:00
Zoltan Varga 3e2de4869c 2004-09-24 Zoltan Varga <[email protected]>
* DllImportAttribute.cs: Reorder fields and mark this class as visible
	to the runtime.

svn path=/trunk/mcs/; revision=34372
2004-09-24 19:03:13 +00:00
Zoltan Varga 06ffb1f003 2004-09-24 Zoltan Varga <[email protected]>
* AssemblyNameFlags.cs: Add LongevityUnspecified.

svn path=/trunk/mcs/; revision=34371
2004-09-24 18:49:51 +00:00
Zoltan Varga ed4c168991 2004-09-24 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs: Beginnings of support for returning 2.0 pseudo
	custom attributes.

	* MonoCustomAttrs.cs (RetrieveAttributeUsage): Avoid infinite recursion.

	* MonoCustomAttrs.cs (GetCustomAttributes): Fix the 'attributeType is
	sealed' optimization.

svn path=/trunk/mcs/; revision=34370
2004-09-24 18:25:16 +00:00
Jackson Harper aa3e89b200 Add tab classes to the build
svn path=/trunk/mcs/; revision=34369
2004-09-24 18:02:34 +00:00
Jackson Harper 7a5d274a6b Partial implementation of the Tab Control and supporting classes. Initial checkin
svn path=/trunk/mcs/; revision=34368
2004-09-24 18:02:11 +00:00
Dick Porter 00c59cc36c 2004-09-24 Dick Porter <[email protected]>
* wapi-private.h:
	* sockets.c:
	* socket-private.h:
	* io.c:
	* io-private.h:
	* handles-private.h: Cope when a file descriptor is reused while
	the handle that thought it owned it is still referenced, instead
	of asserting.  Probably fixes bug 66479, though we've been unable
	to reproduce it.

svn path=/trunk/mono/; revision=34366
2004-09-24 17:01:44 +00:00
Dick Porter 06aeb1a94e 2004-09-24 Dick Porter <[email protected]>
* wapi-private.h:
	* sockets.c:
	* socket-private.h:
	* io.c:
	* io-private.h:
	* handles-private.h: Cope when a file descriptor is reused while
	the handle that thought it owned it is still referenced, instead
	of asserting.  Probably fixes bug 66479, though we've been unable
	to reproduce it.

svn path=/branches/mono-1-0/mono/; revision=34365
2004-09-24 17:01:37 +00:00
Zoltan Varga acdcb84158 2004-09-24 Zoltan Varga <[email protected]>
* reflection.h reflection.c (mono_reflection_get_custom_attrs): Revert
	previous change.

svn path=/trunk/mono/; revision=34363
2004-09-24 15:33:11 +00:00
Zoltan Varga 102543a11f 2004-09-24 Zoltan Varga <[email protected]>
* main.c: Add support for pinvoke flags BestFit and
	ThrowOnUnmappableChar.

svn path=/trunk/mono/; revision=34362
2004-09-24 15:13:42 +00:00
Zoltan Varga d41799746e 2004-09-24 Zoltan Varga <[email protected]>
* tabledefs.h: Add constants for pinvoke attributes BestFit and
	ThrowOnUnmappableChar.

svn path=/trunk/mono/; revision=34361
2004-09-24 15:08:23 +00:00
Carlos Guzmán Álvarez 5dc57b219d 2004-09-24 Carlos Guzman Alvarez <[email protected]>
* ContentType.cs: Implement initial support for the ClientHelloV2 message.
	* RecordProtocol.cs: Implement initial support for the ClientHelloV2 message.

svn path=/trunk/mcs/; revision=34360
2004-09-24 14:29:49 +00:00
Zoltan Varga dcc726bfe4 2004-09-24 Zoltan Varga <[email protected]>
* TypeTest.cs: Add test for StructLayoutAttribute.

svn path=/trunk/mcs/; revision=34357
2004-09-24 14:01:37 +00:00
Zoltan Varga d7364413cf 2004-09-24 Zoltan Varga <[email protected]>
* Type.cs: Implement 2.0 StructLayoutAttribute property.

	* Type.cs Add GetPseudoCustomAttributes () method.

svn path=/trunk/mcs/; revision=34356
2004-09-24 13:55:22 +00:00
Zoltan Varga 7d2ce98dbf 2004-09-24 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetPacking): New icall.

svn path=/trunk/mono/; revision=34355
2004-09-24 13:51:50 +00:00
Sureshkumar T 8f2b56a6a0 * DataSet.cs : Don't check constraints for dataset clear
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.

svn path=/branches/mono-1-0/mcs/; revision=34354
2004-09-24 13:25:52 +00:00
Sanja Gupta 7adbf3441c ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new attribute class in System.Web.UI.

svn path=/trunk/mcs/; revision=34353
2004-09-24 13:25:07 +00:00
Sanja Gupta 5c9b0aed32 ChangeLog: Updated ChangeLog.
ControlValuePropertyAttribute.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34352
2004-09-24 13:23:28 +00:00
Sureshkumar T 594a15739e (DataSetClearTest): Added a test for DataSet.Clear. This should not
throw any exception and should override constraints.

svn path=/branches/mono-1-0/mcs/; revision=34351
2004-09-24 12:53:45 +00:00
Sanja Gupta 449d34566e ChangeLog: Updated ChangeLog.
IPaginationContainer.cs: Corrected name of class.

svn path=/trunk/mcs/; revision=34350
2004-09-24 12:52:14 +00:00
Sanja Gupta 75e65231c5 ChangeLog: Updated ChangeLog.
IDReferencePropertyAttribute.cs: Completed implementation.

svn path=/trunk/mcs/; revision=34349
2004-09-24 12:46:31 +00:00
Sanja Gupta 8f5ed0c67f ChangeLog: Updated ChangeLog.
ThemeableAttribute.cs:
FilterableAttribute.cs: Code scrubbing and optimization.

svn path=/trunk/mcs/; revision=34348
2004-09-24 12:31:08 +00:00
Sureshkumar T 70c042f3f2 * DataSet.cs : Don't check constraints for dataset clear
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.

svn path=/trunk/mcs/; revision=34346
2004-09-24 11:55:42 +00:00
Sureshkumar T 6faa811729 (DataSetClearTest): Added a test for DataSet.Clear. This should not
throw any exception and should override constraints.

svn path=/trunk/mcs/; revision=34345
2004-09-24 11:23:47 +00:00
Marek Safar 3e6467abd3 WarningLevel = 2
svn path=/trunk/mcs/; revision=34344
2004-09-24 10:29:39 +00:00
Umadevi S fd39483805 2004-09-24 Umadevi S <[email protected]>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.

svn path=/branches/mono-1-0/mcs/; revision=34343
2004-09-24 10:16:22 +00:00
Umadevi S d73171b629 2004-09-24 Umadevi S <[email protected]>
* Added file SqlTransactionTest.cs

svn path=/branches/mono-1-0/mcs/; revision=34342
2004-09-24 10:08:27 +00:00
nobody 24a7667524 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=34341
2004-09-24 10:08:27 +00:00
Umadevi S 84f14a848a 2004-09-24 Umadevi S <[email protected]>
* SqlTransactionTest.cs -new file .unit testing for SqlTransaction

svn path=/trunk/mcs/; revision=34340
2004-09-24 09:58:25 +00:00
Umadevi S c813754f8d 2004-09-24 Umadevi S <[email protected]>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.

svn path=/trunk/mcs/; revision=34339
2004-09-24 09:56:09 +00:00
Paolo Molaro bee40b8828 Enforce inline limit.
svn path=/trunk/mono/; revision=34338
2004-09-24 09:42:34 +00:00
Zoltan Varga fc521ea08d 2004-09-24 Zoltan Varga <[email protected]>
* tramp-amd64.c mini-amd64.h: Add suppor for MONO_ARCH_HAVE_INVALIDATE_METHOD.

svn path=/trunk/mono/; revision=34337
2004-09-24 09:06:15 +00:00
Marek Safar e08b40a641 2004-09-24 Marek Safar <[email protected]>
* cs-parser.jay: Reverted 642 warning fix.

svn path=/trunk/mcs/; revision=34336
2004-09-24 08:15:03 +00:00
Martin Baulig d253152fde Updated a bit.
svn path=/trunk/mcs/; revision=34335
2004-09-24 05:19:55 +00:00
Miguel de Icaza 753f165565 2004-09-23 Miguel de Icaza <[email protected]>
* main.c (dis_directive_assemblyref): Dump the locale and public
	key tokens

	* get.c (dis_stringify_object_with_class): Escape assembly name.

	* main.c (dis_directive_assemblyref): Escape assembly name

svn path=/trunk/mono/; revision=34333
2004-09-24 04:00:09 +00:00
Martin Baulig 43e16c55da 2004-09-24 Martin Baulig <[email protected]>
* convert.cs (Convert.ImplicitReferenceConversion): Added implicit
	type parameter conversions for type parameters which are known to
	be reference types.

svn path=/trunk/mcs/; revision=34332
2004-09-24 03:56:54 +00:00
Martin Baulig f1e6c211d6 2004-09-24 Martin Baulig <[email protected]>
* GenericTypeParameterBuilder.cs
	(GenericTypeParameterBuilder.GetGenericParameterConstraints): Override.

svn path=/trunk/mcs/; revision=34331
2004-09-24 03:55:42 +00:00
Martin Baulig 3729684e3a 2004-09-24 Martin Baulig <[email protected]>
* Type.cs (Type.GetGenericParameterConstraints): New public method.

svn path=/trunk/mcs/; revision=34330
2004-09-24 03:55:06 +00:00
Martin Baulig d5e427d6b4 2004-09-24 Martin Baulig <[email protected]>
* icall.c (ves_icall_Type_GetGenericParameterConstraints): New interncall.

svn path=/trunk/mono/; revision=34329
2004-09-24 03:53:54 +00:00
Martin Baulig 3d8b806d7d 2004-09-24 Martin Baulig <[email protected]>
* generic.cs (GenericConstraints): Added `IsReferenceType' and
	`IsValueType' properties.

	* support.cs (ReflectionConstraints): Use
	Type.GetGenericParameterConstraints() instead of the old hack.

svn path=/trunk/mcs/; revision=34328
2004-09-24 03:48:19 +00:00
Martin Baulig 41abefe7e5 2004-09-24 Martin Baulig <[email protected]>
* generic.cs (ReflectionConstraints): Moved here and made it an
	abstract class.

	* support.cs (ReflectionConstraints): Moved to generic.cs.

svn path=/trunk/mcs/; revision=34327
2004-09-24 03:33:08 +00:00
Martin Baulig 6bf4a28847 2004-09-24 Martin Baulig <[email protected]>
* support.cs
	(ReflectionConstraints): Un-nested this class and made it public.

	* typemanager.cs
	(TypeManager.GetTypeParameterConstraints): New public method.
	(TypeManager.HasConstructorConstraint): Use the attributes.

svn path=/trunk/mcs/; revision=34326
2004-09-24 03:22:14 +00:00
Martin Baulig fb8eedf23c 2004-09-24 Martin Baulig <[email protected]>
* support.cs (GenericConstraints): Replaced `HasConstructor',
	`IsReferenceType' and `IsValueType' with `Attributes'.
	(ReflectionParameters.ReflectionConstraints): Removed the Create()
	method and made the .ctor public.

	* generic.cs (Constraints.Attributes): New public property.
	(Constraints): Renamed `HasConstructor' -> `HasConstructorConstraint',
	`IsReferenceType' -> `HasReferenceTypeConstraint' and
	`IsValueType' -> `HasValueTypeConstraint'.

svn path=/trunk/mcs/; revision=34325
2004-09-24 03:17:07 +00:00
Martin Baulig 593753a24e Fixed a typo.
svn path=/trunk/mcs/; revision=34324
2004-09-24 03:02:06 +00:00
Martin Baulig 4aa2465001 New test.
svn path=/trunk/mcs/; revision=34323
2004-09-24 02:52:18 +00:00
Francisco Figueiredo Jr. 93fd2fcb92 2004-09-23 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper.cs:
        ConvertToBackend: Added support for System.Enum types. Now enumerated types can be used correctly as a paramater value. Thanks Martin ( martijn at boland dot org) for the heads up.

svn path=/trunk/mcs/; revision=34322
2004-09-23 23:29:02 +00:00
Gonzalo Paniagua Javier 996a96124e 2004-09-23 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	(mono_domain_set): allow setting a domain that is being unloaded.
	(mono_domain_unload): invoke the DomainUnload callbacks in the domain
	being unloaded.

svn path=/branches/mono-1-0/mono/; revision=34320
2004-09-23 21:28:19 +00:00
Gonzalo Paniagua Javier d1c584769d 2004-09-24 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs:
	* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
	unloading.

svn path=/branches/mono-1-0/mcs/; revision=34319
2004-09-23 21:18:35 +00:00
Gonzalo Paniagua Javier f72e291cd4 2004-09-24 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs:
	* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
	unloading.

svn path=/trunk/mcs/; revision=34318
2004-09-23 21:17:23 +00:00
Gonzalo Paniagua Javier 7acb5a77b0 2004-09-23 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	(mono_domain_set): allow setting a domain that is being unloaded.
	(mono_domain_unload): invoke the DomainUnload callbacks in the domain
	being unloaded.

svn path=/trunk/mono/; revision=34315
2004-09-23 20:59:50 +00:00
Marek Safar 6e7f42c4b0 2004-09-23 Marek Safar <[email protected]>
Fix bug #66615
	* decl.cs (FindMemberWithSameName): Indexer can have more than
	1 argument.

svn path=/trunk/mcs/; revision=34314
2004-09-23 20:30:17 +00:00
Marek Safar 90d536b3bb new test
svn path=/trunk/mcs/; revision=34313
2004-09-23 20:29:00 +00:00
Marek Safar 5149948ae1 2004-09-23 Marek Safar <[email protected]>
* expression.cs (LocalVariableReference.DoResolveLValue):
	Do not report warning 219 for out values.
	(EmptyExpression.Null): New member to avoid extra allocations.

	* rootcontext.cs: Warning 4 is back.

svn path=/trunk/mcs/; revision=34312
2004-09-23 19:47:46 +00:00
Marek Safar 2964e3dfa6 warning cleanup
svn path=/trunk/mcs/; revision=34311
2004-09-23 19:37:31 +00:00
Zoltan Varga be34477642 2004-09-23 Zoltan Varga <[email protected]>
* icall.c reflection.h reflection.c: Add a 'pseudo_attrs' argument to
	the GetCustomAttributes icall.

svn path=/trunk/mono/; revision=34310
2004-09-23 19:35:03 +00:00
Zoltan Varga 19de0d3348 2004-09-23 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs (GetCustomAttributes): Rename the icall to
	GetCustomAttributesInternal and add a 'pseudoAttrs' argument.

svn path=/trunk/mcs/; revision=34309
2004-09-23 19:29:42 +00:00
Jackson Harper f18066f8db Temp build fixage
svn path=/trunk/mcs/; revision=34308
2004-09-23 19:08:59 +00:00
Zoltan Varga d51ac63600 2004-09-23 Zoltan Varga <[email protected]>
* Type.cs: Tweak Module property in 2.0 build.

svn path=/trunk/mcs/; revision=34307
2004-09-23 19:08:07 +00:00
Zoltan Varga fb510c077b 2004-09-23 Zoltan Varga <[email protected]>
* DynamicMethod.cs: Add MetadataToken property and tweak Module property.

svn path=/trunk/mcs/; revision=34306
2004-09-23 19:07:26 +00:00
Zoltan Varga db910d918c 2004-09-23 Zoltan Varga <[email protected]>
* Module.cs: Remove [MonoTODO] from ResolveMember.

	* MemberInfo.cs: Add 'Module' property.

svn path=/trunk/mcs/; revision=34305
2004-09-23 19:06:44 +00:00
Zoltan Varga 782160d69f 2004-09-23 Zoltan Varga <[email protected]>
* AssemblyFlagsAttribute.cs: Add 2.0 stuff.

	* Assembly.cs: Add stubs for ReflectionOnlyLoad methods. Add [Obsolete]
	to LoadWithPartialName on 2.0.

	* AssemblyNameFlags.cs: Add new 2.0 members.

	* FieldInfo.cs MonoField.cs PropertyInfo.cs ParameterInfo.cs MonoProperty.cs: Add stubs for Optinal/RequiredCustomModifiers.

svn path=/trunk/mcs/; revision=34304
2004-09-23 19:04:13 +00:00
Zoltan Varga f44bc14c50 2004-09-23 Zoltan Varga <[email protected]>
* ObfuscationAttribute.cs ObfuscateAssemblyAttribute.cs: New files.

svn path=/trunk/mcs/; revision=34303
2004-09-23 18:59:39 +00:00
Zoltan Varga 8c5b51efb1 2004-09-23 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.Reflection.ObfuscateAssemblyAttribute
	and System.Reflection.ObfuscationAttribute.

svn path=/trunk/mcs/; revision=34302
2004-09-23 18:58:32 +00:00
Martin Baulig 8a9ab82d5b 2004-09-23 Martin Baulig <[email protected]>
* generic.cs (Constraints): Reflect latest runtime changes.

svn path=/trunk/mcs/; revision=34301
2004-09-23 18:01:31 +00:00
Martin Baulig bc55703ccb 2004-09-23 Martin Baulig <[email protected]>
* GenericTypeParameterBuilder.cs
	(GenericTypeParameterBuilder.SetGenericParameterAttributes): New
	public method, replaces the old Mono_* hacks.

svn path=/trunk/mcs/; revision=34300
2004-09-23 17:48:32 +00:00
Martin Baulig 29a53f099a 2004-09-23 Martin Baulig <[email protected]>
* object-internals.h (MonoReflectionGenericParam): Replaced
	'has_ctor_constraint', `has_reference_type' and `has_value_type'
	with `guint32 attrs'.

svn path=/trunk/mono/; revision=34299
2004-09-23 17:47:32 +00:00
Martin Baulig bf4cb8a0b8 Return the correct flags.
svn path=/trunk/mono/; revision=34298
2004-09-23 17:24:52 +00:00
Marek Safar 9e2b840a25 2004-09-23 Marek Safar <[email protected]>
* cs-parser.jay: Fix wrong warning 642 report.

	* cs-tokenizer.cs (CheckNextToken): New helper;
	Inspect next character if is same as expected.

svn path=/trunk/mcs/; revision=34297
2004-09-23 17:20:47 +00:00
Martin Baulig f31af55f6f 2004-09-23 Martin Baulig <[email protected]>
* Type.cs (Type.GenericParameterAttributes): New public property.

svn path=/trunk/mcs/; revision=34296
2004-09-23 17:11:00 +00:00
Martin Baulig 4e2108dc40 2004-09-23 Martin Baulig <[email protected]>
* icall.c (ves_icall_Type_GetGenericParameterAttributes): New interncall.

svn path=/trunk/mono/; revision=34295
2004-09-23 17:10:28 +00:00
Martin Baulig 75b9df1e02 2004-09-23 Martin Baulig <[email protected]>
* convert.cs (Convert.ImplicitReferenceConversion): Some code cleanup.
	(Convert.ImplicitReferenceConversionExists): Likewise.

svn path=/trunk/mcs/; revision=34294
2004-09-23 17:01:32 +00:00
Martin Baulig 8733535ab8 Ooops.
svn path=/trunk/mcs/; revision=34292
2004-09-23 16:48:02 +00:00
Sebastien Pouliot b9443cdda0 2004-09-23 Sebastien Pouliot <[email protected]>
* TlsClientKeyExchange.cs: Removed .Clear call on private key as itn't
	ours (but only a reference). It also requires the callback to recreate
	a new key object each time (which is worse). This also implies that
	the caller (implementing the callback) is responsible to clear it.

svn path=/trunk/mcs/; revision=34291
2004-09-23 16:44:25 +00:00
Marek Safar 5df1776250 new test
svn path=/trunk/mcs/; revision=34290
2004-09-23 16:39:17 +00:00
Martin Baulig e5110ba152 2004-09-23 Martin Baulig <[email protected]>
* object-internals.h (GenericParameterAttributes): New enum.

svn path=/trunk/mono/; revision=34289
2004-09-23 15:28:33 +00:00
Martin Baulig 57ab40ff94 New test.
svn path=/trunk/mcs/; revision=34288
2004-09-23 15:23:36 +00:00
Martin Baulig e7f0178cb0 2004-09-23 Martin Baulig <[email protected]>
* GenericParameterAttributes.cs: New file.

svn path=/trunk/mcs/; revision=34287
2004-09-23 15:23:18 +00:00
Martin Baulig 47be769683 Merged.
svn path=/trunk/mcs/; revision=34284
2004-09-23 14:15:31 +00:00
Martin Baulig fcdb7daa10 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=34283
2004-09-23 14:15:08 +00:00
Martin Baulig 6c33f8c361 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=34282
2004-09-23 13:59:45 +00:00
Sebastien Pouliot 20cb643a97 2004-09-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Updated version to 1.0.3 for next stable release.
	* MakeCert.cs: Hack for date parsing problem with Mono.

svn path=/branches/mono-1-0/mcs/; revision=34281
2004-09-23 13:25:53 +00:00
Lluis Sanchez 34a336c0ce * RemotingServices.cs: Fixed wrong patch for InternalExecuteMessage.
The MethodBase in the message may not be the same type of the object
	  (the method can be called using an interface).

svn path=/trunk/mcs/; revision=34280
2004-09-23 13:24:14 +00:00
Sebastien Pouliot 1a4d7572e8 2004-09-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Updated version to 1.1.2 for next release.
	* MakeCert.cs: Hack for date parsing problem with Mono.

svn path=/trunk/mcs/; revision=34279
2004-09-23 13:23:31 +00:00
Sebastien Pouliot 95c2a5c48b 2004-09-23 Sebastien Pouliot <[email protected]>
* RecordProtocol.cs: Fix alert data that could leak into appplication
	data (e.g. when closing the SSL session).

svn path=/trunk/mcs/; revision=34278
2004-09-23 13:07:45 +00:00
Anirban Bhattacharjee 886c7dc49b 2004-09-23 Anirban Bhattacharjee <[email protected]>
* expression.cs: Enhanced mbas to resolve Default property or indexer

svn path=/trunk/mcs/; revision=34277
2004-09-23 12:31:15 +00:00
Zoltan Varga dda1b58849 2004-09-23 Zoltan Varga <[email protected]>
* EventInfo.cs: Fix 2.0 build.

svn path=/trunk/mcs/; revision=34276
2004-09-23 12:10:46 +00:00
Zoltan Varga cb75d5f53f 2004-09-23 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix bug in previous patch.

svn path=/trunk/mono/; revision=34275
2004-09-23 12:04:54 +00:00
Zoltan Varga ff31bb0f42 2004-09-23 Zoltan Varga <[email protected]>
* MonoEvent.cs (MonoEventInfo): Add 'other_methods' field.

	* EventInfo.cs MonoEvent.cs: Add NET 2.0 GetOtherMethods method.

svn path=/trunk/mcs/; revision=34274
2004-09-23 11:50:20 +00:00
Zoltan Varga 09afe79323 2004-09-23 Zoltan Varga <[email protected]>
* object-internals.h (MonoEventInfo): Add 'other_methods' field.

	* class.c (init_events): Fill out event->other field.

	* class.c: Fix warnings.

	* icall.c (ves_icall_get_event_info): Fill out 'other_methods' field.

svn path=/trunk/mono/; revision=34273
2004-09-23 11:47:34 +00:00
Marek Safar d00466e814 new test
svn path=/trunk/mcs/; revision=34272
2004-09-23 11:46:38 +00:00
Marek Safar 542069f24a update
svn path=/trunk/mcs/; revision=34271
2004-09-23 11:40:55 +00:00
Marek Safar 35665411b8 2004-09-23 Marek Safar <[email protected]>
* class.cs (Operator.Define): Add error 448 and 559 report.

svn path=/trunk/mcs/; revision=34270
2004-09-23 11:29:25 +00:00
Marek Safar 54c8920da3 update
svn path=/trunk/mcs/; revision=34269
2004-09-23 10:15:00 +00:00
Zoltan Varga f2ffd01389 2004-09-23 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
	#66650.

svn path=/trunk/mono/; revision=34268
2004-09-23 09:54:00 +00:00
Ravindra f2bf680e52 Updated sources list and project file.
svn path=/trunk/mcs/; revision=34267
2004-09-23 07:44:28 +00:00
Ravindra 9a75ce9b22 EventArgs and EventHandlers needed by ListView Control.
svn path=/trunk/mcs/; revision=34266
2004-09-23 07:39:19 +00:00
John Luke fea8d43b9c 2004-09-22 John Luke <[email protected]>
* outline.cs: use simpler IsDefined method
        for checking params and [Flags]

svn path=/trunk/mcs/; revision=34262
2004-09-22 22:40:11 +00:00
Peter Dennis Bartok 93ed26a2ba - Implemented DockPadding property
- Implemented AutoScroll property
- Implemented AutoScrollMargin property
- Implemented AutoScrollMinSize property
- Implemented AutoScrollPosition property
- Implemented DisplayRectangle property (still incomplete)
- Implemented CreateParams property
- Implemented HScroll property
- Implemented VScroll property
- Implemented OnVisibleChanged property

svn path=/trunk/mcs/; revision=34261
2004-09-22 20:12:45 +00:00
Peter Dennis Bartok a87a9f61ca - Added Form.ControllCollection class
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
  RemoveOwnedForm (still incomplete, missing on-top and common
  minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
  creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the dialog
  modal)

svn path=/trunk/mcs/; revision=34260
2004-09-22 20:09:44 +00:00
Peter Dennis Bartok b1ea207ac5 - Added message loop for modal dialogs
svn path=/trunk/mcs/; revision=34259
2004-09-22 20:05:41 +00:00
Peter Dennis Bartok 25b6a65fe8 - Fixed wrong types for events
svn path=/trunk/mcs/; revision=34258
2004-09-22 20:02:40 +00:00
Peter Dennis Bartok 3ce6a5ab40 - Fixed wrong values
svn path=/trunk/mcs/; revision=34257
2004-09-22 20:01:21 +00:00
Lluis Sanchez 687f6921c7 * ConstructionCall.cs: Added a Proxy property (which is the proxy that
will reference the object being created).
	* StackBuilderSink.cs: Take into account the forceInternalExecute
	  parameter.

svn path=/trunk/mcs/; revision=34255
2004-09-22 19:33:18 +00:00
Lluis Sanchez 25d2bc422a * RemotingProxy.cs: When attaching a CBO identity, assign the proxy to
be used as "this" for method calls.

svn path=/trunk/mcs/; revision=34254
2004-09-22 19:32:49 +00:00
Lluis Sanchez d1be134bf4 * Context.cs: In CreateServerObjectSinkChain, added a parameter to
specify that messages must be dispatched to the target object using
	  InternalExecute. Usually if the target is a proxy, the sink uses
	  RealProxy.Invoke to dispatch the method. This can't be done for local
	  CBOs since we would loop for ever.

svn path=/trunk/mcs/; revision=34253
2004-09-22 19:32:13 +00:00
Lluis Sanchez 1c0aace75f * ActivationServices.cs: In Activate, assign the proxy to the ctor
message. In CreateInstanceFromMessage if the object being created
	  is a CBO, use the provided proxy as "this" when calling the ctor.

svn path=/trunk/mcs/; revision=34252
2004-09-22 19:31:25 +00:00
Lluis Sanchez d1c4ebe91a * RemotingServices.cs: In InternalExecute, use MethodBase instead
of MonoMethod, so it can be also used for running constructors.
	* ServerIdentity.cs: Added methods for getting and setting the client
	  proxy in ClientActivatedIdentity. This is needed for CBOs, since
	  messages need to be dispatched using the proxy as "this", not the
	  real object.

svn path=/trunk/mcs/; revision=34251
2004-09-22 19:30:55 +00:00
César Natarén 4a782de9fa 2004-09-22 Cesar Lopez Nataren <[email protected]>
* expression.cs: Binary, use ResolveFieldAccess only in case the operator is JSToken.AccessField.

svn path=/trunk/mcs/; revision=34250
2004-09-22 19:28:27 +00:00
César Natarén 2836fc532e 2004-09-22 Cesar Lopez Nataren <[email protected]>
* Parser.cs: use ToJSToken to set the operator properly.

svn path=/trunk/mcs/; revision=34249
2004-09-22 19:19:13 +00:00
César Natarén 6f34e1b87e 2004-09-22 Cesar Lopez Nataren <[email protected]>
* FunctionDeclaration.cs: delete spaces.

svn path=/trunk/mcs/; revision=34248
2004-09-22 19:17:15 +00:00
Lluis Sanchez 5bda6f1f2c * ThreadTest.cs, MutexTest.cs: Don't leave any thread alive, even if the
thread fails. Added a timeout to active waits.

svn path=/trunk/mcs/; revision=34247
2004-09-22 19:06:50 +00:00
Jackson Harper 294f339d9f Text is never null
svn path=/trunk/mcs/; revision=34246
2004-09-22 18:01:28 +00:00
Marek Safar 3708ba82d6 update
svn path=/trunk/mcs/; revision=34245
2004-09-22 17:42:39 +00:00
Marek Safar f72c67dd4a 2004-09-22 Marek Safar <[email protected]>
* class.cs (MemberBase.IsTypePermitted): New protected
	method for checking error CS0610.

svn path=/trunk/mcs/; revision=34244
2004-09-22 17:40:50 +00:00
Paolo Molaro 2f9883ad90 Fixed some code style issues.
svn path=/trunk/mono/; revision=34243
2004-09-22 17:14:53 +00:00
Martin Baulig b9aed60953 New test, not yet working.
svn path=/trunk/mcs/; revision=34242
2004-09-22 16:54:45 +00:00
Marek Safar 6270a2c6f4 update
svn path=/trunk/mcs/; revision=34241
2004-09-22 16:37:49 +00:00
Martin Baulig a411ac22d0 2004-09-22 Martin Baulig <[email protected]>
* typemanager.cs (TypeManager.LookupGenericTypeContainer): New
	public method; like LookupTypeContainer, but also works for
	generic instances.

	* report.cs (Report.SymbolRelatedToPreviousError): Use
	TypeManager.LookupGenericTypeContainer().

svn path=/trunk/mcs/; revision=34240
2004-09-22 16:33:42 +00:00
Marek Safar a0da14a754 2004-09-22 Marek Safar <[email protected]>
* class.cs (TypeContainer.HasExplicitLayout): New property
	Returns whether container has StructLayout attribute set Explicit.
	(FieldMember): New abstract class for consts and fields.
	(FieldMember.ApplyAttributeBuilder): Add error 636 and 637 report.
	(Field): Reuse FieldMember.

	* const.cs (Const): Reuse FieldMember.

	* rootcontext.cs: EmitConstants call moved to class.

svn path=/trunk/mcs/; revision=34239
2004-09-22 16:32:53 +00:00
Martin Baulig 083ab573a2 2004-09-22 Martin Baulig <[email protected]>
* test-298.cs: New test, already in gmcs.

svn path=/trunk/mcs/; revision=34238
2004-09-22 16:23:49 +00:00
Martin Baulig 7a8aa4f2f5 2004-09-22 Martin Baulig <[email protected]>
Thanks to Peter Sestoft for this bug report.

	* expression.cs (Conditional): If both the `trueExpr' and the
	`falseExpr' is a NullLiteral, return a NullLiteral.

svn path=/trunk/mcs/; revision=34237
2004-09-22 16:22:37 +00:00
Martin Baulig a531473ccb 2004-09-22 Martin Baulig <[email protected]>
* gen-78.cs: New test for #65521.

svn path=/trunk/mcs/; revision=34232
2004-09-22 16:02:46 +00:00
Martin Baulig e709ae578c 2004-09-22 Martin Baulig <[email protected]>
* statement.cs (Foreach.EmitCollectionForeach): If we're in an
	iterator, use `enumerator.EmitThis()' instead of `ec.EmitThis()'
	for the "get_Current" call.

svn path=/trunk/mcs/; revision=34231
2004-09-22 16:00:40 +00:00
Paolo Molaro 1cd75bf4df Wed Sep 22 19:06:02 CEST 2004 Paolo Molaro <[email protected]>
* interp.c: updates for stack walk interface.

svn path=/trunk/mono/; revision=34230
2004-09-22 15:53:43 +00:00
Paolo Molaro 70c925675d Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <[email protected]>
* mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
	mini-exceptions.c: updates for changed stack walk interface.

svn path=/trunk/mono/; revision=34229
2004-09-22 15:53:29 +00:00
Paolo Molaro f8a82c8db3 Wed Sep 22 19:04:32 CEST 2004 Paolo Molaro <[email protected]>
* class-internals.h, icall.c, loader.c, loader.h: added a faster stack
	walk which doesn't supply the IL offset.

svn path=/trunk/mono/; revision=34228
2004-09-22 15:53:26 +00:00
Martin Baulig 4cde264176 Somehow this line disappeared during one of the last mergings ...
svn path=/trunk/mcs/; revision=34227
2004-09-22 15:42:33 +00:00
Martin Baulig 3e651f5b22 Updated.
svn path=/trunk/mcs/; revision=34226
2004-09-22 15:23:50 +00:00
Martin Baulig 8df7ff4e2c 2004-09-22 Martin Baulig <[email protected]>
* Makefile: Added some Makefile love :-)

svn path=/trunk/mcs/; revision=34225
2004-09-22 15:10:05 +00:00
Atsushi Eno 7866795d55 2004-09-22 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatype.cs : handle xdt:* types in FromName().

svn path=/trunk/mcs/; revision=34224
2004-09-22 15:09:04 +00:00
Atsushi Eno 06bf78f60e 2004-09-22 Atsushi Enomoto <[email protected]>
* SequenceType.cs : return TypedValue instead of null in case of
	  XPathNavigator.
	* XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
	* XPathSequence.cs : rewrote FLWORIterator to iterate forlet
	  expressions based on index.

svn path=/trunk/mcs/; revision=34223
2004-09-22 15:07:58 +00:00
Martin Baulig d3ca7177bf 2004-09-22 Martin Baulig <[email protected]>
Marek and me just fixed one of our oldest bugs: #28562 :-)

	* ecore.cs (EnumConstant.GetValueAsEnumType): New public method.

	* attribute.cs (Attribute.GetAttributeArgumentExpression): If
	we're an EnumConstant, just return that.
	(Attribute.Resolve): GetAttributeArgumentExpression() may give us
	an EnumConstant.  In this case, we need to use GetValueAsEnumType()
	to get the value which'll actually be written into the attribute.
	However, we have to use GetValue() to access the attribute's value
	in the compiler.

svn path=/trunk/mcs/; revision=34221
2004-09-22 13:56:41 +00:00
Ravindra 7850ab5463 * gdipFunctions.cs: Backporting. Improved the exception message
for unsupported image formats.

svn path=/branches/mono-1-0/mcs/; revision=34220
2004-09-22 13:42:57 +00:00
Zoltan Varga b59ff7ce21 2004-09-22 Zoltan Varga <[email protected]>
* ModuleTest.cs: Add tests for NET 2.0 ResolveXXX methods.

svn path=/trunk/mcs/; revision=34218
2004-09-22 13:05:24 +00:00
Marek Safar 1f6eb1792a 2004-09-22 Marek Safar <[email protected]>
* constant.cs (Constant.IsNegative): New abstract property
	IsNegative.

	* expression.cs (ArrayAccess.DoResolve): Add warning 251.
	(StackAlloc.DoResolve): Reused IsNegative.

svn path=/trunk/mcs/; revision=34217
2004-09-22 13:02:11 +00:00
Martin Baulig f9e173275c 2004-09-22 Martin Baulig <[email protected]>
* test-297.cs: New test for #28562.

svn path=/trunk/mcs/; revision=34215
2004-09-22 12:48:01 +00:00
Martin Baulig 562af229ed 2004-09-22 Martin Baulig <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): If we're
	System.ValueType, System.Object or System.Enum, set
	`klass->instance_size' and create the vtable.
	(mono_reflection_create_internal_class): If we're an enum type,
	get the base class from our current corlib.

svn path=/trunk/mono/; revision=34214
2004-09-22 12:46:03 +00:00
Zoltan Varga 76f99d3526 2004-09-22 Zoltan Varga <[email protected]>
* Module.cs: Implement net 2.0 ResolveXXX methods.

	* Module.cs (resolve_token_exception): Fix type of exception thrown.

svn path=/trunk/mcs/; revision=34213
2004-09-22 12:45:46 +00:00
Zoltan Varga fc6f9926c3 2004-09-22 Zoltan Varga <[email protected]>
* Module.cs: Implement net 2.0 ResolveXXX methods.

svn path=/trunk/mcs/; revision=34212
2004-09-22 12:36:35 +00:00
Zoltan Varga a012f05a58 2004-09-22 Zoltan Varga <[email protected]>
* ModuleHandle.cs: Updated after changes to Module class.

svn path=/trunk/mcs/; revision=34211
2004-09-22 12:36:09 +00:00
Zoltan Varga fcf5f95511 2004-09-22 Zoltan Varga <[email protected]>
* reflection.h (MonoResolveTokenError): New type.

	* icall.c (ves_icall_System_Reflection_Module_ResolveMemberToken): New
	icall.

	* icall.c: Add an 'error' argument to the ResolveToken icalls.

svn path=/trunk/mono/; revision=34210
2004-09-22 12:33:04 +00:00
Sebastien Pouliot b405ec4492 2004-09-22 Sebastien Pouliot <[email protected]>
* RandomTest.cs: Commented test CompareWithMS following constants
	changes in Mono implementation (to use Knuth's constants).

svn path=/trunk/mcs/; revision=34209
2004-09-22 12:06:46 +00:00
Sebastien Pouliot d0fde8edcd 2004-09-22 Sebastien Pouliot <[email protected]>
* SHA224Test.cs: Fix compilation error with NUnit 2.1.91 (CVS).

svn path=/trunk/mcs/; revision=34207
2004-09-22 11:05:21 +00:00
Lluis Sanchez 783c233fca * icall.c: Support ContextBoundObject proxies in ves_icall_InternalExecute.
Support also calling constructors, but only for already allocated objects

svn path=/trunk/mono/; revision=34205
2004-09-22 10:44:13 +00:00
Miguel de Icaza 31c460bc77 Flush
svn path=/trunk/mono/; revision=34192
2004-09-21 21:31:22 +00:00
Geoff Norton 9719257901 OSX doesn't have O_SYNC; check to make sure O_SYNC is defined before compiling this part. Lets mono build on OSX again.
svn path=/trunk/mono/; revision=34191
2004-09-21 21:30:12 +00:00
Miguel de Icaza 7d63ea42e6 plug
svn path=/branches/mono-1-0/mcs/; revision=34188
2004-09-21 18:14:28 +00:00
Miguel de Icaza b33a805f58 pain
svn path=/trunk/mcs/; revision=34186
2004-09-21 18:14:10 +00:00
Miguel de Icaza 8f9bfb613a Add -g
svn path=/trunk/mcs/; revision=34185
2004-09-21 18:01:14 +00:00
Geoff Norton 9f4822fa6c Adding test case for bug #63841
svn path=/trunk/mcs/; revision=34182
2004-09-21 17:43:05 +00:00
Neale Ferguson b0c0dddcc0 Cater for Linux on S/390 in configure. Enable build by updating rule for .mdb
objects

svn path=/trunk/mono/; revision=34178
2004-09-21 16:32:35 +00:00
Neale Ferguson 3d3b5d6cde Minor OP_ARGLIST changes
svn path=/trunk/mono/; revision=34177
2004-09-21 16:27:21 +00:00
Martin Baulig 0bbb5a8b19 2004-09-21 Martin Baulig <[email protected]>
* test-295.cs: Added Geoff Norton's patch for #62984.

svn path=/trunk/mcs/; revision=34176
2004-09-21 15:52:07 +00:00
Martin Baulig e90e84ff61 Committing Geoff Norton's patch for #62984.
2004-09-17  Geoff Norton <[email protected]>

	* reflection.c (type_get_qualified_name): If the klass is null
	return the typename to avoid a NullRefEx.
	(encode_cattr_value): Get the qualified name of the boxed type,
	not the underlying enumtype.  Fixes #62984.

svn path=/trunk/mono/; revision=34175
2004-09-21 15:47:23 +00:00
Martin Baulig ecc659a8ef Merged again.
svn path=/trunk/mcs/; revision=34174
2004-09-21 15:17:54 +00:00
Martin Baulig beb2c3252c **** Merged from MCS ****
svn path=/trunk/mcs/; revision=34173
2004-09-21 15:17:34 +00:00
Martin Baulig 95231dcd8b 2004-09-21 Martin Baulig <[email protected]>
* codegen.cs (VariableStorage): Don't store the ILGenerator here;
	if we're used in an iterator, we may be called from different
	methods.

	* statement.cs (Foreach.EmitFinally): Only emit an `Endfinally' if
	we actually have an exception block.

svn path=/trunk/mcs/; revision=34171
2004-09-21 14:27:32 +00:00
Sureshkumar T 7864f6b418 * DataRow.cs: Added a new original row cache, if the current row happens
to be the original row. fixed bug #63097

svn path=/branches/mono-1-0/mcs/; revision=34169
2004-09-21 13:21:05 +00:00
Zoltan Varga 937b30aa46 2004-09-21 Zoltan Varga <[email protected]>
* marshal.c: Fix problems with previous checkin.

svn path=/trunk/mono/; revision=34166
2004-09-21 13:10:45 +00:00
Anirban Bhattacharjee 09bf99a95f 2004-09-21 Anirban Bhattacharjee <[email protected]>
* EventF.vb: Modified
        * EventI.vb: New test
        * Test.Sources: Modified

svn path=/trunk/mcs/; revision=34165
2004-09-21 13:02:12 +00:00
Zoltan Varga 347ab4483b 2004-09-21 <[email protected]>
* marshal.h marshal.c icall.c: Add new icalls for Alloc/FreeHGlobal. Change the
	existing mono_marshal_alloc/free functions to use CoTaskMemAlloc/Free under windows.

	* marshal.c: Allocate marshaller memory using mono_marshal_alloc/free.

svn path=/trunk/mono/; revision=34164
2004-09-21 12:58:43 +00:00
Sureshkumar T 8b5a801234 * DataSetTest.cs : Added a test for Deserialization of dataset : DeserializeModifiedDataSet
svn path=/branches/mono-1-0/mcs/; revision=34163
2004-09-21 12:58:11 +00:00
Anirban Bhattacharjee 0181cc6c73 2004-09-21 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Fixed bug #66231 -
         Now, Me.SubName, MyBase.SubName or any other qualified name
         is supported by AddressOf operator

svn path=/trunk/mcs/; revision=34162
2004-09-21 12:57:09 +00:00
Zoltan Varga ad73d2f22f 2004-09-21 <[email protected]>
* libtest.c: Free memory using CoTaskMemFree on windows.
	* libtest.c (mono_test_stdcall_name_mangling): Remove declspec(dllimport).

svn path=/trunk/mono/; revision=34161
2004-09-21 12:56:24 +00:00
Zoltan Varga ddd104de71 2004-09-21 Zoltan Varga <[email protected]>
* libtest.c (mono_test_stdcall_name_mangling): Add test for stdcall
	name mangling on windows.

svn path=/trunk/mono/; revision=34160
2004-09-21 12:44:21 +00:00
Zoltan Varga f0f8afae09 2004-09-21 <[email protected]>
* configure.in: Link with ole32 on windows.

svn path=/trunk/mono/; revision=34159
2004-09-21 11:25:18 +00:00
Sanja Gupta 52c980e8e1 ChangeLog: Updated ChangeLog.
FormViewUpdatedEventArgs.cs: Spelling mistake.

svn path=/trunk/mcs/; revision=34158
2004-09-21 11:23:09 +00:00
Lluis Sanchez 652840c106 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
when reading a primitive value in encoded format using
	  ReadReferencingElement, provide the type name and namespace
	  since the xsi type may not be present in the xml element. This
	  fixes bug #65929.

svn path=/trunk/mcs/; revision=34157
2004-09-21 09:59:17 +00:00
César Natarén fd095eab06 2004-09-21 Cesar Lopez Nataren <[email protected]>
* FunctionDeclaration.cs: check for parent being a ScriptBlock.

svn path=/trunk/mcs/; revision=34156
2004-09-21 07:54:01 +00:00
Raja R Harinath 367078baed Print 'IGNORED' when a test is ignored.
svn path=/trunk/mcs/; revision=34155
2004-09-21 04:55:50 +00:00
Raja R Harinath 7a5e0df1f9 (net20bootstrapcorlib): Rename from net20bootstraplib.
Build 'mscorlib.dll' using the 'net_2_0_bootstrap' profile.
(net20bootstrapSystem): New.  Build 'System.dll' using the
'net_2_0_bootstrap' profile.
($(gmcs)): Depend on both the above.
(CLEAN_FILES) [PROFILE=net_2_0]: Clean the 'net_2_0_bootstrap'
profile and 'gmcs' too.

svn path=/trunk/mcs/; revision=34154
2004-09-21 04:54:48 +00:00
Raja R Harinath c1375b2791 (lib_file) [PROFILE=net_2_0]: New test. Use
net_2_0_bootstrap libraries if necessary.
($(the_lib)): Don't depend on a phony target.  Move 'echo-warning' ...
(all-local): ... here.  Will now warn unnecessarily, but is better
than rebuilding the library each time.

svn path=/trunk/mcs/; revision=34153
2004-09-21 04:54:25 +00:00
Raja R Harinath 7210f8f2d6 (AssemblyVersion): Define to 2.0.x when
BOOTSTRAP_NET_2_0 is defined.

svn path=/trunk/mcs/; revision=34152
2004-09-21 04:54:03 +00:00
Raja R Harinath 4cd13e7617 New file.
svn path=/trunk/mcs/; revision=34151
2004-09-21 04:53:32 +00:00
Raja R Harinath 47d275abbb (DIST_ONLY_SUBDIRS): Add 'gmcs' since it is specially
handled by 'class/corlib/Makefile'.
(test-installed-compiler): Run compiler tests using the installed
compiler.

svn path=/trunk/mcs/; revision=34150
2004-09-21 04:53:09 +00:00
Peter Dennis Bartok fc05e321a0 - Fixed accessibility level for Idle handler
svn path=/trunk/mcs/; revision=34148
2004-09-21 04:14:29 +00:00
Geoff Norton 46c8139197 2004-09-21 Geoff Norton <[email protected]>
* icall.c (ves_icall_MonoType_GetElementType): GetElementType
        should only return a type for pointers, arrays, and passbyref types.
        Fixes bug #63841.

svn path=/trunk/mono/; revision=34147
2004-09-21 04:02:20 +00:00
Geoff Norton ce9a98b6a9 2004-09-21 Geoff Norton <[email protected]>
* Type.cs: BindingFlags.IgnoreCase was being ignored, this reimplements
        this filter. Fixes bug #65778.

svn path=/trunk/mcs/; revision=34145
2004-09-21 03:56:00 +00:00
Raja R Harinath 70763cb8f8 (the_mdb): Fix.
(library_CLEAN_FILES): Add the new test results files too.

svn path=/trunk/mcs/; revision=34143
2004-09-21 03:34:51 +00:00
Martin Baulig 9c9795ef44 2004-09-21 Martin Baulig <[email protected]>
* gen-77.cs: New test for #66014.

svn path=/trunk/mcs/; revision=34139
2004-09-21 01:16:42 +00:00
Martin Baulig db796f5b7c 2004-09-21 Martin Baulig <[email protected]>
* convert.cs (Convert.ImplicitReferenceConversion): When
	converting to an interface type, first check whether we're
	converting from a reference type.

svn path=/trunk/mcs/; revision=34138
2004-09-21 01:13:50 +00:00
Jackson Harper 3b20b6c442 New message loop that uses poll so we don't get a busy loop
svn path=/trunk/mcs/; revision=34137
2004-09-21 00:54:15 +00:00
Martin Baulig aa84b79d6c Oooops.
svn path=/trunk/mono/; revision=34136
2004-09-21 00:42:47 +00:00
César Natarén a97aa3558f good bye antlr
svn path=/trunk/mcs/; revision=34135
2004-09-20 23:57:30 +00:00
César Natarén 28f9a93fd2 remove antlr stuff.
svn path=/trunk/mcs/; revision=34134
2004-09-20 23:53:09 +00:00
César Natarén 689e4c844e remove antlr stuff.
svn path=/trunk/mcs/; revision=34133
2004-09-20 23:46:13 +00:00
César Natarén 334245e874 remove antl stuff.
svn path=/trunk/mcs/; revision=34132
2004-09-20 23:44:23 +00:00
César Natarén 44c912898f remove antlr stuff
svn path=/trunk/mcs/; revision=34131
2004-09-20 23:43:32 +00:00
César Natarén 29f3db7ed5 delete files generated by antlr.
svn path=/trunk/mcs/; revision=34130
2004-09-20 23:35:09 +00:00
César Natarén 5ca89edf5e changelog entries
svn path=/trunk/mcs/; revision=34129
2004-09-20 23:18:48 +00:00
César Natarén 0d9673aa6e * CodeGenerator.cs: fixes for fall_true & fall_false for taking care of ast when is a Expre\ssion.
svn path=/trunk/mcs/; revision=34128
2004-09-20 23:17:28 +00:00
César Natarén eda00052a1 * IdentificationTable.cs: added method Remove.
svn path=/trunk/mcs/; revision=34127
2004-09-20 23:16:47 +00:00
César Natarén e08f20b1c3 * JSFunctionAttribute.cs: added fields value and built_in_function
so we can decide when a method is really a built in.

svn path=/trunk/mcs/; revision=34126
2004-09-20 23:16:27 +00:00
César Natarén 6245f90812 * MathObject.cs: added internal constructor.
svn path=/trunk/mcs/; revision=34125
2004-09-20 23:16:01 +00:00
César Natarén df60be8921 * Parser.cs:fixes to keep track of the inheritance chain.
svn path=/trunk/mcs/; revision=34124
2004-09-20 23:15:40 +00:00
César Natarén e7cb543f36 * Relational.cs: added code generation for ops instanceof and
svn path=/trunk/mcs/; revision=34123
2004-09-20 23:15:06 +00:00
César Natarén ba2df53441 * SemanticAnalizer.cs: added hash global_env and
IdentificationTable label_set for keeping track of global methods and
        label sets. Added static constructor, method BuildGlobalEnv,
        ImplementationName, ObjectSystemContains, AddLabel, ContainsLabel,
        GetLabel, RemoveLabel.

svn path=/trunk/mcs/; revision=34122
2004-09-20 23:14:45 +00:00
César Natarén aded8a0417 * Statement.cs: Added abstract class Jump of which Continue and
Break inherit, checks the label stuff. Added checks for Label
        stuff to Continue and Break classes. Added method Init for
        DoWhile. Fixes for loops statements in order to be able for have
        nested loops. Initial support for Label statements.

svn path=/trunk/mcs/; revision=34121
2004-09-20 23:14:20 +00:00
César Natarén d08f81d9e4 * SymbolTable.cs: added method Remove.
svn path=/trunk/mcs/; revision=34120
2004-09-20 23:13:51 +00:00
César Natarén a08eb0810a * ast.cs: added check for parent equal to ScriptBlock.
svn path=/trunk/mcs/; revision=34119
2004-09-20 23:13:20 +00:00
César Natarén 26eaed5e82 * expression.cs: added semantic analysis for accessing fields on
class Binary. Semantic Analysis for Calls it takes care of
        constructors and methods, added invocation code for built in
        methods. Added interface IAccesible that let us resolve the '.'
        operator. Class Args handles missing or surplus arguments. Added
        class BuiltIn which will take care of all builtins of ECMAScript.

svn path=/trunk/mcs/; revision=34118
2004-09-20 23:12:56 +00:00
Martin Baulig 6bf5207c4e 2004-09-21 Martin Baulig <[email protected]>
* main.c (main): If just a single assembly was specified, use the
	runtime version it requires.

svn path=/trunk/mono/; revision=34117
2004-09-20 23:04:50 +00:00
Martin Baulig edc329d672 2004-09-21 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoDebuggerSupport.CheckRuntimeVersion): New
	public method.

svn path=/trunk/mcs/; revision=34114
2004-09-20 23:02:44 +00:00
Martin Baulig 8e71452c84 2004-09-21 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_CheckRuntimeVersion): New internal method.

svn path=/trunk/mcs/; revision=34113
2004-09-20 23:01:58 +00:00
Martin Baulig 4aae124931 2004-09-21 Martin Baulig <[email protected]>
* domain.c (mono_debugger_check_runtime_version): New public
	function.

	* icall.c (ves_icall_MonoDebugger_check_runtime_version): New icall.

svn path=/trunk/mono/; revision=34112
2004-09-20 23:01:16 +00:00
César Natarén 6b409ab63a 2004-09-20 Cesar Lopez Nataren <[email protected]>
* Microsoft.JScript.dll.sources: drop antlr dependency.

svn path=/trunk/mcs/; revision=34104
2004-09-20 21:49:53 +00:00
Sebastien Pouliot babb0660b1 2004-09-20 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: Fixed assembly-level permissions. I don't know
	why I splitted them all into individual entries when only a single set
	is accepted for each security action :(.

svn path=/trunk/mcs/; revision=34103
2004-09-20 20:56:00 +00:00
Gert Driesen 658293d599 * System.dll.sources: Moved ReadOnlyCollection.cs and Collection.cs
from corlib to System.Collections.Generic in System assembly

svn path=/trunk/mcs/; revision=34101
2004-09-20 19:19:28 +00:00
Gert Driesen 7eeddc0328 * ReadOnlyCollection.cs: Moved over from corlib
* Collection.cs: Moved over from corlib

svn path=/trunk/mcs/; revision=34100
2004-09-20 19:18:58 +00:00
Gert Driesen 6bcb854d93 * corlib.dll.sources: Removed ReadOnlyCollections.cs and Collection.cs
from corlib System.Collections.Generics to System assembly

svn path=/trunk/mcs/; revision=34099
2004-09-20 19:16:21 +00:00
Gert Driesen 6b1ee037b0 * ReadOnlyCollection.cs: Moved to System assembly
* Collection.cs: Moved to System assembly

svn path=/trunk/mcs/; revision=34098
2004-09-20 19:14:57 +00:00
Jackson Harper 42541bb988 * support/map.c/h: Add poll events map functions. Use values
instead of names for defines.

svn path=/trunk/mono/; revision=34096
2004-09-20 18:44:18 +00:00
Gert Driesen 55e02abcc4 * XmlValidatingReader.cs: Added deprecation message.
svn path=/trunk/mcs/; revision=34095
2004-09-20 18:21:55 +00:00
Martin Baulig 3eb35a4831 Updated.
svn path=/trunk/mcs/; revision=34092
2004-09-20 16:41:34 +00:00
Sebastien Pouliot 56a13be590 2004-09-20 Sebastien Pouliot <[email protected]>
* reflection.c: Added missing sort to the declarative security
	attributes table. MS implementation stops seeing the attributes if the
	token number regress in the table (as shown by ildasm and permview).

svn path=/trunk/mono/; revision=34091
2004-09-20 16:05:46 +00:00
Miguel de Icaza 3cdb97dd43 2004-09-20 John Luke <[email protected]>
* class.cs, cs-parser.jay: Improve the error report for 1520:
	report the actual line where the error happens, not where the
	class was declared.

svn path=/trunk/mcs/; revision=34088
2004-09-20 15:38:28 +00:00
Miguel de Icaza 0dface6788 2004-09-20 John Luke <[email protected]>
* assign.cs, delegate.cs, ecore.cs, expression.cs, statement.cs:
	Pass location information that was available elsewhere.

svn path=/trunk/mcs/; revision=34087
2004-09-20 15:36:26 +00:00
Raja R Harinath feabb2a771 Profile for bootstraping the GMCS compiler.
svn path=/trunk/mcs/; revision=34086
2004-09-20 12:08:40 +00:00
Zoltan Varga 7bb4bd6967 2004-09-20 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionModule): Add 'token' field.

svn path=/trunk/mono/; revision=34085
2004-09-20 11:29:37 +00:00
Zoltan Varga 679fe90d18 2004-09-20 Zoltan Varga <[email protected]>
* AssemblyTest.cs: Add tests for MetadataToken and ManifestModule.

svn path=/trunk/mcs/; revision=34084
2004-09-20 11:23:14 +00:00
Zoltan Varga 02e4a0987b 2004-09-20 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionModule): Add 'token' field.

	* reflection.c (mono_reflection_get_token): Add support for Module
	and Assembly.
	(mono_module_get_object): Set 'token' field.
	(mono_module_file_get_object): Set 'token' field.

	* icall.c: Add new Assembly and Module icalls.

svn path=/trunk/mono/; revision=34083
2004-09-20 11:14:13 +00:00
Zoltan Varga 8b0284d70c 2004-09-20 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=34082
2004-09-20 11:10:54 +00:00
Zoltan Varga 7aa9a55f4a 2004-09-20 Zoltan Varga <[email protected]>
* Assembly.cs: Implement 2.0 reflection properties.

	* Module.cs: Implement 2.0 reflection properties. Add 'token' field.

svn path=/trunk/mcs/; revision=34081
2004-09-20 11:10:00 +00:00
Ravindra 917ec397b8 Added a note to Guidelines.
svn path=/trunk/mcs/; revision=34080
2004-09-20 05:41:41 +00:00
Sebastien Pouliot 0a1757c683 2004-09-19 Sebastien Pouliot <[email protected]>
* codegen.cs: Fix bug #56621. It is now possible to use MCS on the MS
	runtime to delay sign assemblies.

svn path=/trunk/mcs/; revision=34076
2004-09-20 00:25:52 +00:00
Sebastien Pouliot 0e2007a6b5 2004-09-19 Alexis Christoforides <[email protected]>
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
	the MS implementation.
	* UnionCodeGroup.cs: Resolve() will now perform union on child code
	groups.
	* FileCodeGroup.cs: Resolve() will now perform union on child code
	groups.
	* NetCodeGroup.cs: Resolve() will now perform union on child code
	groups.

svn path=/trunk/mcs/; revision=34075
2004-09-20 00:00:14 +00:00
Sebastien Pouliot e2740655bb 2004-09-19 Alexis Christoforides <[email protected]>
* UnionCodeGroupTest.cs: Added ResolveWithChildren test.

svn path=/trunk/mcs/; revision=34074
2004-09-19 23:57:35 +00:00
Zoltan Varga eec373bbc2 2004-09-19 Zoltan Varga <[email protected]>
* PortableExecutableKind.cs ImageFileMachine.cs: Make this internal
	under 1.0.

svn path=/trunk/mcs/; revision=34071
2004-09-19 14:55:06 +00:00
Zoltan Varga f58406ebc3 2004-09-19 Zoltan Varga <[email protected]>
* ModuleHandleTest.cs: New file.

svn path=/trunk/mcs/; revision=34070
2004-09-19 14:41:15 +00:00
Zoltan Varga 7802cedf5b 2004-09-19 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Added System/ModuleHandleTest.

svn path=/trunk/mcs/; revision=34069
2004-09-19 14:39:00 +00:00
Zoltan Varga f0279c8e11 2004-09-19 Zoltan Varga <[email protected]>
* MemberInfo.cs ParameterInfo.cs: Add MetadataToken property.

	* Module.cs: Add ModuleHandle property and new icalls.

svn path=/trunk/mcs/; revision=34068
2004-09-19 14:36:11 +00:00
Zoltan Varga 59b22d42b3 2004-09-19 Zoltan Varga <[email protected]>
* corlib.dll.sources: Added System/ModuleHandle.

svn path=/trunk/mcs/; revision=34067
2004-09-19 14:34:00 +00:00
Zoltan Varga 5015881786 2004-09-19 Zoltan Varga <[email protected]>
* ModuleHandle.cs: New file.

	* RuntimeFieldHandle.cs: Add an internal ctor.

svn path=/trunk/mcs/; revision=34066
2004-09-19 14:32:22 +00:00
Zoltan Varga 5fe595b383 2004-09-19 Zoltan Varga <[email protected]>
* loader.h loader.c class.h class.c: Add helper functions for obtaining
	tokens of metadata objects.

	* reflection.h reflection.c (mono_reflection_get_token): New function
	to obtain the token of a metadata object.

	* icall.c: Add icalls for MetadataToken and ModuleHandle methods.

svn path=/trunk/mono/; revision=34065
2004-09-19 14:29:49 +00:00
Dick Porter 361a8714bf 2004-09-19 Dick Porter <[email protected]>
* Console.cs: Use the internal wrappers for StreamReader and
	StreamWriter that catch IOException.

2004-09-19  Dick Porter  <[email protected]>

	* UnexceptionalStreamWriter.cs:
	* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
	StreamReader that catch IOException.  Used by System.Console so
	that graphical applications dont get IO errors when their
	stdin/out/err vanishes (ie when they spew debug output.)

svn path=/branches/mono-1-0/mcs/; revision=34064
2004-09-19 12:52:22 +00:00
nobody 98a86ecd4b This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=34063
2004-09-19 12:52:22 +00:00
Dick Porter 26151aafa2 2004-09-19 Dick Porter <[email protected]>
* Console.cs: Use the internal wrappers for StreamReader and
	StreamWriter that catch IOException.

2004-09-19  Dick Porter  <[email protected]>

	* UnexceptionalStreamWriter.cs:
	* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
	StreamReader that catch IOException.  Used by System.Console so
	that graphical applications dont get IO errors when their
	stdin/out/err vanishes (ie when they spew debug output.)

svn path=/trunk/mcs/; revision=34062
2004-09-19 12:52:12 +00:00
Sureshkumar T 61cce9e3d8 2004-09-19 Sureshkumar T <[email protected]>
* DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
		       hence, adding a row cache is necessary if the original row happens to be current.
		       fixed bug #63097

svn path=/trunk/mcs/; revision=34061
2004-09-19 08:16:16 +00:00
Sureshkumar T 3b8a683795 2004-09-19 Sureshkumar T <[email protected]>
* DataSetTest.cs : Added a test for Deserialization of dataset : DeserializeModifiedDataSet

svn path=/trunk/mcs/; revision=34060
2004-09-19 08:13:36 +00:00
Miguel de Icaza 68bc46f8ac 2004-09-19 Miguel de Icaza <[email protected]>
* cs-parser.jay: Do not report the stack trace, it is useless
	anyways for the production compiler.

svn path=/branches/mono-1-0/mcs/; revision=34059
2004-09-19 04:02:42 +00:00
Miguel de Icaza b84390b7cf 2004-09-19 Miguel de Icaza <[email protected]>
* cs-parser.jay: Do not report the stack trace, this is barely
	used nowadays.

svn path=/trunk/mcs/; revision=34058
2004-09-19 04:01:41 +00:00
Miguel de Icaza a0eb680eed 2004-08-22 John Luke <[email protected]>
* driver.cs : check that a resource id is not already used
	before adding it, report CS1508 if it is, bug #63637

svn path=/trunk/mcs/; revision=34057
2004-09-19 03:59:03 +00:00
Miguel de Icaza 3f038423b5 Some warning removal, and dead code elimination, brought to you by -warn:4
svn path=/trunk/mcs/; revision=34056
2004-09-19 03:56:33 +00:00
Miguel de Icaza a3813e158d Back to 2 for now, temporarily
svn path=/trunk/mcs/; revision=34055
2004-09-19 03:38:02 +00:00
Jackson Harper a8c86c9457 * Syscall.cs: Add support for poll ().
svn path=/trunk/mcs/; revision=34052
2004-09-18 20:42:16 +00:00
Marek Safar 8731d4a3c2 oups, private -> protected
svn path=/trunk/mcs/; revision=34051
2004-09-18 20:29:14 +00:00
Francisco Figueiredo Jr. 7170f17b20 2004-09-18 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlCommand.cs:
        GetClearCommandText: Fixed an infinite loop when trying to use a parameter whose name is equals to same type name.
        i.e.: parameter name :text which would conflict with :text parameter name which was being added in the replacement string.
    * NpgsqlTypes/NpgsqlTypeConverters.cs:
        BasicNativeToBackendTypeConverter.ToString: Fixed handling of strings with backslashes. Now they are properly escaped.

svn path=/trunk/mcs/; revision=34050
2004-09-18 20:28:37 +00:00
Marek Safar 3cc212df67 2004-09-18 Marek Safar <[email protected]>
* class.cs: Do not report warning CS0067 on the interfaces.

svn path=/trunk/mcs/; revision=34049
2004-09-18 19:47:08 +00:00
Martin Baulig e16f34ab8d Ooops.
svn path=/branches/mono-1-0/mono/; revision=34047
2004-09-18 17:56:47 +00:00
Jackson Harper f6bc4c864f * make-map.cs: Use field value not name for #defines.
svn path=/trunk/mcs/; revision=34046
2004-09-18 17:46:52 +00:00
John Luke 8582cef34c 2004-09-18 John Luke <[email protected]>
* outline.cs: add const = value; for const fields (Ben's idea)
        detect ParamArrayAttribute for parameters

svn path=/trunk/mcs/; revision=34045
2004-09-18 17:44:09 +00:00
Martin Baulig 6b6747750d 2004-09-18 Martin Baulig <[email protected]>
* mono-debug.c, debug-mono-symfile.c: Merged my locking changes
	from HEAD.

svn path=/branches/mono-1-0/mono/; revision=34043
2004-09-18 17:28:46 +00:00
Zoltan Varga 641e1b280e 2004-09-18 Zoltan Varga <[email protected]>
* Module.cs: Add net 2.0 Mvid property.

svn path=/trunk/mcs/; revision=34042
2004-09-18 16:31:00 +00:00
Francisco Figueiredo Jr. 4da18b29e7 2004-09-18 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlCommand.cs,
        NpgsqlConnector.cs:  Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.

svn path=/trunk/mcs/; revision=34038
2004-09-18 14:34:55 +00:00
Francisco Figueiredo Jr. dd1a54933b 2004-09-18 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlCommand.cs,
        NpgsqlConnector.cs:  Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.

svn path=/trunk/mcs/; revision=34037
2004-09-18 14:27:20 +00:00
Miguel de Icaza 531b9d6b4e Up
svn path=/trunk/mcs/; revision=34035
2004-09-17 23:17:12 +00:00
Peter Dennis Bartok 7597c3550c - Updated to describe the new managed version of System.Windows.Forms
svn path=/trunk/mono/; revision=34032
2004-09-17 21:32:15 +00:00
Miguel de Icaza c9249e1ecf up this
svn path=/branches/mono-1-0/mcs/; revision=34024
2004-09-17 19:55:04 +00:00
Miguel de Icaza 240c658c9f Up
svn path=/branches/mono-1-0/mono/; revision=34023
2004-09-17 19:44:12 +00:00
Zoltan Varga dcb3979456 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=34021
2004-09-17 18:35:00 +00:00
Zoltan Varga 6e137c9b68 2004-09-17 Zoltan Varga <[email protected]>
* loader.c (mono_lookup_pinvoke_call): Try the underscore prefixed name as well.

svn path=/trunk/mono/; revision=34020
2004-09-17 18:12:57 +00:00
Zoltan Varga 93afb2362b 2004-09-17 Zoltan Varga <[email protected]>
* loader.c (mono_lookup_pinvoke_call): Add support for stdcall name mangling.

svn path=/trunk/mono/; revision=34019
2004-09-17 17:57:15 +00:00
Zoltan Varga 95828c7b36 2004-09-17 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add test for stdcall name mangling on windows.

svn path=/trunk/mono/; revision=34018
2004-09-17 17:56:09 +00:00
Peter Dennis Bartok 0e5f65c117 - Fixed behaviour of arrow buttons. Now properly behaves like Buttons (and
like Microsoft's scrollbar arrow buttons)

svn path=/trunk/mcs/; revision=34017
2004-09-17 16:43:27 +00:00
Peter Dennis Bartok 8bc46ec3d3 - Added missing release of keyboard/mouse capture
svn path=/trunk/mcs/; revision=34016
2004-09-17 16:14:36 +00:00
Martin Baulig 014e618ec3 2004-09-17 Martin Baulig <[email protected]>
* Makefile.am (mcs-do-compiler-tests): Reverted Raja's latest
	change in this target.

svn path=/trunk/mono/; revision=34015
2004-09-17 16:13:25 +00:00
Sebastien Pouliot 711ce20289 2004-09-17 Sebastien Pouliot <[email protected]>
* SequentialSearchPrimeGeneratorBase.cs: In synch with corlib version.
	Fixed all level 4 compilation warnings.

svn path=/trunk/mcs/; revision=34013
2004-09-17 14:32:37 +00:00
Sebastien Pouliot 5c6cbf6501 2005-09-17 Sebastien Pouliot <[email protected]>
* BigInteger.cs: In sync with coirlib. This fix level 4 warnings about
	CLSCompliant.

svn path=/trunk/mcs/; revision=34012
2004-09-17 14:31:09 +00:00
Sebastien Pouliot 95acc42dcd 2004-09-17 Sebastien Pouliot <[email protected]>
* ASN1.cs: In synch with corlib version. Fixed all level 4 compilation
	warnings.
	* PKCS7.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.

svn path=/trunk/mcs/; revision=34011
2004-09-17 14:16:53 +00:00
Sebastien Pouliot 9181ad5865 2004-09-17 Sebastien Pouliot <[email protected]>
* CryptoConvert.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.
	* KeyPairPersistence.cs: In synch with corlib version. Fixed all level
	4 compilation warnings.
	* PKCS1.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.
	* SHA224Managed.cs: Fixed all level 4 compilation warnings.

svn path=/trunk/mcs/; revision=34010
2004-09-17 14:14:26 +00:00
Sebastien Pouliot 6ba0d45cc9 2004-09-17 Sebastien Pouliot <[email protected]>
* PKCS12.cs: Fixed all level 4 compilation warnings.
	* X501Name.cs: Fixed all level 4 compilation warnings.
	* X509Certificate.cs: Fixed all level 4 compilation warnings.
	* X509CertificateBuilder.cs: Fixed all level 4 compilation warnings.
	* X509Extension.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.
	* X520Attributes.cs: Updated to check upperbounds - which fixed level
	4 compilation warnings.

svn path=/trunk/mcs/; revision=34009
2004-09-17 14:11:41 +00:00
Sebastien Pouliot 6aec501360 2004-09-17 Sebastien Pouliot <[email protected]>
* AuthenticodeDeformatter.cs: In synch with corlib version. Fixed all
	level 4 compilation warnings.
	* AuthenticodeFormatter.cs: Fixed all level 4 compilation warnings.
	* PrivateKey.cs: Fixed all level 4 compilation warnings.

svn path=/trunk/mcs/; revision=34008
2004-09-17 14:05:07 +00:00
Sebastien Pouliot f7bd4bf6f4 2004-09-17 Sebastien Pouliot <[email protected]>
* MiniParser.cs: In synch with corlib version. Removed all level 4
	compilation warnings.

svn path=/trunk/mcs/; revision=34007
2004-09-17 14:01:02 +00:00
Sebastien Pouliot 289828576d 2004-09-17 Sebastien Pouliot <[email protected]>
* Mono.Security.dll.sources: Added support for SHA224 hash algorithm
	in Mono.Security.Cryptography.
	* Mono.Security_test.dll.sources: Added unit tests for SHA224 hash
	algorithm.

svn path=/trunk/mcs/; revision=34006
2004-09-17 12:58:53 +00:00
Sebastien Pouliot 21819f74be 2004-09-17 Sebastien Pouliot <[email protected]>
* SHA224.cs: New. Abstract class for all SHA224 implementations.
	* SHA224Managed.cs: New. Managed implementation of SHA224 (a SHA256
	derivate) as specified in RFC3874 and FIPS 180-2 Change Notice.

svn path=/trunk/mcs/; revision=34005
2004-09-17 12:54:18 +00:00
Sebastien Pouliot 0fba45ee52 2004-09-16 Sebastien Pouliot <[email protected]>
* SHA224ManagedTest.cs: New. Unit tests for the managed implementation
	of SHA-224.
	* SHA224Test.cs: New. Unit tests for SHA-224. Use test vectors from
	RFC3874.

svn path=/trunk/mcs/; revision=34004
2004-09-17 12:45:00 +00:00
Jordi Mas i Hernandez bbde67052b Very early menu support
svn path=/trunk/mcs/; revision=34003
2004-09-17 12:19:16 +00:00
Marek Safar c2c2dd8861 2004-09-17 Marek Safar <[email protected]>
* Font.cs (FromHfont, ToHfont): Fixed windows implementation.
	ToLogFont: Implemented.

	* gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
	avoid casts.
	GdipCreateFontFromLogfontA: A new extern call.

svn path=/trunk/mcs/; revision=34002
2004-09-17 12:10:46 +00:00
Rafael Teixeira 86dc532f23 small loop condition adjustment
svn path=/trunk/mcs/; revision=34001
2004-09-17 11:32:38 +00:00
Zoltan Varga fede8af1b3 2004-09-17 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.

svn path=/branches/mono-1-0/mono/; revision=34000
2004-09-17 11:06:56 +00:00
Zoltan Varga c4e43f6106 2004-09-17 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods.

svn path=/trunk/mono/; revision=33999
2004-09-17 11:04:27 +00:00
Zoltan Varga ee41d78bd8 2004-09-17 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.

svn path=/branches/mono-1-0/mcs/; revision=33998
2004-09-17 10:13:41 +00:00
Zoltan Varga f0a00f5f99 2004-09-17 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.

svn path=/trunk/mcs/; revision=33997
2004-09-17 10:12:39 +00:00
Sebastien Pouliot 4e61e9daf2 2004-09-16 Sebastien Pouliot <[email protected]>
* Signature.cs: Fixed Xmldsig and broken unit tests.
	* SignedXml.cs: Fixed warning (level 4) for unused variable.
	* XmlDsigEnvelopedSignatureTransform.cs: Fixed warning (l4) for unused
	variable.

svn path=/trunk/mcs/; revision=33996
2004-09-17 01:02:27 +00:00
Peter Dennis Bartok a7802dc259 - Fixed sending a window to the front
- Added overload for SetWindowPos to avoid casting

svn path=/trunk/mcs/; revision=33995
2004-09-16 23:45:09 +00:00
Peter Dennis Bartok 918f56da8d - Added SendToBack and BringToFront methods
svn path=/trunk/mcs/; revision=33994
2004-09-16 23:44:19 +00:00
Sebastien Pouliot 30eba92a89 2004-09-16 Sebastien Pouliot <[email protected]>
* SequentialSearchPrimeGeneratorBase.cs: Fixed warning (l4) for unused
	variables.

svn path=/trunk/mcs/; revision=33993
2004-09-16 23:32:58 +00:00
Sebastien Pouliot c66ce3ef1f 2004-09-16 Sebastien Pouliot <[email protected]>
* AuthenticodeDeformatter.cs: Fixed warning (l4) for unused variables.

svn path=/trunk/mcs/; revision=33992
2004-09-16 23:29:47 +00:00
Sebastien Pouliot 85b8afd511 2004-09-16 Sebastien Pouliot <[email protected]>
* CryptoConvert.cs: Fixed warning (l4) for unused variables.
	* KeyPairPersistence.cs: Fixed warning (l4) for unused variable.
	* PKCS1.cs: Added empty {} to fix warning about possible empty stmnt.

svn path=/trunk/mcs/; revision=33991
2004-09-16 23:28:43 +00:00
Sebastien Pouliot 51a31fa4f1 2004-09-16 Sebastien Pouliot <[email protected]>
* ASN1.cs: Fixed warning (l4) for unused variable.
	* PKCS7.cs: Fixed warning (l4) for unused variable.
	* Uri.cs: Fixed warning (l4) for unused variables. Remove sealed from
	class to reduce number of warnings.

svn path=/trunk/mcs/; revision=33990
2004-09-16 23:24:01 +00:00
Sebastien Pouliot 3dc3ad1ffd 2004-09-16 Sebastien Pouliot <[email protected]>
* MiniParser.cs: Fixed warning (l4) for unused variables. Removed
	duplicate (and identical) license.

svn path=/trunk/mcs/; revision=33989
2004-09-16 23:21:39 +00:00
Sebastien Pouliot c28a8a7681 2004-09-16 Sebastien Pouliot <[email protected]>
* DESCryptoServiceProvider.cs: Fixed warning (l4) by adding empty {}.
	* DSASignatureDeformatter.cs: Fixed warning (l4) for unused variable.
	* DSASignatureFormatter.cs: Fixed warning (l4) for unused variable.
	* HMACSHA1.cs: Fixed warning (l4) for unused variable.

svn path=/trunk/mcs/; revision=33988
2004-09-16 23:19:15 +00:00
Sebastien Pouliot 6c95d9bff3 2004-09-16 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Fixed warning (l4) for unused variable.
	* StrongNameIdentityPermissionAttribute.cs: Fixed warning (l4)...

svn path=/trunk/mcs/; revision=33987
2004-09-16 23:17:04 +00:00
Sebastien Pouliot ee8314380e 2004-09-16 Sebastien Pouliot <[email protected]>
* PolicyLevel.cs: Fixed warning by re-activating safeguard

svn path=/trunk/mcs/; revision=33986
2004-09-16 23:15:57 +00:00
Sebastien Pouliot 8bb2b40b3e 2004-09-16 Sebastien Pouliot <[email protected]>
* Environment.cs: Bumped mono_corlib_version to 25.

svn path=/trunk/mcs/; revision=33985
2004-09-16 19:42:26 +00:00
Sebastien Pouliot 0c68fb5bc2 2004-09-16 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: Keep a copy of the 3 permission set as an array
	of RefEmitPermissionSet. This will allow to reuse existing
	functionalities already present in the runtime.

svn path=/trunk/mcs/; revision=33984
2004-09-16 19:41:40 +00:00
Sebastien Pouliot 806ca2d530 2004-09-16 Sebastien Pouliot <[email protected]>
* appdomain.c: Bumped MONO_CORLIB_VERSION to 25.
	* object-internals.h: Added 3 MonoArray* members to MonoReflection
	AssemblyBuilder to access the permissions set in the class lib.
	* reflection.c: Added security attributes encoding step in
	mono_image_build_metadata.

svn path=/trunk/mono/; revision=33983
2004-09-16 19:41:14 +00:00
Marek Safar 85fc95c87e update
svn path=/trunk/mcs/; revision=33982
2004-09-16 19:11:10 +00:00
Marek Safar df79c136ca 2004-09-16 Marek Safar <[email protected]>
* cs-parser.jay: Add error 504 report.

svn path=/trunk/mcs/; revision=33981
2004-09-16 19:09:46 +00:00
Gonzalo Paniagua Javier 7943b58902 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback twice when the timer changes.
	Fixes bug #66116.

svn path=/branches/mono-1-0/mcs/; revision=33976
2004-09-16 18:35:19 +00:00
Gonzalo Paniagua Javier 4c07adad95 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback twice when the timer changes.
	Fixes bug #66116.

svn path=/trunk/mcs/; revision=33975
2004-09-16 18:33:27 +00:00
Sebastien Pouliot e312c96e86 2004-09-16 Sebastien Pouliot <[email protected]>
* dump.c: Added new security actions added in 2.0: LinkDemandChoice,
	InheritanceDemandChoice and DemandChoice.
	* main.c: Added ".permissionset" to output IL. Removed "hassecurity"
	as MS ilasm can't compile it.

svn path=/trunk/mono/; revision=33974
2004-09-16 18:27:44 +00:00
Sebastien Pouliot f310e5c293 2004-09-16 Sebastien Pouliot <[email protected]>
* tabledefs.h: Added new security actions defined in 2.0:
	LinkDemandChoice, InheritanceDemandChoice and DemandChoice.

svn path=/trunk/mono/; revision=33973
2004-09-16 18:24:09 +00:00
Zoltan Varga e71f25e912 2004-09-16 Zoltan Varga <[email protected]>
* get.c (get_token): Add support for memberrefs.

svn path=/trunk/mono/; revision=33972
2004-09-16 18:13:31 +00:00
Martin Baulig 2891b9185d Updated.
svn path=/trunk/mcs/; revision=33971
2004-09-16 17:47:19 +00:00
Lluis Sanchez c888d194da * threads.c: Fixed SET_CURRENT_OBJECT macros, they were ignoring the
macro parameter.

svn path=/trunk/mono/; revision=33970
2004-09-16 17:25:04 +00:00
Martin Baulig 8b2c8b6319 2004-09-16 Martin Baulig <[email protected]>
* Makefile: Disable test-294.cs and test-287.cs.

svn path=/trunk/mcs/; revision=33969
2004-09-16 17:05:49 +00:00
Lluis Sanchez c5f92ee212 * locales.c: nullify the ICU_collator member of CompareInfo when it is
finalized. There where random SIGSEVs at program termination, when
	  an object being finalized was trying to do a string comparison and
	  the current culture was already finalized.

svn path=/branches/mono-1-0/mono/; revision=33968
2004-09-16 15:52:44 +00:00
Lluis Sanchez 8439e9b0e1 * locales.c: nullify the ICU_collator member of CompareInfo when it is
finalized. There where random SIGSEVs at program termination, when
	  an object being finalized was trying to do a string comparison and
	  the current culture was already finalized.

svn path=/trunk/mono/; revision=33967
2004-09-16 15:47:16 +00:00
Marek Safar a0a5ee0d18 update
svn path=/trunk/mcs/; revision=33966
2004-09-16 15:34:16 +00:00
Marek Safar c827fb125d 2004-09-16 Marek Safar <[email protected]>
* rootcontext.cs: WarningLevel is 4 by default now.

	* statement.cs (Fixed.Resolve): Do not null
	VariableInfo.

svn path=/trunk/mcs/; revision=33965
2004-09-16 15:33:09 +00:00
Atsushi Eno 8b01c4e8bb 2004-09-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, SchemaDataValueType.cs :
	  ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
	  XmlSchemaUri, but it is derived from System.Uri, while ours was not.

svn path=/branches/mono-1-0/mcs/; revision=33964
2004-09-16 15:00:02 +00:00
Atsushi Eno fe93ee2c27 2004-09-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, SchemaDataValueType.cs :
	  ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
	  XmlSchemaUri, but it is derived from System.Uri, while ours was not.

svn path=/trunk/mcs/; revision=33963
2004-09-16 14:58:07 +00:00
Gonzalo Paniagua Javier 7aec249e1e 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* threads.c: call thread_cleanup before finishing the thread if we get
	there.

svn path=/trunk/mono/; revision=33962
2004-09-16 13:51:02 +00:00
Ravindra c043828a89 Added Novell URL.
svn path=/trunk/mcs/; revision=33961
2004-09-16 13:00:44 +00:00
Ravindra 3dcb46936d Invalidate should be done before redrawing.
svn path=/trunk/mcs/; revision=33960
2004-09-16 13:00:19 +00:00
Marek Safar 6e18c53b33 update
svn path=/trunk/mcs/; revision=33957
2004-09-16 12:01:18 +00:00
Marek Safar cdfbd25fed 2004-09-16 Marek Safar <[email protected]>
Fixed bug #55780
	* ecore.cs (PropertyExpr.FindAccessors): Do not perform
	deep search when property is not virtual.
	(PropertyExpr.ResolveAccessors): Make one call for both
	accessors.

svn path=/trunk/mcs/; revision=33956
2004-09-16 11:58:06 +00:00
Joshua Tauberer dd35d560b7 2004-09-14 Loren Bandiera <[email protected]>
* Syscall.cs: Added method for getpwnam which uses Passwd
	struct.
	* macros.c: Helper function for getpwnam
	(In committing, Josh Tauberer also added getpwuid.)

svn path=/trunk/mono/; revision=33955
2004-09-16 11:09:02 +00:00
Joshua Tauberer 8bf118de82 2004-09-14 Loren Bandiera <[email protected]>
* Syscall.cs: Added method for getpwnam which uses Passwd
	struct.
	* macros.c: Helper function for getpwnam
	(In committing, Josh Tauberer also added getpwuid.)

svn path=/trunk/mcs/; revision=33955
2004-09-16 11:09:02 +00:00
Ravindra 1719c1c56e Added VS.NET project for System.Drawing.
svn path=/trunk/mcs/; revision=33954
2004-09-16 09:59:18 +00:00
Ravindra 6c62dad044 Updated project and sources list.
svn path=/trunk/mcs/; revision=33953
2004-09-16 07:19:25 +00:00
Ravindra 4cba71d31d Enum for ListView Control.
svn path=/trunk/mcs/; revision=33952
2004-09-16 03:19:35 +00:00
Ravindra a913f56384 Event for ListView Control.
svn path=/trunk/mcs/; revision=33951
2004-09-16 03:18:11 +00:00
Francisco Figueiredo Jr. 2880c6ecd7 2004-09-15 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlRowDescription.cs:
        FieldIndex: Really added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)

svn path=/trunk/mcs/; revision=33950
2004-09-16 00:24:48 +00:00
Zoltan Varga edbe3285e7 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33948
2004-09-15 21:03:11 +00:00
Zoltan Varga 51f46c9b44 2004-09-16 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_createDomain): Load all
	assemblies from the parent. Fixes #65665.

svn path=/trunk/mono/; revision=33947
2004-09-15 21:01:56 +00:00
Marek Safar 08c0a01a63 2004-09-15 Marek Safar <[email protected]>
Fixed bug #65766
	* statement.cs: Error 152 report constains also location.

svn path=/trunk/mcs/; revision=33946
2004-09-15 20:30:13 +00:00
Zoltan Varga 2a31fbc1b5 2004-09-15 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_createDomain): Load all
	assemblies from the parent.

svn path=/trunk/mono/; revision=33945
2004-09-15 19:40:30 +00:00
John Luke cee315f3cf 2004-09-15 John Luke <[email protected]>
* AssemblyInfo.cs: add CLSCompliant(true) attribute

svn path=/trunk/mcs/; revision=33944
2004-09-15 18:31:51 +00:00
Zoltan Varga a4c77d5421 2004-09-15 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type): Fix parsing of custom
	modifiers.

svn path=/trunk/mono/; revision=33943
2004-09-15 18:04:57 +00:00
Lluis Sanchez 8faca29321 * ServiceDescriptionReflector.cs: Don't generate empty schemas.
svn path=/trunk/mcs/; revision=33942
2004-09-15 16:14:48 +00:00
Lluis Sanchez ad31e6d9f6 * Methods.cs: Use the service namespace as the base for the soap action.
This fixes bug #60379.

svn path=/trunk/mcs/; revision=33941
2004-09-15 16:14:18 +00:00
Marek Safar 5e2d2ed732 2004-09-15 Marek Safar <[email protected]>
* test-287.cs: Included test for bug #65766.

svn path=/trunk/mcs/; revision=33940
2004-09-15 15:23:49 +00:00
Marek Safar ded73f4cca 2004-09-15 Marek Safar <[email protected]>
Fixed bug #65766
	* const.cs: Explicitly set constant as static.

svn path=/trunk/mcs/; revision=33939
2004-09-15 15:21:41 +00:00
Anirban Bhattacharjee 7aa6b4d08d 2004-09-15 Anirban Bhattacharjee <[email protected]>
* enum.cs: Made Enum member lookup case insensitive

svn path=/trunk/mcs/; revision=33938
2004-09-15 14:58:01 +00:00
Marek Safar e18bb53e87 new test + update
svn path=/trunk/mcs/; revision=33937
2004-09-15 14:22:22 +00:00
Marek Safar d1c5d60011 2004-09-15 Marek Safar <[email protected]>
Fixed bug #64226
	* cs-parser.jay: Add error 1017 report.

svn path=/trunk/mcs/; revision=33936
2004-09-15 14:21:50 +00:00
Lluis Sanchez 2929822a90 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
	* XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
	  ImportIncludedTypes to the end, to make sure that the current map has all
	  needed data before derived maps are constructed.
	* XmlSchemaExporter.cs: Generate the base class of simple types that are
	  not primitive types. Set the correct value for IsMixed in extended types.
	* XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
	  the base class of a simple type doesn't need to be a xsd type.
	  All those patches fix bug #65654

svn path=/trunk/mcs/; revision=33935
2004-09-15 14:16:41 +00:00
Anirban Bhattacharjee 0308e24065 2004-09-15 Anirban Bhattacharjee <[email protected]>
* OptionalArgu_dll.vb:
        * OptionalArgu_exe.vb:
                Tests for optional argument accross assembly
        * Test.Sources : updated
        * Makefile: Added dll name

svn path=/trunk/mcs/; revision=33934
2004-09-15 13:37:22 +00:00
Anirban Bhattacharjee aeb861dd47 2004-09-15 Anirban Bhattacharjee <[email protected]>
* support.cs: Retrieving default value from another assembly in ReflectionParameters class

svn path=/trunk/mcs/; revision=33933
2004-09-15 13:21:46 +00:00
Anirban Bhattacharjee 38764ca7d3 2004-09-14 Anirban Bhattacharjee <[email protected]>
* class.cs: Support for enum in default constant value for optional parameters

svn path=/trunk/mcs/; revision=33932
2004-09-15 13:04:54 +00:00
Sebastien Pouliot fbfeb2937d 2004-09-15 Sebastien Pouliot <[email protected]>
* System.Data_test.dll.sources: Added OdbcPermission, OleDbPermission
	and SqlClientPermission unit tests to the build.

svn path=/trunk/mcs/; revision=33931
2004-09-15 11:44:06 +00:00
Sebastien Pouliot d42d4b58ec 2004-09-15 Sebastien Pouliot <[email protected]>
* SqlClientPermissionTest.cs: New. Unit tests for SqlClientPermission.

svn path=/trunk/mcs/; revision=33930
2004-09-15 11:42:38 +00:00
Sebastien Pouliot e6f4406228 2004-09-15 Sebastien Pouliot <[email protected]>
* OleDbPermissionTest.cs: New. Unit tests for OleDbPermission.

svn path=/trunk/mcs/; revision=33929
2004-09-15 11:41:13 +00:00
Sebastien Pouliot 33952bdcf5 2004-09-15 Sebastien Pouliot <[email protected]>
* OdbcPermissionTest.cs: New. Unit tests for OdbcPermission.

svn path=/trunk/mcs/; revision=33928
2004-09-15 11:39:49 +00:00
Raja R Harinath 44e57f121c * test-280.cs: Backport fix from HEAD.
* test-292.cs: New test for #64330.

svn path=/branches/mono-1-0/mcs/; revision=33927
2004-09-15 11:39:26 +00:00
nobody ca1ca15642 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=33926
2004-09-15 11:39:26 +00:00
Raja R Harinath 393e90ab50 (fixed_statement): Introduce a scope for the
declaration in a 'fixed' statement.

svn path=/branches/mono-1-0/mcs/; revision=33925
2004-09-15 11:38:40 +00:00
Marek Safar db45e3b4d1 update
svn path=/trunk/mcs/; revision=33924
2004-09-15 11:13:08 +00:00
Marek Safar 67d531a16e 2004-09-15 Marek Safar <[email protected]>
Fixed bug #59980, #64224
	* expression.cs (Invocation.DoResolve): Fixed error CS0571 test.

	* typemanager.cs (IsSpecialMethod): Simplified

svn path=/trunk/mcs/; revision=33923
2004-09-15 11:11:48 +00:00
Marek Safar ef42261d7c 2004-09-15 Marek Safar <[email protected]>
* property-il.il, property-main.cs: Included test for #36804.

svn path=/trunk/mcs/; revision=33922
2004-09-15 10:15:30 +00:00
Martin Baulig 620106363a Updated again.
svn path=/trunk/mcs/; revision=33921
2004-09-15 09:47:31 +00:00
Martin Baulig 4b3facd88b 2004-09-15 Martin Baulig <[email protected]>
* test-294.cs: Is not back in gmcs.

svn path=/trunk/mcs/; revision=33920
2004-09-15 08:42:02 +00:00
Gaurav Vaish 3d46ae4356 2004-09-15 Gaurav Vaish <gaurav[dot]vaish[at]gmail[dot]com>
* Part.cs                    : Completed
* WebPart.cs                 : Initial implementation

svn path=/trunk/mcs/; revision=33919
2004-09-15 04:54:09 +00:00
Sebastien Pouliot 8b45ac3620 2004-09-14 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.Data.OracleClient_test.dll.sources: New. Sources for unit
	tests.

svn path=/trunk/mcs/; revision=33914
2004-09-15 00:02:35 +00:00
Sebastien Pouliot f4d4490b65 2004-09-14 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* OraclePermission.cs: Adapted to work for both Fx 1.1 and 2.0. Fx 1.1
	version isn't complete (as anyway it requires FullTrust on MS
	implementation) but DO NOT throw exceptions (for the security engine).
	* OraclePermissionAttribute.cs: Implemented CreatePermission. Adapted
	to work for both Fx 1.1 and 2.0.

svn path=/trunk/mcs/; revision=33913
2004-09-15 00:00:22 +00:00
Sebastien Pouliot 6a64e50f82 Fixed "make test" for 1.1
svn path=/trunk/mcs/; revision=33912
2004-09-14 23:58:30 +00:00
Sebastien Pouliot 0cf71bfc3a 2004-09-14 Sebastien Pouliot <[email protected]>
* OraclePermissionAttributeTest.cs: New. Unit tests for class
	OraclePermissionAttribute.

svn path=/trunk/mcs/; revision=33911
2004-09-14 23:49:09 +00:00
Francisco Figueiredo Jr. 43896b0dd5 2004-09-14 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlRowDescription.cs:
        FieldIndex: Added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)

svn path=/trunk/mcs/; revision=33910
2004-09-14 23:02:12 +00:00
Marek Safar 71e47760c1 2004-09-14 Marek Safar <[email protected]>
* test-294.cs: Is back.

svn path=/trunk/mcs/; revision=33909
2004-09-14 21:01:28 +00:00
Marek Safar 9b3725cf58 2004-09-14 Marek Safar <[email protected]>
* decl.cs (MemberCore.Emit): Resuscitated VerifyObsoleteAttribute
	condition with better params.

svn path=/trunk/mcs/; revision=33908
2004-09-14 21:00:33 +00:00
Bernie Solomon f320080407 2004-09-14 Bernie Solomon <[email protected]>
* reflection.h: add prototype for mono_get_dbnull_object
	* reflection.c: add prototypes for get_default_param_value_blobs
	and mono_get_object_from_blob for fussier compilers

svn path=/trunk/mono/; revision=33907
2004-09-14 20:58:02 +00:00
Sebastien Pouliot 9577f8fef6 2004-09-14 Sebastien Pouliot <[email protected]>
* System.Data_test.dll.sources: Added DBDataPermission unit tests to
	the build.

svn path=/trunk/mcs/; revision=33906
2004-09-14 20:04:22 +00:00
Sebastien Pouliot 51ffd060a9 2004-09-14 Sebastien Pouliot <[email protected]>
* SqlClientPermission.cs: Added internal constructor accepting an Sql
	ClientPermissionAttribute parameter (using base class protected ctor).
	* SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
	Permission constructor.

svn path=/trunk/mcs/; revision=33905
2004-09-14 20:02:48 +00:00
Sebastien Pouliot 7ec3b6ace7 2004-09-14 Sebastien Pouliot <[email protected]>
* OleDbPermission.cs: Added internal constructor accepting an OleDb
	PermissionAttribute parameter (using base class protected ctor).
	Re-added the Provider property (removed by error).
	* OleDbPermission.cs: Copy now use the new OleDbPermission
	constructor. Re-added the Provider property (removed by error).

svn path=/trunk/mcs/; revision=33904
2004-09-14 20:00:56 +00:00
Sebastien Pouliot aa6904913d 2004-09-14 Sebastien Pouliot <[email protected]>
* OdbcPermission.cs: Added internal constructor accepting an Odbc
	PermissionAttribute parameter (using base class protected ctor).
	* OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
	constructor.

svn path=/trunk/mcs/; revision=33903
2004-09-14 19:58:41 +00:00
Sebastien Pouliot 96fc12feeb 2004-09-14 Sebastien Pouliot <[email protected]>
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
	Implementation isn't complete as the restrictions seems to change the
	expected results (breaking some rules like x.IsSubsetOf (x) == false).
	Better (real-world) tests cases are required.
	* PermissionHelper.cs: Fixed small differences between System.Data.dll
	validations wrt to mscorlib.dll (XML and PermissionState).

svn path=/trunk/mcs/; revision=33902
2004-09-14 19:56:12 +00:00
Sebastien Pouliot 32639845bf 2004-09-14 Sebastien Pouliot <[email protected]>
* DBDataPermissionTest.cs: New. Unit tests for DBDataPermission.

svn path=/trunk/mcs/; revision=33901
2004-09-14 19:51:48 +00:00
Sebastien Pouliot d3ea944c56 2004-09-14 Sebastien Pouliot <[email protected]>
* OleDbPermissionAttributeTest.cs: Added unit tests for Provider
	property (unused and hidden in Fx 2.0).

svn path=/trunk/mcs/; revision=33900
2004-09-14 19:50:20 +00:00
Marek Safar c475046abf new test for bug #65238
svn path=/trunk/mcs/; revision=33899
2004-09-14 19:13:49 +00:00
Marek Safar 32ade2ce42 2004-09-14 Marek Safar <[email protected]>
Fixed bug #65238
	* attribute.cs (Resolve): Property has to have both
	accessors.

svn path=/trunk/mcs/; revision=33898
2004-09-14 19:12:41 +00:00
Martin Baulig 300374f51e 2004-09-14 Martin Baulig <[email protected]>
* gmcs-expect-no-error, gmcs-expect-wrong-error: Updated.

svn path=/trunk/mcs/; revision=33897
2004-09-14 18:52:06 +00:00
Martin Baulig fc1ccab148 2004-09-14 Martin Baulig <[email protected]>
* Makefile: Disable test-294.cs.

svn path=/trunk/mcs/; revision=33895
2004-09-14 18:00:44 +00:00
Martin Baulig 07a932aa8e **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33893
2004-09-14 17:44:01 +00:00
Martin Baulig ed4e476545 2004-09-14 Martin Baulig <[email protected]>
* decl.cs (MemberCore.Emit): Always call VerifyObsoleteAttribute().

svn path=/trunk/mcs/; revision=33892
2004-09-14 17:43:20 +00:00
Martin Baulig 9668c16854 Merged again.
svn path=/trunk/mcs/; revision=33891
2004-09-14 17:01:32 +00:00
Martin Baulig e50fcb57ba **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33890
2004-09-14 16:48:09 +00:00
Marek Safar 7964db00df Fixed test
svn path=/trunk/mcs/; revision=33889
2004-09-14 16:44:49 +00:00
Martin Baulig 6468cf0cd0 2004-09-14 Martin Baulig <[email protected]>
* Makefile: Put the old Makefile back.

svn path=/trunk/mcs/; revision=33888
2004-09-14 16:16:47 +00:00
Marek Safar 9a474e16b3 2004-09-14 Marek Safar <[email protected]>
Fixed bug #61902
	* codegen.cs (TestObsoleteMethodUsage): Trace when method is
	called and is obsolete then this member suppress message
	when call is inside next [Obsolete] method or type.

	* expression.cs: Use TestObsoleteMethodUsage member.

svn path=/trunk/mcs/; revision=33886
2004-09-14 15:55:09 +00:00
Marek Safar d1081d6261 2004-09-14 Marek Safar <[email protected]>
* test-294.cs: New test for bug #61902.

svn path=/trunk/mcs/; revision=33885
2004-09-14 15:51:34 +00:00
Martin Baulig 558bd9c7f4 Updated.
svn path=/trunk/mcs/; revision=33884
2004-09-14 15:11:17 +00:00
Martin Baulig 402df47cd0 2004-09-14 Martin Baulig <[email protected]>
* Makefile: Put the old Makefile back.  There was a reason why we
	had this setup.

svn path=/trunk/mcs/; revision=33883
2004-09-14 15:10:19 +00:00
Martin Baulig 5cc3cb1c3f Small fix.
svn path=/trunk/mcs/; revision=33882
2004-09-14 15:05:19 +00:00
Rafael Teixeira 1d8d7bbab0 2004-09-14 Rafael Teixeira <[email protected]>
* UtilsTest.cs: upgraded to use nunit Assert class, also corrected testing for null that
	  was giving an exception when run.

svn path=/trunk/mcs/; revision=33881
2004-09-14 15:01:04 +00:00
Martin Baulig 8ba16f97bb **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33880
2004-09-14 14:56:05 +00:00
Martin Baulig d1fd52d869 2004-09-14 Martin Baulig <[email protected]>
* cs-parser.jay: Sync a bit with the GMCS version.

svn path=/trunk/mcs/; revision=33879
2004-09-14 14:54:37 +00:00
Rafael Teixeira 2893a066bd ChangeLog cleanup
svn path=/trunk/mcs/; revision=33876
2004-09-14 13:09:33 +00:00
Raja R Harinath b1b7e7817c (run-test-lib, run-btest-lib): Unify. Give profile-specific name
for output XML file.

svn path=/trunk/mcs/; revision=33875
2004-09-14 10:41:18 +00:00
Raja R Harinath 97553bb62e cvs ignores, sorry about the spam
svn path=/trunk/mcs/; revision=33874
2004-09-14 09:59:51 +00:00
Sanja Gupta d17cfc2768 ChangeLog: Updated ChangeLog.
ThemeableAttribute.cs: Completed Implementation.

svn path=/trunk/mcs/; revision=33873
2004-09-14 09:42:06 +00:00
Raja R Harinath dfdf4fdaf8 (EXTRA_DISTFILES): Remove Soap.cmbx.
svn path=/trunk/mcs/; revision=33872
2004-09-14 09:35:20 +00:00
Raja R Harinath 237b10dbef (EXTRA_DISTFILES): Fix spelling of ChangeLog file.
svn path=/trunk/mcs/; revision=33871
2004-09-14 09:34:04 +00:00
Raja R Harinath d4d3fb15e6 (test_response, test_makefrag): Remove redundant $(PROFILE) in name.
svn path=/trunk/mcs/; revision=33870
2004-09-14 09:32:13 +00:00
Marek Safar e293965900 removed genericparser.cs
svn path=/trunk/mcs/; revision=33869
2004-09-14 09:31:27 +00:00
Anirban Bhattacharjee e7aeb8af86 2004-09-14 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Fixed exception number for type confliction in method parameter

svn path=/trunk/mcs/; revision=33868
2004-09-14 09:21:07 +00:00
Sanja Gupta 47e9787c87 ChangeLog: Updated ChangeLog.
FilterableAttribute.cs: Completed implementation.

svn path=/trunk/mcs/; revision=33867
2004-09-14 09:15:27 +00:00
Anirban Bhattacharjee c1a8080429 2004-09-14 Anirban Bhattacharjee <[email protected]>
* class.cs: Set default constant value for optional parameters in ParameterBuilder
        * parameter.cs: Setting optional attribute
                These two fixes makes sure that optional parameter with default value get emitted correctly

svn path=/trunk/mcs/; revision=33866
2004-09-14 09:08:27 +00:00
Raja R Harinath 9ef81ed7ef * library.make (test_sourcefile, btest_sourcefile): Define in terms of
$(test_lib) or $(btest_lib) only if they're overriden.

svn path=/trunk/mcs/; revision=33865
2004-09-14 08:55:04 +00:00
Martin Baulig 5697a97b98 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33864
2004-09-14 08:53:52 +00:00
Martin Baulig ca9c2f476d 2004-09-14 Martin Baulig <[email protected]>
* genericparser.cs: Removed.

svn path=/trunk/mcs/; revision=33863
2004-09-14 08:45:57 +00:00
Martin Baulig 5819945fee 2004-09-14 Martin Baulig <[email protected]>
* cs-parser.jay (CSharpParser): Don't derive from GenericsParser.
	(CSharpParser.yacc_verbose_flag): New public field.

	* genericparser.cs: Removed.

svn path=/trunk/mcs/; revision=33862
2004-09-14 08:45:11 +00:00
Lluis Sanchez 999ae1af31 * object.c: Added a "done" flag to TypeInitializationLock. This avoids
false deadlock checks in class initialization.

svn path=/branches/mono-1-0/mono/; revision=33861
2004-09-14 08:41:25 +00:00
Lluis Sanchez bf18ee73ae * object.c: Added a "done" flag to TypeInitializationLock. This avoids
false deadlock checks in class initialization.

svn path=/trunk/mono/; revision=33860
2004-09-14 08:36:17 +00:00
Raja R Harinath 73c7407fb6 * Makefile.am (mcs-do-full-build): Pass NO_SIGN_ASSEMBLIES=yes to
reduce the number of passes.  We will get the assemblies signed in
the 'populate-runtime-subdir' phase.
(mcs-do-run-test-profiles): Rename from mcs-do-run-tests.  Use
'test-profiles' to test all profiles.
(mcs-do-compiler-tests): Use 'compiler-tests' target in mcs/.
(bootstrap-check): Update.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Simplify.

svn path=/trunk/mono/; revision=33859
2004-09-14 08:35:04 +00:00
Raja R Harinath ffac59b268 (MCS) [PROFILE=default]: Force testing of 'mcs'.
(test-everything): Remove.
(TEST_PROFILE): New.
(run-mcs-tests, run-gmcs-tests): Unify using TEST_PROFILE.
(run-test-local) [PROFILE=net_2_0]: Run generics tests.

svn path=/trunk/mcs/; revision=33858
2004-09-14 08:30:20 +00:00
Raja R Harinath 1349f1fc75 * Makefile (MCS) [PROFILE=default]: Force testing of 'mcs'.
(TEST_SOURCES): Allow a profile to eliminate some tests.
(net_2_0_KNOWN_FAILURES): Rename from GENERICS_KNOWN_FAILURES.
(TEST_SOURCES_all): Rename from TESTS_SOURCES.
Move several multi-file tests from ...
(multi-1, multi-3, multi-4, multi-5, multi-6, multi-7): ... here.
(multl-2, ilasm): Use $(CSCOMPILE), instead of $(INTERNAL_MCS).
(multi): Update.
(test-everything): Remove.
(run-test-local) [PROFILE=net_2_0]: Run additional 'generics'
tests.
(test-compiler-jit-real): Remove *.netmodule too.
(test-compiler-jit-multi): Remove.
(test-generics-1, test-generics-2): Remove.
(test-generics-3, test-generics-4): Update.
* conv-lib.cs, conv-main.cs, dll-1.cs, dll-2.cs, prog-1.cs,
  prog-2.cs, module-1.cs, module2.cs, module-3.cs, ns.cs, ns0.cs,
  gen-13-dll.cs, gen-13-exe.cs, gen-17-dll.cs, gen-17-exe.cs,
  gen-31-dll.cs, gen-31-exe.cs, gen-47-dll.cs, gen-47-exe.cs,
  vararg-exe.cs, vararg-lib.cs:
Use "Compiler options:" for multi-file testing.

svn path=/trunk/mcs/; revision=33857
2004-09-14 08:26:54 +00:00
Marek Safar 3f90af0020 2004-09-14 Marek Safar <[email protected]>
* CodeTypeReference.cs: Fix #65854

svn path=/trunk/mcs/; revision=33856
2004-09-14 08:23:08 +00:00
Marek Safar e458c705b5 2004-09-14 Marek Safar <[email protected]>
* CSharpCodeGenerator.cs: Fix #65854

svn path=/trunk/mcs/; revision=33855
2004-09-14 08:21:21 +00:00
Raja R Harinath e1943e5c6a * library.make (test_lib, btest_lib): Build separate test
assemblies for separate profiles.
(dist-local): Don't copy files beginning with '../'.
* rules.make (dist-default): Handle any of Makefile, makefile, or
GNUmakefile being present.
* profiles/net_2_0.make (TEST_RUNTIME): Don't define.

svn path=/trunk/mcs/; revision=33854
2004-09-14 08:12:09 +00:00
Raja R Harinath 72ed081a73 (SUBDIRS): Allow to be overriden by $(TEST_SUBDIRS).
(test-profiles, run-test-profiles): New targets.
(test-compiler): Rename to ...
(compiler-tests): ... this.  Run tests on all profiles.

svn path=/trunk/mcs/; revision=33853
2004-09-14 08:11:52 +00:00
Raja R Harinath dd9c70b029 (event_declaration): Re-enable cs0071 error.
svn path=/trunk/mcs/; revision=33852
2004-09-14 08:02:32 +00:00
Atsushi Eno 85564737dc 2004-09-14 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Close() should not Flush() when the output is
	  already closed. bug #65918 is fixed.

svn path=/trunk/mcs/; revision=33851
2004-09-14 05:46:30 +00:00
Martin Baulig 220107e8da **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33850
2004-09-14 05:14:19 +00:00
Martin Baulig 5a0f1833b9 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33849
2004-09-14 05:14:19 +00:00
Umadevi S d09e0b4eaf 2004-09-14 Umadevi S <[email protected]>
* Made SerializableAttribute !net_2_0 for all the exception classes

svn path=/trunk/mcs/; revision=33848
2004-09-14 05:06:55 +00:00
Umadevi S edb3fb7549 2004-09-14 Umadevi S <[email protected]>
* Added SqlAlreadyFilledException.cs and SqlNotFilledException.cs to System.Data.dll.sources

svn path=/trunk/mcs/; revision=33847
2004-09-14 04:23:01 +00:00
Umadevi S 31189cb9c9 2004-09-14 Umadevi S ([email protected])
* Added Files SqlAlreadyFilledException.cs, SqlNotFilledException.cs

svn path=/trunk/mcs/; revision=33846
2004-09-14 04:20:07 +00:00
Ravindra 3e47a6f6c6 Updated project.
svn path=/trunk/mcs/; revision=33845
2004-09-14 04:09:59 +00:00
Sanja Gupta 733f0f5d7a ChangeLog: Updated ChangeLog.
Literal.cs: Added new method Focus().

svn path=/trunk/mcs/; revision=33844
2004-09-14 03:58:43 +00:00
Sanja Gupta 02e9afbf1d ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new attribute classes in System.Web.UI.

svn path=/trunk/mcs/; revision=33843
2004-09-14 03:55:19 +00:00
Sanja Gupta a740af0593 ChangeLog: Updated ChangeLog.
Control.cs: Added new attributes and a method.
FilterableAttribute.cs: New attribute, initial implementation.
ThemeableAttribute.cs: New attribute, initial implemenataion.

svn path=/trunk/mcs/; revision=33842
2004-09-14 03:53:36 +00:00
Tim Coleman de13446017 2004-09-14 Tim Coleman <[email protected]>
* corlib.dll.sources: Added System.Security.Principal/TokenImpersonationLevel

svn path=/trunk/mcs/; revision=33841
2004-09-14 00:35:50 +00:00
Tim Coleman 6705996433 2004-09-12 Tim Coleman <[email protected]>
* TokenImpersonationLevel.cs: New enum for Fx 2.0

svn path=/trunk/mcs/; revision=33840
2004-09-14 00:28:33 +00:00
Jackson Harper e1c9cfa84f Remove test code so timers are updated properly
svn path=/trunk/mcs/; revision=33839
2004-09-14 00:26:34 +00:00
Jackson Harper 2bdf339b86 Timers are now handled in a second thread and post messages into the main threads message queue. This makes timing much more consistent. Both win2K and XP have a minimum timer value of 15 milliseconds, so we now do this too.
svn path=/trunk/mcs/; revision=33838
2004-09-14 00:13:29 +00:00
Sebastien Pouliot de76dcbb20 Fix NET_2_0 build.
svn path=/trunk/mcs/; revision=33837
2004-09-14 00:09:24 +00:00
Tim Coleman 270b9bffbe 2004-09-13 Tim Coleman <[email protected]>
* System.dll.sources: Add new classes in System.Net.Security and
                System.Security.Authentication for Fx 2.0

svn path=/trunk/mcs/; revision=33836
2004-09-13 23:56:59 +00:00
Tim Coleman 397b0326d8 2004-09-13 Tim Coleman <[email protected]>
* AuthenticatedStream.cs AuthenticationLevel.cs LocalCertSelectionCallback.cs
        * NegotiateStream.cs ProtectionLevel.cs RemoteCertValidationCallback.cs
        * SslStream.cs: New stubs for Fx 2.0

svn path=/trunk/mcs/; revision=33835
2004-09-13 23:55:48 +00:00
Tim Coleman e840ff010e 2004-09-13 Tim Coleman <[email protected]>
* CipherAlgorithmType.cs ExchangeAlgorithmType.cs HashAlgorithmType.cs
        * SslProtocolType.cs: New stubs for Fx 2.0

svn path=/trunk/mcs/; revision=33834
2004-09-13 23:54:43 +00:00
Sebastien Pouliot 9003dc76ec 2004-09-13 Sebastien Pouliot <[email protected]>
* Makefile: Added /nowarn:618 when compiling unit test assembly to
	remove nunit obsolete warnings.
	* System.Data.dll.sources: Added System.Data.Common.DbConnectionOptions
	(NET_2_0) and System.Data.Common/PermissionHelper to the build.
	* System.Data_test.dll.sources: Added {DBData|Odbc|OleDb|SqlClient}
	PermissionAttribute unit tests to the build.

svn path=/trunk/mcs/; revision=33833
2004-09-13 23:37:10 +00:00
Sebastien Pouliot c321305e8d 2004-09-13 Sebastien Pouliot <[email protected]>
* SqlClientPermission.cs: Mostly completed (needs tests).
	* SqlClientPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33832
2004-09-13 23:32:54 +00:00
Sebastien Pouliot 9a47ecf841 2004-09-13 Sebastien Pouliot <[email protected]>
* OleDbPermission.cs: Mostly completed (needs tests).
	* OleDbPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33831
2004-09-13 23:31:06 +00:00
Sebastien Pouliot 70d02a3c3d 2004-09-13 Sebastien Pouliot <[email protected]>
* OdbcPermission.cs: Mostly completed (needs tests).
	* OdbcPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33830
2004-09-13 23:29:25 +00:00
Sebastien Pouliot 57aab80b5b 2004-09-13 Sebastien Pouliot <[email protected]>
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
	to support new methods in DBDataPermission.
	* DbConnectionString.cs: Updated class to split from/inherit
	DbConnectionOptions class.
	* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
	completed constructors.
	* DbDataPermissionAttribute.cs: Completed/fixed class.
	* PermissionHelper.cs: Helper methods to create permission classes.

svn path=/trunk/mcs/; revision=33828
2004-09-13 23:24:34 +00:00
Sebastien Pouliot b05732da97 2004-09-13 Sebastien Pouliot <[email protected]>
* SqlClientPermissionAttributeTest.cs: New. Unit tests for SqlClient
	PermissionAttribute.

svn path=/trunk/mcs/; revision=33827
2004-09-13 22:52:21 +00:00
Sebastien Pouliot b6beda9770 2004-09-13 Sebastien Pouliot <[email protected]>
* OdbcPermissionAttributeTest.cs: New. Unit tests for OdbcPermission
	Attribute.

svn path=/trunk/mcs/; revision=33826
2004-09-13 22:50:11 +00:00
Sebastien Pouliot cdeb4c4f81 2004-09-13 Sebastien Pouliot <[email protected]>
* DBDataPermissionAttributeTest.cs: New. Unit tests for DBData
	PermissionAttribute.

svn path=/trunk/mcs/; revision=33825
2004-09-13 22:46:24 +00:00
Sebastien Pouliot 4e6ed1ed89 2004-09-13 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* OleDbPermissionAttributeTest.cs: New. Unit tests for OleDbPermission
	Attribute.

svn path=/trunk/mcs/; revision=33824
2004-09-13 22:44:16 +00:00
Peter Dennis Bartok 24a4ff084c - Added Z-Ordering methods
svn path=/trunk/mcs/; revision=33823
2004-09-13 21:18:32 +00:00
Marek Safar 24150f30a1 new test
svn path=/trunk/mcs/; revision=33822
2004-09-13 21:16:25 +00:00
Marek Safar 03d453a0c5 2004-09-13 Marek Safar <[email protected]>
* test-293.cs: New test for bug #65757.

svn path=/trunk/mcs/; revision=33821
2004-09-13 21:12:08 +00:00
Marek Safar 0812049095 2004-09-13 Marek Safar <[email protected]>
* class.cs (MethodCore.CheckBase): Fix bug #65757.

svn path=/trunk/mcs/; revision=33820
2004-09-13 20:14:57 +00:00
Chris Toshok 383e2d1e85 2004-09-13 Chris Toshok <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
	token before writing out the method index, since the "index" used
	elsewhere is just added to the MethodIndexOffset.

svn path=/trunk/mcs/; revision=33819
2004-09-13 20:07:24 +00:00
Gonzalo Paniagua Javier 481b779480 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: remove unused SplitValue method.

svn path=/branches/mono-1-0/mcs/; revision=33818
2004-09-13 17:55:42 +00:00
Gonzalo Paniagua Javier f4c1dfb1e7 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: remove unused SplitValue method.

svn path=/trunk/mcs/; revision=33817
2004-09-13 17:53:56 +00:00
Peter Dennis Bartok 34554cb8d0 - Fixed #region names
- Moved properties and methods into their proper #regions

svn path=/trunk/mcs/; revision=33816
2004-09-13 16:56:04 +00:00
Peter Dennis Bartok ce5faa8049 - Added Accept and CancelButton properties
- Added ProcessDialogKey() method

svn path=/trunk/mcs/; revision=33815
2004-09-13 16:51:29 +00:00
Zoltan Varga 85a852e5f3 2004-09-13 Zoltan Varga <[email protected]>
* image.c (mono_image_addref): Fix comment.

svn path=/trunk/mono/; revision=33814
2004-09-13 16:29:00 +00:00
Zoltan Varga 45c3ecd350 2004-09-13 Zoltan Varga <[email protected]>
* driver.c (mini_regression_list): Do not call mono_assembly_close
	since assemblies can't be unloaded.

svn path=/trunk/mono/; revision=33813
2004-09-13 16:28:12 +00:00
Lluis Sanchez f8bce03ba0 * SoapReader.cs: Handle SOAP invocation without arguments in SoapReader.
Patch by Stefan Paletta.

svn path=/trunk/mcs/; revision=33812
2004-09-13 16:04:42 +00:00
Jordi Mas i Hernandez 3bfd9dbf1e Add to the build Process
svn path=/trunk/mcs/; revision=33811
2004-09-13 15:24:56 +00:00
Martin Baulig 96d2907243 2004-09-10 Martin Baulig <[email protected]>
Backported my MemberName changes from GMCS into MCS.

	- we are now using a special `MemberName' class instead of using
	strings; in GMCS, the `MemberName' also contains the type
	arguments.

	- changed the grammar rules a bit:
	  * the old `member_name' is now a `namespace_or_type_name':
	    The rule is that we use `namespace_or_type_name' everywhere
	    where we expect either a "member name" (GetEnumerator) or a
	    "member name" with an explicit interface name
	    (IEnumerable.GetEnumerator).
	    In GMCS, the explicit interface name may include type arguments
	    (IEnumerable<T>.GetEnumerator).
	  * we use `member_name' instead of just `IDENTIFIER' for
	    "member names":
	    The rule is that we use `member_name' wherever a member may
	    have type parameters in GMCS.

	* decl.cs (MemberName): New public class.
	(MemberCore.MemberName): New public readonly field.
	(MemberCore.ctor): Take a `MemberName' argument, not a string.
	(DeclSpace): Likewise.

	* delegate.cs (Delegate.ctor): Take a MemberName, not a string.
	* enum.cs (Enum.ctor): Likewise.

	* namespace.cs (AliasEntry.Alias): Changed type from Expression to
	MemberName.
	(AliasEntry.ctor): Take a MemberName, not an Expression.
	(AliasEntry.UsingAlias): Likewise.

	* class.cs (TypeContainer.ctor): Take a MemberName, not a string.
	(IMethodData.MemberName): Changed type from string to MemberName.
	(MemberBase.ExplicitInterfaceName): Likewise.
	(AbstractPropertyEventMethod.SetupName): Make this private.
	(AbstractPropertyEventMethod.ctor): Added `string prefix'
	argument; compute the member name here.
	(AbstractPropertyEventMethod.UpdateName): Recompute the name based
	on the `member.MemberName' and the `prefix'.

	* cs-parser.jay (attribute_name): Use `namespace_or_type_name',
	not `type_name'.
	(struct_declaration): Use `member_name' instead of `IDENTIFIER';
	thus, we get a `MemberName' instead of a `string'.  These
	declarations may have type parameters in GMCS.
	(interface_method_declaration, delegate_declaration): Likewise.
	(class_declaration, interface_declaration): Likewise.
	(method_header): Use `namespace_or_type_name' instead of
	`member_name'.  We may be an explicit interface implementation.
	(property_declaration, event_declaration): Likewise.
	(member_name): This is now just an `IDENTIFIER', not a
	`namespace_or_type_name'.
	(type_name, interface_type): Removed.
	(namespace_or_type_name): Return a MemberName, not an Expression.
	(primary_expression): Use `member_name' instead of `IDENTIFIER';
	call GetTypeExpression() on the MemberName to get an expression.
	(IndexerDeclaration.interface_type): Changed type from string to
	MemberName.
	(MakeName): Operate on MemberName's instead of string's.

svn path=/trunk/mcs/; revision=33810
2004-09-13 14:38:16 +00:00
Peter Dennis Bartok 9251c57c54 - Initial check-in
svn path=/trunk/mcs/; revision=33809
2004-09-13 14:18:42 +00:00
Zoltan Varga a5e81f45b4 2004-09-13 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type): Avoid memory allocations if
	possible.

svn path=/trunk/mono/; revision=33808
2004-09-13 13:08:21 +00:00
Atsushi Eno 776425f6be 2004-09-13 Atsushi Enomoto <[email protected]>
* XmlSchemaSetTests.cs : added.

svn path=/trunk/mcs/; revision=33807
2004-09-13 12:54:15 +00:00
Ravindra e72545bebf Backporting a fix.
svn path=/branches/mono-1-0/mcs/; revision=33806
2004-09-13 12:03:24 +00:00
Ravindra d26ef9745b * Graphics.cs: MSDN says that using image width and height gives
better performance, hence we are using image width and height to
	avoid autoscaling in DrawImageUnscaled.

svn path=/trunk/mcs/; revision=33805
2004-09-13 11:58:04 +00:00
Dick Porter d91ccf16f9 Compile fix
svn path=/trunk/mono/; revision=33804
2004-09-13 11:46:22 +00:00
Raja R Harinath ce3e1abbeb (test-compiler-jit-real): Fix logic so that logs of
testcases that fail compilation aren't deleted.  Avoid emitting
spurious PASS: messages.

svn path=/trunk/mcs/; revision=33803
2004-09-13 09:29:36 +00:00
Raja R Harinath 54e6a3cd8d Remove cs0246-6.cs.
svn path=/trunk/mcs/; revision=33802
2004-09-13 09:07:00 +00:00
Raja R Harinath 4de38c97ac Fix bug #55770.
* namespace.cs (AliasEntry.Resolve): Implement section 16.3.1.
(NamespaceEntry.Lookup): Add new argument to flag if we want the
lookup to avoid symbols introduced by 'using'.
* rootcontext.cs (NamespaceLookup): Update.

svn path=/trunk/mcs/; revision=33801
2004-09-13 09:01:57 +00:00
Marek Safar 9213b8e99a Was wrong condition
svn path=/trunk/mcs/; revision=33800
2004-09-13 09:00:45 +00:00
Jambunathan K 81f353e180 * reflection.c (mono_param_get_objects): Modified to return
ParameterInfo.DefaultValue object.

(get_default_param_value_blobs):
(mono_get_object_from_blob):
(mono_get_dbnull_object): New helper routines.

* object.c (mono_get_constant_value_from_blob): New helper routine
carved out from get_default_field_value ()

* object-internals.h (mono_get_constant_value_from_blob): Added
function declaration.

svn path=/trunk/mono/; revision=33799
2004-09-13 08:48:58 +00:00
Atsushi Eno c3ebf1694a 2004-09-13 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XPathAtomicValueTests.cs.

svn path=/trunk/mcs/; revision=33792
2004-09-13 04:06:22 +00:00
Atsushi Eno 8d7ab73dde 2004-09-13 Atsushi Enomoto <[email protected]>
* XPathAtomicValueTests.cs : added.

svn path=/trunk/mcs/; revision=33791
2004-09-13 04:05:13 +00:00
Atsushi Eno 505e8bf944 2004-09-13 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : All .ctor() are separeted from Init().
	  In .ctor(object, XmlSchemaType):
	  - For lists that contains just one item, Init() recursively.
	  - For XPathAtomicValue, Init() recursively for its content fields.
	  For Value and TypedValue, consider typecode from XmlSchemaType.

svn path=/trunk/mcs/; revision=33790
2004-09-13 04:03:54 +00:00
Atsushi Eno 4871cc5c58 2004-09-13 Atsushi Enomoto <[email protected]>
* SequenceType.cs, XPath2Expression.cs :
	  Added SequenceType.IsNumeric(XmlTypeCode).
	  In type comparison, untyped XPathNavigator is xdt:untypedAtomic
	  (not sure as yet if it is always correct.)
	* XQueryComparisonOperator.cs : rewrote all numeric comparison using
	  IsNumeric().

svn path=/trunk/mcs/; revision=33789
2004-09-13 03:57:40 +00:00
Gonzalo Paniagua Javier 1e049b674f 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: added SetupInformationNoCopy property, since
	SetupInformation creates a copy now, all updates to it should use the
	actual data. Fixes bug #61991 take 2.

svn path=/trunk/mcs/; revision=33788
2004-09-13 03:50:23 +00:00
Gonzalo Paniagua Javier 0fbb08680b 2004-09-12 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: fix GroupName when the control is inside a
	NamingContainer different from Page. Closes bug #65586.

svn path=/branches/mono-1-0/mcs/; revision=33787
2004-09-13 02:26:30 +00:00
Gonzalo Paniagua Javier 03d06266ea 2004-09-12 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: fix GroupName when the control is inside a
	NamingContainer different from Page. Closes bug #65586.

svn path=/trunk/mcs/; revision=33786
2004-09-13 02:25:40 +00:00
Francisco Figueiredo Jr. 0e5e637322 2004-09-12 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper:
		VerifyDefaultTypesMap: Added DbType.Byte support. Thanks Martin ( martijn at boland dot org)
		for heads up.

svn path=/trunk/mcs/; revision=33785
2004-09-13 01:18:27 +00:00
Francisco Figueiredo Jr. cf6bdb5c48 2004-09-12 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper:
		ConvertToBackend: Fixed code to handle null values properly when using extended query mode.
		Fix bug 955 in gborg.

svn path=/trunk/mcs/; revision=33784
2004-09-13 00:20:35 +00:00
Marek Safar 37de8e5a26 Improved test
svn path=/trunk/mcs/; revision=33783
2004-09-12 20:22:53 +00:00
Marek Safar b825b31174 2004-09-12 Marek Safar <[email protected]>
* class.cs (TypeContainer.DoDefineMembers): Do not call
	DefineDefaultConstructor for static classes.

svn path=/trunk/mcs/; revision=33782
2004-09-12 20:21:07 +00:00
Marek Safar 86d2c09669 2004-09-12 Marek Safar <[email protected]>
* TypeBuilder.cs: Do not create default constructor for
	static classes.

svn path=/trunk/mcs/; revision=33781
2004-09-12 20:18:23 +00:00
Ben Maurer aeb64d54fd 2004-09-12 Ben Maurer <[email protected]>
* HttpContext.cs: use CallContext. It is a little bit faster.

svn path=/branches/mono-1-0/mcs/; revision=33776
2004-09-12 16:07:27 +00:00
Ben Maurer 48959a1691 2004-09-12 Ben Maurer <[email protected]>
* HttpContext.cs: use CallContext. It is a little bit faster.

svn path=/trunk/mcs/; revision=33775
2004-09-12 16:06:53 +00:00
Ben Maurer a75ca5d34e 2004-09-12 Ben Maurer <[email protected]>
* BinaryReader.cs: Use ReadByte when possible. Gives a tad
	of perf, and fixes a bug reported on mono-patches-list

svn path=/trunk/mcs/; revision=33772
2004-09-12 15:02:23 +00:00
Marek Safar dc9947a7b7 refresh
svn path=/trunk/mcs/; revision=33771
2004-09-12 13:20:16 +00:00
Marek Safar f3343f7a0c 2004-09-12 Marek Safar <[email protected]>
* attribute.cs (Attribute.Resolve): Add error 653 report.

	* class.cs (Class.ApplyAttributeBuilder): Add error 641
	report.
	(Method.ApplyAttributeBuilder): Add error 685 report.
	(Operator.Define): Add error 564 report.

	* cs-tokenizer.cs (handle_hex): Add error 1013 report.

	* expression.cs (Invocation.DoResolve): Add error
	245 and 250 report.

	* parameter.cs (Parameter.ApplyAttributeBuilder): Add
	error 674 report.

svn path=/trunk/mcs/; revision=33770
2004-09-12 13:19:49 +00:00
Atsushi Eno dce1693db5 2004-09-12 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : ComparisonExpr.CompareAtomic() should consider
	  spec-conformant untypedAtomic handling.
	* XQueryContext.cs : Variables were incorrectly added to the older
	  context. Fixed Context and ContextManager constructors that were
	  in silly chicken-and-egg.
	* XPathSequence.cs : now Context property always returns current
	  XQuery context (will be fixed; it is workaround for variable
	  resolution). In For iteration, context sequence should vary.
	* XQueryComparisonOperator.cs : All value comparison failed to return
	  true when both operands are the same types.
	* XsltCommand.cs : use XmlWriter.Create().

svn path=/trunk/mcs/; revision=33769
2004-09-12 10:28:54 +00:00
Gert Driesen e5cffe24df * System.dll.sources: removed duplicate entry for System.Net.Configuration.
WebRequestModuleHandler

svn path=/trunk/mcs/; revision=33768
2004-09-12 07:37:22 +00:00
Ben Maurer aef960c07c oops
svn path=/trunk/mcs/; revision=33767
2004-09-12 02:01:39 +00:00
Ben Maurer e61cad2588 2004-09-11 Ben Maurer <[email protected]>
* CallContext.cs: Use [ThreadStatic], it is much faster than the
	Thread.[Get/Set]Data functions

svn path=/trunk/mcs/; revision=33766
2004-09-12 01:43:02 +00:00
Ben Maurer 658b904703 2004-09-11 Ben Maurer <[email protected]>
* CADMessages.cs: get rid of method / type name, it is not needed
	* MethodCall.cs: lazily init method / type name.
	* ReturnMessage.cs: lazily init method / type name, sig.

svn path=/trunk/mcs/; revision=33765
2004-09-12 01:24:43 +00:00
Ben Maurer 8d6c76318b 2004-09-11 Ben Maurer <[email protected]>
* RemotingServices.cs: use MethodBase rather than looking
	for the method ourselves. It has higher perf in x-ad calls.

svn path=/trunk/mcs/; revision=33764
2004-09-12 01:20:28 +00:00
Sebastien Pouliot 240954cfb4 2004-09-11 Sebastien Pouliot <[email protected]>
* System_test.dll.sources: Added unit tests for System.Diagnostics.
	EventLogPermission and PerformanceCounterPermission.

svn path=/trunk/mcs/; revision=33763
2004-09-11 22:55:05 +00:00
Sebastien Pouliot 48f0d411c5 2004-09-11 Sebastien Pouliot <[email protected]>
* EventLogPermission.cs: Completed implementation.
	* EventLogPermissionAccess.cs: Fixed enum values.
	* EventLogPermissionEntry.cs: Added validation for machine names.
	* EventLogPermissionEntryCollection.cs: Added synchronization
	of entries with the base permission class.
	* PerformanceCounterPermission.cs: Completed implementation.
	* PerformanceCounterPermissionAccess.cs: Fixed enum values.
	* PerformanceCounterPermissionEntry.cs: Added validations for machine
	and category names.
	* PerformanceCounterPermissionEntryCollection.cs: Added synchronization
	of entries with the base permission class.

svn path=/trunk/mcs/; revision=33762
2004-09-11 22:53:31 +00:00
Sebastien Pouliot 5377c62903 2004-09-11 Sebastien Pouliot <[email protected]>
* EventLogPermissionTest.cs: New. Unit tests for EventLogPermission.
	* PerformanceCounterPermissionTest.cs: New. Unit tests for
	PerformanceCounterPermission.

svn path=/trunk/mcs/; revision=33761
2004-09-11 22:48:00 +00:00
Atsushi Eno fc652475c1 2004-09-12 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : CloseOutput must be true by default.

svn path=/trunk/mcs/; revision=33760
2004-09-11 22:28:58 +00:00
Marek Safar 828399fbef refresh
svn path=/trunk/mcs/; revision=33759
2004-09-11 20:57:23 +00:00
Marek Safar 5e36272d2c 2004-09-11 Marek Safar <[email protected]>
* class.cs (ConstructorInitializer.Resolve):
	Wrong error number (515->516).

svn path=/trunk/mcs/; revision=33758
2004-09-11 20:56:55 +00:00
Francisco Figueiredo Jr. 6a6029bbfe 2004-09-11 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlConnection.cs:
		Dispose: Improved implementation. Also added warning logging for
		NpgsqlConnection leakings.
		Close: Fixed code to allow calling many times even when being disposed.
	* Npgsql/NpgsqlConnection.resx:
		Added new warning logging message for NpgsqlConnection leakings.
	* Npgsql/NpgsqlConnector.cs:
		IsValid: new method to check if Connector is still valid.
	* Npgsql/NpgsqlConnectorPool.cs:
		GetPooledConnector: Improved to check validity of Connector.
		FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
		because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.

svn path=/trunk/mcs/; revision=33757
2004-09-11 20:17:12 +00:00
Marek Safar 468badd403 2004-09-11 Marek Safar <[email protected]>
* class.cs (Indexer.Define): Add error 631 report.

svn path=/trunk/mcs/; revision=33756
2004-09-11 20:12:27 +00:00
Ben Maurer 01c3c9e673 2004-09-11 Ben Maurer <[email protected]>
* CADMessages.cs, MethodCall.cs: When doing an x-appdomain
	call, store the method in a RuntimeMethodHandle. This allows
	us to avoid the expensive lookup operations that must be done
	to resolve the method. This makes xsp go from 250 r/s to 450 r/s
	for me.

svn path=/trunk/mcs/; revision=33755
2004-09-11 20:10:46 +00:00
Zoltan Varga e85b77c03f 2004-09-11 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix more instruction lengths.

svn path=/trunk/mono/; revision=33754
2004-09-11 19:05:53 +00:00
Zoltan Varga 518cbf98c3 2004-09-11 Zoltan Varga <[email protected]>
* assembly.c assembly.h icall.c class.c appdomain.c: Lazily load
	referenced assemblies. Fixes #62135.

	* exception.h exception.c (mono_get_exception_file_not_found2): New
	helper function.

svn path=/trunk/mono/; revision=33753
2004-09-11 18:51:19 +00:00
Zoltan Varga 5a64e9d5e3 2004-09-11 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix lengths of some instructions.

svn path=/trunk/mono/; revision=33752
2004-09-11 18:45:08 +00:00
Marek Safar d01f0f7212 2004-09-11 Marek Safar <[email protected]>
* ecore.cs (Error_NegativeArrayIndex): Fix 248 error.

svn path=/trunk/mcs/; revision=33751
2004-09-11 18:34:03 +00:00
Marek Safar d4e377f894 2004-09-11 Marek Safar <[email protected]>
* expression.cs (Probe.DoResolve): Add error CS0241 report.

svn path=/trunk/mcs/; revision=33750
2004-09-11 17:14:08 +00:00
Sebastien Pouliot 0e83560f7f 2004-09-11 Sebastien Pouliot <[email protected]>
* Makefile: Updated to include unit tests.
	* System.ServiceProcess.dll.sources: Added ServiceControllerPermission
	class to the build.
	* System.ServiceProcess_test.dll.sources: New. Added sources file for
	unit tests.

svn path=/trunk/mcs/; revision=33749
2004-09-11 15:07:55 +00:00
Sebastien Pouliot 7fe06dd9d1 2004-09-11 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* ServiceControllerPermission.cs: New. Added permission class.
	* ServiceControllerPermissionAttribute.cs: Completed TODO, added
	missing validations (machine and service names). Fixed AttributeUsage.
	* ServiceControllerPermissionEntry.cs: Added internal GetBaseEntry for
	synchronization. Converted spaces to tabs.
	* ServiceControllerPermissionEntryCollection.cs: Added synchronization
	with entries in the base class. Converted spaces to tabs.

svn path=/trunk/mcs/; revision=33748
2004-09-11 15:06:39 +00:00
Sebastien Pouliot fb44a8523a 2004-09-11 Sebastien Pouliot <[email protected]>
* ServiceControllerPermissionAttributeTest.cs: New. Unit tests for
	ServiceControllerPermissionAttribute class.
	* ServiceControllerPermissionTest.cs: New. Unit tests for Service
	ControllerPermission class.

svn path=/trunk/mcs/; revision=33747
2004-09-11 15:01:48 +00:00
Ben Maurer bac3235490 2004-09-11 Ben Maurer <[email protected]>
* inssel.brg: make ldelema check aot friendly.

svn path=/branches/mono-1-0/mono/; revision=33746
2004-09-11 13:58:18 +00:00
Ben Maurer 40ba891835 2004-09-11 Ben Maurer <[email protected]>
* inssel.brg: Make the array ldelema check aot friendly.

svn path=/trunk/mono/; revision=33745
2004-09-11 13:57:16 +00:00
Rafael Teixeira b859e23742 2004-09-11 Rafael Teixeira <[email protected]>
* Utils.cs: Wrong return type in CopyArray Signature. Bug #65651

svn path=/trunk/mcs/; revision=33744
2004-09-11 13:04:49 +00:00
Rafael Teixeira 0e01936f55 2004-09-11 Rafael Teixeira <[email protected]>
* ObjectType.cs: Corrected some test ordering in ObjTst and using new getObjTstString to test two candidate strings. Bug #65653

svn path=/trunk/mcs/; revision=33743
2004-09-11 12:30:09 +00:00
Zoltan Varga 3cf5cdc3df 2004-09-11 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.

	* cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.

svn path=/trunk/mono/; revision=33742
2004-09-11 09:46:20 +00:00
Peter Dennis Bartok c67bc62953 - Added DoDragDrop() [incomplete]
- Properly implemented 'Visible' handling
- Added SetVisibleCore()
- Implemented FindChildAtPoint()
- Implemented GetContainerControl()
- Implemented Hide()

svn path=/trunk/mcs/; revision=33741
2004-09-11 03:50:00 +00:00
Peter Dennis Bartok 4dab3ebed2 - Moved methods into their appropriate #regions
- Reordered methods within regions alphabetically

svn path=/trunk/mcs/; revision=33740
2004-09-11 01:28:11 +00:00
Peter Dennis Bartok a7e8c57fd4 - Added method to retrieve text from window
svn path=/trunk/mcs/; revision=33739
2004-09-11 00:57:35 +00:00
Peter Dennis Bartok 592e2a8ecc - Moved some internal functions into the internal region
- Implemented FontHeight
- Implemented RenderRightToLeft
- Implemented ResizeRedraw
- Implemented ShowFocusCues
- Implemented ShowKeyboardCues
- Implemented FromChildHandle
- Implemented FromHandle
- Implemented IsMnemonic
- Implemented ReflectMessage
- All public and protected Static Methods are now complete

svn path=/trunk/mcs/; revision=33738
2004-09-11 00:56:33 +00:00
Peter Dennis Bartok f987a058db - Implemented remaining missing public instance properties
- Alphabetized some out of order properties

svn path=/trunk/mcs/; revision=33735
2004-09-10 22:54:52 +00:00
Tim Coleman cb5bef2327 2004-10-10 Tim Coleman <[email protected]>
* ConfigurationElementCollection.cs:
		Add XML_DEP

svn path=/trunk/mcs/; revision=33734
2004-09-10 22:09:05 +00:00
Tim Coleman f71a1bd1cf 2004-09-10 Tim Coleman <[email protected]>
* Add XML_DEP to all sources.

svn path=/trunk/mcs/; revision=33733
2004-09-10 22:08:21 +00:00
Marek Safar 92362b4896 2004-09-10 Marek Safar <[email protected]>
* do-test.pl: Make report readable (I was really confuse).
	Fixed bug on my machine CR+LF in *-expect-* files.

svn path=/trunk/mcs/; revision=33731
2004-09-10 21:12:40 +00:00
Sebastien Pouliot 0e5a303ba3 2004-09-10 Sebastien Pouliot <[email protected]>
* System_test.dll.sources: Added PermissionHelper to the build.
	* System_test.dll.sources: Added unit tests for System.Security.
	Permissions.ResourcePermissionBase and ResourcePermissionBaseEntry,
	System.Web.AspNetHostingPermission and AspNetHostingPermissionAttribute.

svn path=/trunk/mcs/; revision=33730
2004-09-10 19:58:21 +00:00
Sebastien Pouliot f752fbe02c 2004-09-10 Sebastien Pouliot <[email protected]>
* EventLogPermission.cs: Fixed initialization (TagNames and
	PermissionAccessType).
	* EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added
	[Obsolete] to some existing elements.
	* EventLogPermissionAttribute.cs: Added missing validation to property
	MachineName. Fixed changes for NET_2_0.
	* PerformanceCounterPermission.cs: Fixed initialization (TagNames and
	PermissionAccessType).
	* PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
	and added [Obsolete] to some existing elements.
	* PerformanceCounterPermissionAttribute.cs: Added missing validations
	to properties (Path, MachineName). Fixed changes for NET_2_0.

svn path=/trunk/mcs/; revision=33729
2004-09-10 19:54:12 +00:00
Tim Coleman d4388ed7a1 2004-09-10 Tim Coleman <[email protected]>
* System.dll.sources: Add System.Net.Cache, System.Net.Configuration,
                System.Net.Mail, System.Configuration classes

svn path=/trunk/mcs/; revision=33728
2004-09-10 19:53:11 +00:00
Tim Coleman 32fb1735a7 2004-09-10 Tim Coleman <[email protected]>
* SmtpClient.cs SmtpFailedRecipientsException.cs:
                Add failed recipient exception handling.

svn path=/trunk/mcs/; revision=33727
2004-09-10 19:51:36 +00:00
Tim Coleman 5ca6f326d0 2004-09-10 Tim Coleman <[email protected]>
* ConfigurationElementCollection.cs ConfigurationElementCollectionType.cs:
                New Fx 2.0 stubs
        * ConfigurationElement.cs:
                Fix function declaration

svn path=/trunk/mcs/; revision=33726
2004-09-10 19:50:10 +00:00
Tim Coleman 38d8ff2fd7 2004-09-10 Tim Coleman <[email protected]>
* AuthenticationModuleElement.cs AuthenticationModuleElementCollection.cs
        * AuthenticationModulesSection.cs BypassElement.cs BypassElementCollection.cs
        * ConnectionManagementElement.cs ConnectionManagementElementCollection.cs
        * ConnectionManagementSection.cs DefaultProxySection.cs
        * HttpCachePolicyElement.cs HttpWebRequestElement.cs
        * Ipv6Element.cs MailSettingsSection.cs ModuleElement.cs
        * NetSectionGroup.cs ProxyElement.cs RequestCachingSection.cs
        * ServicePointManagerElement.cs SettingsSection.cs SmtpElement.cs
        * SocketElement.cs UriParserElement.cs UriParserElementCollection.cs
        * UriParserSection.cs WebRequestModuleElement.cs
        * WebRequestModuleElementCollection.cs WebRequestModulesSection.cs:
                New classes for Fx 2.0

svn path=/trunk/mcs/; revision=33725
2004-09-10 19:47:45 +00:00
Sebastien Pouliot d0cb58bb73 2004-09-10 Sebastien Pouliot <[email protected]>
* DnsPermission.cs: Updated to pass new unit tests.
	* DnsPermissionAttribute.cs: Cleanup.
	* SocketPermission.cs: Updated to pass new unit tests.
	* SocketPermissionAttribute.cs: Updated to pass new unit tests.
	* WebPermission.cs: Implemented some TODO - not complete yet.
	* WebPermissionAttribute.cs: Updated to pass new unit tests.

svn path=/trunk/mcs/; revision=33724
2004-09-10 19:47:03 +00:00
Tim Coleman 69c422ca86 2004-09-10 Tim Coleman <[email protected]>
* HttpCacheAgeControl.cs HttpRequestCacheLevel.cs HttpRequestCachePolicy.cs
        * RequestCacheLevel.cs RequestCachePolicy.cs:
                New classes for Fx 2.0

svn path=/trunk/mcs/; revision=33723
2004-09-10 19:44:30 +00:00
Sebastien Pouliot ed2d3bacae 2004-09-10 Sebastien Pouliot <[email protected]>
* AspNetHostingPermission.cs: Completed TODO.
	* AspNetHostingPermissionAttribute.cs: Completed TODO and added enum
	validation.

svn path=/trunk/mcs/; revision=33722
2004-09-10 19:40:45 +00:00
Sebastien Pouliot b780843db1 2004-09-10 Sebastien Pouliot <[email protected]>
* PermissionHelper.cs: New. Static methods to help implementation of
	permission classes.
	* ResourcePermissionBase.cs: Implemented all TODO (except FromXml
	which isn't complete).
	* ResourcePermissionBaseEntry.cs: Minor cleanup (namespaces, style).

svn path=/trunk/mcs/; revision=33721
2004-09-10 19:32:23 +00:00
Sebastien Pouliot 6533620733 2004-09-10 Sebastien Pouliot <[email protected]>
* DnsPermissionAttributeTest.cs: New. Unit tests for DnsPermissionAttr.
	* DnsPermissionTest.cs: New. Unit tests for DnsPermission.
	* SocketPermissionAttributeTest.cs: New. Unit tests for
	SocketPermissionAttribute.
	* WebPermissionAttributeTest.cs: New. Unit tests for WebPermission
	Attribute.

svn path=/trunk/mcs/; revision=33720
2004-09-10 19:25:58 +00:00
Sebastien Pouliot 2f5a2314bb 2004-09-10 Sebastien Pouliot <[email protected]>
* AspNetHostingPermissionAttributeTest.cs: New. Unit tests for AspNet
	HostingPermissionAttribute.
	* AspNetHostingPermissionTest.cs: New. Unit tests for AspNetHosting
	Permission.

svn path=/trunk/mcs/; revision=33719
2004-09-10 19:22:04 +00:00
Sebastien Pouliot fd63bebf56 2004-09-10 Sebastien Pouliot <[email protected]>
* EventLogPermissionAttributeTest.cs: New. Unit tests for
	EventLogPermissionAttribute.
	* PerformanceCounterPermissionAttributeTest.cs: New. Unit tests for
	PerformanceCounterPermissionAttribute.

svn path=/trunk/mcs/; revision=33718
2004-09-10 19:20:53 +00:00
Sebastien Pouliot c42457ab82 2004-09-10 Sebastien Pouliot <[email protected]>
* ResourcePermissionBaseEntryTest.cs: New. Unit tests for
	ResourcePermissionBaseEntry.
	* ResourcePermissionBaseTest.cs: New. Unit tests for
	ResourcePermissionBase.

svn path=/trunk/mcs/; revision=33717
2004-09-10 19:17:50 +00:00
Zoltan Varga 4b3965e183 2004-09-10 Zoltan Varga <[email protected]>
* mini-x86.c: Fix build.

svn path=/trunk/mono/; revision=33716
2004-09-10 18:52:36 +00:00
Zoltan Varga d95f786582 2004-09-10 Zoltan Varga <[email protected]>
* mini-sparc.c mini-x86.c mini-amd64.c: Use the new
	mono_type_get_underlying_type () helper function to simplify code.

svn path=/trunk/mono/; revision=33715
2004-09-10 18:11:44 +00:00
Zoltan Varga 981b1e63b3 2004-09-10 Zoltan Varga <[email protected]>
* class.h class.c: Add mono_type_get_underlying_type ().

svn path=/trunk/mono/; revision=33713
2004-09-10 18:00:39 +00:00
Zoltan Varga df3a9912e9 2004-09-10 Zoltan Varga <[email protected]>
* Makefile.am (populate-runtime-subdir): Avoid -path argument to find
	since it is not supported on solaris.

svn path=/trunk/mono/; revision=33712
2004-09-10 17:29:35 +00:00
Marek Safar 496359b561 2004-09-10 Marek Safar <[email protected]>
* cs-parser.jay: Added error CS0241 report.

svn path=/trunk/mcs/; revision=33711
2004-09-10 14:30:05 +00:00
Sebastien Pouliot 9b4ee8d132 2004-09-10 Sebastien Pouliot <[email protected]>
* DirectoryServicesPermission.cs: Completed TODO.
	* DirectoryServicesPermissionAttribute.cs: Added path validation and
	enable the creation of unrestricted permissions.
	* DirectoryServicesPermissionEntry.cs: Add internal method to return
	an ResourcePermissionBaseEntry instance.
	* DirectoryServicesPermissionEntryCollection.cs: Allow synchronization
	of elements with the base permission class (required to enable Copy).

svn path=/trunk/mcs/; revision=33710
2004-09-10 14:24:36 +00:00
Sebastien Pouliot ab514df016 2004-09-10 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.DirectoryServices_test.dll.sources: New. Source list for unit
	tests.

svn path=/trunk/mcs/; revision=33709
2004-09-10 14:17:48 +00:00
Sebastien Pouliot c7203e757c 2004-09-10 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* DirectoryServicesPermissionAttributeTest.cs: New. Unit tests for
	DirectoryServicesPermissionAttribute.
	* DirectoryServicesPermissionTest.cs: New. Unit tests for Directory
	ServicesPermission.

svn path=/trunk/mcs/; revision=33708
2004-09-10 14:13:46 +00:00
Sebastien Pouliot c81f8c0e6d 2004-09-10 Sebastien Pouliot <[email protected]>
* MessageQueuePermission.cs: Implemented enough TODO so compilers can
	call ToXml (and the runtime can call FromXml) without exceptions.
	* MessageQueuePermissionAttribute.cs: Implemented all TODO.
	* MessageQueuePermissionEntry.cs: Implemented all TODO.
	* MessageQueuePermissionEntryCollection.cs: Removed Clear on On*
	methods and added TODO.

svn path=/trunk/mcs/; revision=33707
2004-09-10 14:10:35 +00:00
Sebastien Pouliot c0a27200d8 2004-09-10 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.Messaging_test.dll.sources: New. Source list for unit tests.

svn path=/trunk/mcs/; revision=33706
2004-09-10 14:06:10 +00:00
Sebastien Pouliot 4bd7fe8242 2004-09-10 Sebastien Pouliot <[email protected]>
* MessageQueuePermissionAttributeTest.cs: New. Unit tests for Message
	QueuePermissionAttribute.

svn path=/trunk/mcs/; revision=33705
2004-09-10 14:03:12 +00:00
Ravindra 6c7b8e85a0 Added a check for null image.
svn path=/trunk/mcs/; revision=33704
2004-09-10 11:51:29 +00:00
Raja R Harinath 1c39a82c18 * test-290.cs: New test.
* Makefile (TEST_SOURCES): Add test-290.cs.

svn path=/branches/mono-1-0/mcs/; revision=33703
2004-09-10 11:17:38 +00:00
Raja R Harinath 22c8d0bffe Fix test-290.cs.
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.

(Backport from trunk)

svn path=/branches/mono-1-0/mcs/; revision=33702
2004-09-10 11:16:31 +00:00
Raja R Harinath 7ed8b4dbf2 Fix bootstrap with mcs 1.1.x.
* UnmanagedType.cs (UnmanagedType.__mono_bootstrap_NativeTypeMax):
Mark as non-compliant to CLS.

svn path=/branches/mono-1-0/mcs/; revision=33701
2004-09-10 11:12:21 +00:00
Raja R Harinath 315f85b281 New test for #64330.
svn path=/trunk/mcs/; revision=33700
2004-09-10 09:38:12 +00:00
Raja R Harinath 73b58680d3 (fixed_statement): Introduce a scope for the
declaration in the 'fixed' statement.

svn path=/trunk/mcs/; revision=33699
2004-09-10 09:37:34 +00:00
Ravindra 309fa659d6 Backporting some fixes.
svn path=/branches/mono-1-0/mcs/; revision=33698
2004-09-10 08:42:59 +00:00
Paolo Molaro 7904733e7b Some docs.
svn path=/trunk/mono/; revision=33696
2004-09-10 08:08:14 +00:00
Ravindra 3cb3105f0a * Graphics.cs: Implemented DrawIcon methods and fixed
DrawImageUnscaled method implementation.

svn path=/trunk/mcs/; revision=33694
2004-09-10 07:36:54 +00:00
Jordi Mas i Hernandez 68365538c6 remove cvs tag
svn path=/trunk/mcs/; revision=33693
2004-09-10 06:59:09 +00:00
Tim Coleman c1ca66f2a8 2004-09-09 Tim Coleman <[email protected]>
* System.dll.sources: Add new System.Net.Mail classes

svn path=/trunk/mcs/; revision=33692
2004-09-10 04:31:02 +00:00
Tim Coleman e440dc3bc6 2004-09-09 Tim Coleman <[email protected]>
* ContentType.cs: Changes to MIME headers

svn path=/trunk/mcs/; revision=33691
2004-09-10 04:28:51 +00:00
Tim Coleman 1dd5edf8db 2004-09-09 Tim Coleman <[email protected]>
* AttachmentCollection.cs MailAddressCollection.cs:
                New classes
        * Attachment.cs: Set content string
        * MailMessage.cs: Use new collection classes
        * SmtpClient.cs: Lots of MIME cleanup

svn path=/trunk/mcs/; revision=33690
2004-09-10 04:27:21 +00:00
Bernie Solomon 7e9ce72b44 2004-09-09 Bernie Solomon <[email protected]>
* Test.Sources: fix case of a couple of filenames

svn path=/trunk/mcs/; revision=33689
2004-09-10 03:16:25 +00:00
Gonzalo Paniagua Javier 849f727611 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: ensure bin directory exists before trying to access
	it. Fixes bug #65446 (not closed yet due to dependencies).

svn path=/trunk/mcs/; revision=33688
2004-09-10 02:46:22 +00:00
Gonzalo Paniagua Javier 980d0c2a66 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: ensure bin directory exists before trying to access
	it. Fixes bug #65446 (not closed yet due to dependencies).

svn path=/branches/mono-1-0/mcs/; revision=33687
2004-09-10 02:45:50 +00:00
Gonzalo Paniagua Javier d65a8c8529 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpStaticObjectsCollection.cs:
	* System.Web.SessionState/HttpSessionState.cs: don't share static
	session objects declared in the application file across the application,
	but on a per-session basis. Fixes bug #65446.

svn path=/branches/mono-1-0/mcs/; revision=33686
2004-09-10 02:19:05 +00:00
Gonzalo Paniagua Javier b53f5e5bb9 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpStaticObjectsCollection.cs:
	* System.Web.SessionState/HttpSessionState.cs: don't share static
	session objects declared in the application file across the application,
	but on a per-session basis. Fixes bug #65446.

svn path=/trunk/mcs/; revision=33685
2004-09-10 02:17:15 +00:00
Fawad Halim a3d03c3904 Added test cases for bug# 64995.
svn path=/trunk/mcs/; revision=33684
2004-09-10 02:01:47 +00:00
Gonzalo Paniagua Javier c1e92b2f25 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
	the transfer is done from inside a page that received a postback.
	Fixes bug #65613.

svn path=/trunk/mcs/; revision=33681
2004-09-10 01:34:47 +00:00
Marek Safar 65c6c2ff60 Please, do not commit generated file
svn path=/trunk/mcs/; revision=33680
2004-09-09 21:36:21 +00:00
Marek Safar e1353500a3 2004-09-09 Marek Safar <[email protected]>
* cs-parser.jay: Added CS0230 error report.

svn path=/trunk/mcs/; revision=33678
2004-09-09 21:13:13 +00:00
Martin Baulig 5ee922139a 2004-09-10 Martin Baulig <[email protected]>
* gen-76.cs: New test.

svn path=/trunk/mcs/; revision=33677
2004-09-09 20:54:42 +00:00
Marek Safar b63051d517 2004-09-09 Marek Safar <[email protected]>
* cs-parser.jay: Added errors CS0231 and CS0257 report.

svn path=/trunk/mcs/; revision=33676
2004-09-09 20:50:04 +00:00
Marek Safar 967e5d058e code formating
svn path=/trunk/mcs/; revision=33675
2004-09-09 20:47:58 +00:00
Martin Baulig d2fd7066c1 2004-09-09 Martin Baulig <[email protected]>
* mini-amd64.c: Don't access `type->data.klass' directly, call
	mono_class_from_mono_type() instead since the type may be a
	generic instance.

svn path=/trunk/mono/; revision=33674
2004-09-09 20:33:52 +00:00
Miguel de Icaza 8811e6dd79 Add new script
svn path=/trunk/mono/; revision=33673
2004-09-09 20:32:07 +00:00
Miguel de Icaza 69cb1d5c98 Add wsdl2 page, update wsdl man page
svn path=/trunk/mono/; revision=33672
2004-09-09 20:31:40 +00:00
Miguel de Icaza b02285ad73 Add wsdl2.exe to the dist
svn path=/trunk/mono/; revision=33671
2004-09-09 20:29:55 +00:00
Marek Safar 9e6367d7c8 2004-09-09 Marek Safar <[email protected]>
* expression.cs (Argument.Resolve): Added error CS0192 and
	CS0199 report.

svn path=/trunk/mcs/; revision=33670
2004-09-09 20:22:47 +00:00
Marek Safar 29ede20a97 2004-09-09 Marek Safar <[email protected]>
* test-291.cs: New test for #pragma warning.

svn path=/trunk/mcs/; revision=33667
2004-09-09 18:56:20 +00:00
Marek Safar e7397842a1 2004-09-09 Marek Safar <[email protected]>
C# 2.0 #pragma warning feature

	* cs-tokenizer.cs (PreProcessPragma): New method;
	Handles #pragma directive.

	* report.cs (WarningRegions): New class; Support
	class for #pragma warning directive. It tests whether
	warning is enabled for a given line.

svn path=/trunk/mcs/; revision=33666
2004-09-09 18:54:39 +00:00
Martin Baulig 2263985ade 2004-09-09 Martin Baulig <[email protected]>
* mini-amd64.c (get_call_info): Fix support for generic instances.
	(add_valuetype): Use mono_class_from_mono_type() to get the class
	since we can be a generic instance.

svn path=/trunk/mono/; revision=33661
2004-09-09 16:25:51 +00:00
Martin Baulig e2bb200ab1 Really fix generic instances.
svn path=/trunk/mono/; revision=33660
2004-09-09 15:57:59 +00:00
Tim Coleman e1aa081c6c 2004-09-09 Tim Coleman <[email protected]>
* corlib.dll.sources: Added System/Base64FormattingOptions.cs to the
	build

svn path=/trunk/mcs/; revision=33659
2004-09-09 14:43:25 +00:00
Tim Coleman 0d9aaa71bf 2004-09-09 Tim Coleman <[email protected]>
* Base64FormattingOptions.cs: New enum
        * Convert.cs: Add new ToBase64String methods for Fx 2.0

svn path=/trunk/mcs/; revision=33658
2004-09-09 14:40:50 +00:00
Tim Coleman 319122710c 2004-09-09 Tim Coleman <[email protected]>
* StringBuilder.cs: Added AppendLine methods for Fx 2.0

svn path=/trunk/mcs/; revision=33657
2004-09-09 14:37:31 +00:00
Dick Porter d7318c2a86 2004-09-09 Dick Porter <[email protected]>
* error.c:
	* io.c: Set error codes everywhere.

svn path=/trunk/mono/; revision=33656
2004-09-09 14:28:17 +00:00
Geoff Norton 7c3bdef800 2004-09-09 Geoff Norton <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes):
	Fix GetTypes() to support dynamically created assemblies.
	Patch for #65576 approved by Zoltan.

svn path=/trunk/mono/; revision=33654
2004-09-09 14:21:57 +00:00
Paolo Molaro 04d775954a Thu Sep 9 07:09:11 PDT 2004 Paolo Molaro <[email protected]>
* ScriptCompilerInfo.cs: avoid using a .cctor and fix precomp.

svn path=/trunk/mcs/; revision=33652
2004-09-09 12:59:46 +00:00
Martin Baulig 45a5ca71b9 Oops.
svn path=/trunk/mono/; revision=33651
2004-09-09 12:27:28 +00:00
Martin Baulig b4d6a3fb5b 2004-09-09 Martin Baulig <[email protected]>
* mini-amd64.c (get_call_info): Fix support for generic instances.

svn path=/trunk/mono/; revision=33650
2004-09-09 12:18:43 +00:00
Martin Baulig f4a3f28591 2004-09-09 Martin Baulig <[email protected]>
* cs-parser.jay (namespace_declaration): Fixed CS0134 reporting.

svn path=/trunk/mcs/; revision=33649
2004-09-09 11:26:24 +00:00
Ravindra 0610903042 Make redraw accessible from ToolBarButton.
svn path=/trunk/mcs/; revision=33648
2004-09-09 11:25:03 +00:00
Zoltan Varga 6c4af1cb64 2004-09-09 Zoltan Varga <[email protected]>
* reflection.c (reflection_methodbuilder_to_mono_method): Remove TODO.

svn path=/trunk/mono/; revision=33647
2004-09-09 11:23:35 +00:00
Ravindra 3e3201185b Changes in ToolBarButton need to make it's parent redraw.
svn path=/trunk/mcs/; revision=33646
2004-09-09 11:23:05 +00:00
Zoltan Varga 6ee8253260 2004-09-09 Zoltan Varga <[email protected]>
* reflection.c (reflection_methodbuilder_to_mono_method): Fix bug in
	previous patch.

svn path=/trunk/mono/; revision=33644
2004-09-09 11:19:06 +00:00
Sanja Gupta bfafef1092 ChangeLog: Updated ChangeLog.
Control.cs: Implemented methods of interface IExpressionAccessor.

svn path=/trunk/mcs/; revision=33643
2004-09-09 11:19:05 +00:00
Martin Baulig fc7e44649b New test.
svn path=/trunk/mcs/; revision=33642
2004-09-09 11:11:32 +00:00
Zoltan Varga 254ab0e12f 2004-09-09 Zoltan Varga <[email protected]>
* reflection.h reflection.c loader.c: Allow dynamic construction of
	pinvoke methods. Fixes #65571.

svn path=/trunk/mono/; revision=33641
2004-09-09 11:11:11 +00:00
Sebastien Pouliot c767473f38 2004-09-09 Sebastien Pouliot <[email protected]>
* PrintingPermission.cs: Applied the new permission template.
	Implemented missing To|FromXml. Fixed set operations, ...
	* PrintingPermissionAttribute.cs: Added enum validation for Level and
	creation of unrestricted permissions.
	* PrintingPermissionLevel.cs: Added [Serializable] for NET_2_0.

svn path=/trunk/mcs/; revision=33640
2004-09-09 11:09:41 +00:00
Martin Baulig 8ecd0a0d44 Updated.
svn path=/trunk/mcs/; revision=33639
2004-09-09 11:09:33 +00:00
Sebastien Pouliot e7ba4b602c 2004-09-09 Sebastien Pouliot <[email protected]>
* System.Drawing_test.dll.sources: Added unit tests for
	PrintingPermission and it's attribute class.

svn path=/trunk/mcs/; revision=33638
2004-09-09 10:53:40 +00:00
Sebastien Pouliot f8d9c75336 2004-09-09 Sebastien Pouliot <[email protected]>
* PrintingPermissionAttributeTest.cs: New. Unit tests for Printing
	PermissionAttribute.
	* PrintingPermissionTest.cs: New. Unit tests for PrintingPermission.

svn path=/trunk/mcs/; revision=33637
2004-09-09 10:52:40 +00:00
Dick Porter 3166ac6ea0 Compile fixes
svn path=/trunk/mono/; revision=33636
2004-09-09 10:44:30 +00:00
Zoltan Varga 150819ceea 2004-09-09 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Add test for lookup of global methods.

svn path=/trunk/mcs/; revision=33635
2004-09-09 10:20:31 +00:00
Zoltan Varga 2a35efb091 2004-09-09 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Set the table_idx of the global type to 1.

svn path=/trunk/mcs/; revision=33633
2004-09-09 10:15:31 +00:00
Lluis Sanchez 87f6305819 * interp.c: In interp_walk_stack, don't crash if the context is not set
(this may happen if the method is called by unmanaged code).

svn path=/trunk/mono/; revision=33632
2004-09-09 09:53:39 +00:00
Marek Safar 9c68256e6a Added langversion
svn path=/trunk/mono/; revision=33631
2004-09-09 08:55:20 +00:00
Zoltan Varga 6cf9db9602 2004-09-09 Zoltan Varga <[email protected]>
* ModuleBuilder.cs: Save the main module of the assembly even if it is
	transient.

svn path=/trunk/mcs/; revision=33629
2004-09-09 08:34:51 +00:00
Martin Baulig 53fb13028b 2004-09-09 Martin Baulig <[email protected]>
* generic.cs (TypeParameter.DefineType): Added support for
	explicit interface methods.

svn path=/trunk/mcs/; revision=33628
2004-09-09 08:28:51 +00:00
Peter Dennis Bartok 57691e7ea0 - Improve disabled string look
svn path=/trunk/mcs/; revision=33627
2004-09-09 08:28:11 +00:00
Martin Baulig d50775aa54 2004-09-09 Martin Baulig <[email protected]>
* gen-75.cs: New test.

svn path=/trunk/mcs/; revision=33626
2004-09-09 08:22:53 +00:00
Zoltan Varga 412797a268 2004-09-09 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_get_type): Revert previous change since
	it causes regressions.

svn path=/trunk/mono/; revision=33625
2004-09-09 08:22:28 +00:00
Martin Baulig b2d3766e5a 2004-09-09 Martin Baulig <[email protected]>
* README.Changes: New document.  Started to list important changes
	between MCS and GMCS here.

svn path=/trunk/mcs/; revision=33624
2004-09-09 07:58:45 +00:00
Paolo Molaro 9c7c4804d7 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <[email protected]>
* mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.

svn path=/trunk/mono/; revision=33622
2004-09-09 07:35:12 +00:00
Jordi Mas i Hernandez 6db01fd2fe measureitem args and handler
svn path=/trunk/mcs/; revision=33621
2004-09-09 07:15:19 +00:00
Ravindra caa4c8c71a Updated project.
svn path=/trunk/mcs/; revision=33620
2004-09-09 06:03:40 +00:00
Ravindra b177147269 Added some new enums to the list.
svn path=/trunk/mcs/; revision=33619
2004-09-09 05:57:39 +00:00
Ravindra bb9b26546b It's enum, not a class!
svn path=/trunk/mcs/; revision=33618
2004-09-09 05:56:20 +00:00
Ravindra 8a010bc3d3 Enums for Form.
svn path=/trunk/mcs/; revision=33617
2004-09-09 05:47:47 +00:00
Anirban Bhattacharjee ab02486724 missed out Test.Sources file in last commit
svn path=/trunk/mcs/; revision=33613
2004-09-09 04:05:08 +00:00
Ravindra 8e701cb9f9 Enums for ListView control.
svn path=/trunk/mcs/; revision=33611
2004-09-09 03:13:39 +00:00
Ravindra 2ff8c742ab PictureBox would not draw a null image to avoid crash.
svn path=/trunk/mcs/; revision=33610
2004-09-09 03:03:49 +00:00
Ravindra 6814d3da57 Removed unreachable code.
svn path=/trunk/mcs/; revision=33609
2004-09-09 03:01:35 +00:00
Miguel de Icaza c9e719c5c5 2004-09-08 Miguel de Icaza <[email protected]>
* const.cs: Add more descriptive error report, tahnks to
	Sebastien.

svn path=/trunk/mcs/; revision=33604
2004-09-08 23:36:00 +00:00
Tim Coleman fa3d3892ea 2004-09-08 Tim Coleman <[email protected]>
* Attachment.cs: Add SetContentFromFile methods
        * MailMessage.cs: Add MIME-Version header
        * SmtpClient.cs: Add some attachment handling.

svn path=/trunk/mcs/; revision=33603
2004-09-08 23:26:44 +00:00
Gonzalo Paniagua Javier 6c437856da 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: fix buglet in my last commit.

svn path=/trunk/mcs/; revision=33601
2004-09-08 23:25:04 +00:00
Miguel de Icaza d83f3856a1 Fix ArgumentNullException arguments, thanks Sebastien
svn path=/trunk/mcs/; revision=33600
2004-09-08 23:11:56 +00:00
Miguel de Icaza 046cc83ddc 2004-09-08 Miguel de Icaza <[email protected]>
* File.cs: Added Gettextification, provide a better error message
	for #62112
2004-09-08  Miguel de Icaza  <[email protected]>

	* Locale.cs: Added overload that calls String.Format.

svn path=/trunk/mcs/; revision=33597
2004-09-08 22:12:40 +00:00
Bernie Solomon 74e373d7f3 2004-09-08 Bernie Solomon <[email protected]>
* mb-parser.jay: fix CopyTo args when parsing parameters

svn path=/trunk/mcs/; revision=33596
2004-09-08 21:19:27 +00:00
Bernie Solomon b22296b803 2004-09-08 Bernie Solomon <[email protected]>
* expression.cs: cope with ParamArray for no args
	* mb-parser.jay: dump parsing exception with --stacktrace

svn path=/trunk/mcs/; revision=33595
2004-09-08 21:13:22 +00:00
Martin Baulig 8ef1604850 2004-09-08 Martin Baulig <[email protected]>
* class.c (class_compute_field_layout): Don't call
	mono_class_layout_fields() for open generic instances.

svn path=/trunk/mono/; revision=33594
2004-09-08 19:19:40 +00:00
Martin Baulig 0ecc982c00 2004-09-08 Martin Baulig <[email protected]>
* class.cs
	(TypeContainer.CheckRecursiveDefinition): New protected method.
	(TypeContainer.DefineType): Move the CS0146 check into
	CheckRecursiveDefinition().

svn path=/trunk/mcs/; revision=33593
2004-09-08 17:46:56 +00:00
Martin Baulig b603f756f1 Updated again.
svn path=/trunk/mcs/; revision=33592
2004-09-08 17:43:09 +00:00
Marek Safar e4a42850f1 2004-09-08 Marek Safar <[email protected]>
* ecore.cs (FieldExpr.DoResolveLValue): Fixed CS0198 report.

svn path=/trunk/mcs/; revision=33584
2004-09-08 15:55:32 +00:00
Bernie Solomon 93b7753e3b 2004-09-08 Bernie Solomon <[email protected]>
* threads.c appdomain.c: fix typo in GC macro

svn path=/trunk/mono/; revision=33583
2004-09-08 15:07:13 +00:00
Marek Safar 73fe387760 2004-09-08 Marek Safar <[email protected]>
* Marshal.cs: Class is static in NET_2_0.

svn path=/trunk/mcs/; revision=33580
2004-09-08 14:40:59 +00:00
Lluis Sanchez 131cf2c0dd * CSharpCodeGenerator.cs: Reverted change in GenerateArrayCreateExpression.
It was causing regressions.

svn path=/trunk/mcs/; revision=33578
2004-09-08 14:16:04 +00:00
Marek Safar 715d1cfc6b 2004-09-08 Marek Safar <[email protected]>
* Interlocked.cs: Class is static in NET_2_0.

svn path=/trunk/mcs/; revision=33577
2004-09-08 14:07:05 +00:00
Lluis Sanchez 88ad9ccdd4 * delegate8.cs: New regression test for bug #59299.
* Makefile.am: Added delegate8.cs.

svn path=/trunk/mono/; revision=33576
2004-09-08 14:01:54 +00:00
Marek Safar 92587190c7 2004-09-08 Marek Safar <[email protected]>
* Directory.cs,
	* File.cs: Class is static for NET_2_0.

svn path=/trunk/mcs/; revision=33575
2004-09-08 13:56:24 +00:00
Marek Safar b3d3c6e409 2004-09-08 Marek Safar <[email protected]>
* Console.cs,
	* GC.cs: Class is static for NET_2_0.

svn path=/trunk/mcs/; revision=33574
2004-09-08 13:30:17 +00:00
Rafael Teixeira cd462b4b4a 2004/08/19 Rafael Teixeira <[email protected]>
* mb-parser.jay : some changes just not to stumble in global attributes definitions in multiple-lines
		like we have in VS.NET generated AssemblyInfo.vb files. still need to really process that definitions like mcs does

svn path=/trunk/mcs/; revision=33573
2004-09-08 13:10:16 +00:00
Jordi Mas i Hernandez c6bf9396ed enumerations need it by menus
svn path=/trunk/mcs/; revision=33571
2004-09-08 12:45:12 +00:00
Atsushi Eno 95b83be635 2004-09-08 Atsushi Enomoto <[email protected]>
* XPathSequence.cs : workarounded bug #65521. Erased foreach inside
	  iterators.

svn path=/trunk/mcs/; revision=33570
2004-09-08 12:26:07 +00:00
Anirban Bhattacharjee 90849a413f 2004-09-08 Anirban Bhattacharjee <[email protected]>
* OptionalArgu_ByRefFuncA.vb:
        * OptionalArgu_ByValFuncD.vb:
        * OptionalArgu_ByValueD.vb:
        * OptionalArgu_ByRefFuncB.vb:
        * OptionalArgu_ByValFuncE.vb:
        * OptionalArgu_ByValueE.vb:
        * OptionalArgu_ByFunctionC1.vb:
        * OptionalArgu_ByRefFuncC.vb:
        * OptionalArgu_ByReferenceA.vb:
        * OptionalArgu_ByRefFuncD.vb:
        * OptionalArgu_ByValueA.vb:
        * OptionalArgu_ByReferenceB.vb:
        * OptionalArgu_ByValFuncA.vb:
        * OptionalArgu_ByValueB.vb:
        * Optional_ParamArrayC1.vb:
        * OptionalArgu_ByReferenceC.vb:
        * OptionalArgu_ByValFuncB.vb:
        * OptionalArgu_ByValueC1.vb:
        * Optional_ParamArrayC2.vb:
        * OptionalArgu_ByReferenceD.vb:
        * OptionalArgu_ByValFuncC.vb:
        * OptionalArgu_ByValueC.vb:
        * Test.Sources: Updated with new test names
                This set of tests are developed by Manish Sinha <[email protected]> which nicely compliment Bernie Sonomon's nice & long work.

svn path=/trunk/mcs/; revision=33568
2004-09-08 10:37:51 +00:00
Atsushi Eno 0eb8a86796 2004-09-08 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : Use XmlWriter.Create() instead of XmlTextWriter.
	  It affects on XML declaration output.

svn path=/trunk/mcs/; revision=33567
2004-09-08 09:27:58 +00:00
Atsushi Eno d950483a84 2004-09-08 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : fixed EnclosedExpr.Compile() that resulted
	  in index out of range.
	* XPathSequence.cs : FLWORIterator got working, but only when compiled
	  with .NET 2.0 csc (still weird Invalid IL error happens).

svn path=/trunk/mcs/; revision=33566
2004-09-08 09:17:51 +00:00
Atsushi Eno 15d11151e9 2004-09-08 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XmlWriterSettingsTests.cs.

svn path=/trunk/mcs/; revision=33565
2004-09-08 08:42:38 +00:00
Atsushi Eno b2b88e20ff 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlWriterSettingsTests.cs : added.

svn path=/trunk/mcs/; revision=33564
2004-09-08 08:42:12 +00:00
Atsushi Eno 616dba98f5 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
	  Implemented CheckCharacters and CloseOutput support.

svn path=/trunk/mcs/; revision=33563
2004-09-08 08:41:30 +00:00
Gonzalo Paniagua Javier 5f1cf31a64 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* threads.c: don't call mono_thread_detach() in start_wrapper(),
	avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.

svn path=/trunk/mono/; revision=33562
2004-09-08 08:26:56 +00:00
Carlos Alberto Cortez 764fe9b46d ReadOnlyCollection added to corlib.dll.sources.
svn path=/trunk/mcs/; revision=33561
2004-09-08 08:06:50 +00:00
Carlos Alberto Cortez 4a58119989 System.Collections.Generic.ReadOnlyCollection.cs file added.
svn path=/trunk/mcs/; revision=33560
2004-09-08 08:02:44 +00:00
Jackson Harper 896bbf704c Only run the timers when updating the message queue. This effectively gives X messages a higher priority then timer messages. Timers still need love though
svn path=/trunk/mcs/; revision=33559
2004-09-08 07:00:28 +00:00
Atsushi Eno e95a1ed5dd 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs : evidence is always provided.
	* XmlWriter.cs, XmlTextWriter.cs :
	  added support for ConformanceLevel and OmitXmlDeclaration.

svn path=/trunk/mcs/; revision=33558
2004-09-08 05:49:24 +00:00
Gonzalo Paniagua Javier ce26bf6f68 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* HttpValueCollection.cs: fixed signature of ToString (). Closes bug
	#65392.

svn path=/trunk/mcs/; revision=33555
2004-09-08 05:15:58 +00:00
Atsushi Eno cd663617ec 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Console.WriteLine() injected :(
	* XmlTextWriter.cs : It it partly supports XmlWriterSettings.
	* XmlWriter.cs : implemented Create().
	* XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).

svn path=/trunk/mcs/; revision=33554
2004-09-08 05:11:19 +00:00
Bernie Solomon 69784abfe0 2004-07-07 Bernie Solomon <[email protected]>
* Test.Sources: make file names match actual files

svn path=/trunk/mcs/; revision=33553
2004-09-08 03:37:29 +00:00
Duncan Mak 3114b5f1ac * runtime/Makefile.am (monobins_DATA): Add the various mdb files
for each of the executables we ship.

* runtime/net_1_1/Makefile.am
* runtime/net_2_0/Makefile.am
(mdb_files, EXTRA_DIST): Add $(mdb_files).

svn path=/trunk/mono/; revision=33551
2004-09-07 22:08:33 +00:00
Ben Maurer c80a2bf4fd 2004-09-07 Ben Maurer <[email protected]>
* Activator.cs: Make sure not to call .GetType on a
	null argument. fixes 63852

svn path=/trunk/mcs/; revision=33549
2004-09-07 21:49:14 +00:00
Ben Maurer 5227528d51 2004-09-07 Ben Maurer <[email protected]>
* liveness.c: reset spill costs on each scan: bug 62107

svn path=/trunk/mono/; revision=33548
2004-09-07 21:41:13 +00:00
Ben Maurer 47293a3ccc 2004-09-07 Ben Maurer <[email protected]>
* liveness.c: reset spill costs on each scan

svn path=/trunk/mono/; revision=33547
2004-09-07 21:32:26 +00:00
Bernie Solomon eb636855e6 2004-09-07 Bernie Solomon <[email protected]>
* mono-sha1.c: Remove uint32 and int32 types completely

svn path=/trunk/mono/; revision=33546
2004-09-07 21:28:20 +00:00
Zoltan Varga 648613df6f 2004-09-08 Zoltan Varga <[email protected]>
* image.c (mono_image_close): Applied patch from
	[email protected] (Vasantha selvi). Fix crash when an
	assembly is loaded multiple times from data.

	* image.c (mono_image_open): Fix warning.

svn path=/trunk/mono/; revision=33541
2004-09-07 21:01:29 +00:00
Francisco Figueiredo Jr. aee05c4afb 2004-09-07 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlException.cs:  Added support for deserialization of NpgsqlException.

	* NpgsqlState.cs: Added missing handling of NoData message.

svn path=/trunk/mcs/; revision=33539
2004-09-07 20:45:04 +00:00
Francisco Figueiredo Jr. ee12cadf33 2004-09-07 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlState.cs: Added missing handling of NoData message.

svn path=/trunk/mcs/; revision=33538
2004-09-07 20:43:02 +00:00
Francisco Figueiredo Jr. 7302dde121 2004-09-07 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlException.cs:  Added support for deserialization of NpgsqlException.

svn path=/trunk/mcs/; revision=33537
2004-09-07 20:41:23 +00:00
Bernie Solomon 7115b59594 2004-09-07 Bernie Solomon <[email protected]>
* mb-parser.jay:
	* mb-tokenizer.cs: first cut at implementing
	op assign

svn path=/trunk/mcs/; revision=33536
2004-09-07 20:29:44 +00:00
Bernie Solomon ae2afba12c 2004-07-07 Bernie Solomon <[email protected]>
* OptionalA.vb: new test for optional args + overloads

svn path=/trunk/mcs/; revision=33534
2004-09-07 20:06:52 +00:00
Jackson Harper 28670202ba Do not call XDestroyWindow, X has already done this for us and the handle is no longer valid.
svn path=/trunk/mcs/; revision=33533
2004-09-07 20:01:53 +00:00
Jackson Harper 490ffc887f First steps towards a new X event loop that manages to not crash. TODO: Add poll and cleanup timers
svn path=/trunk/mcs/; revision=33532
2004-09-07 19:59:41 +00:00
Miguel de Icaza 1d7e47748c 2004-09-07 Miguel de Icaza <[email protected]>
* expression.cs: Apply patch from Ben: Remove dead code from
	ArrayCreation, and remove the TurnintoConstant call in const.cs,
	as that code just threw an exception anwyays.

	* const.cs: Remove the call to the turnintoconstant, for details
	see bug: #63144

svn path=/trunk/mcs/; revision=33531
2004-09-07 18:33:17 +00:00
Bernie Solomon ddd00cdb95 2004-09-07 Bernie Solomon <[email protected]>
* ecore.cs:
	* enum.cs:
	* expression.cs:
	* mb-parser.jay:
	* support.cs: work on improving overload resolution

svn path=/trunk/mcs/; revision=33530
2004-09-07 18:04:33 +00:00
Miguel de Icaza aa338753db 2004-09-07 Miguel de Icaza <[email protected]>
* literal.cs: The type of the null-literal is the null type;  So
	we use a placeholder type (literal.cs:System.Null, defined here)
	for it.

	* expression.cs (Conditional.DoResolve): Remove some old code that
	is no longer needed, conversions have been fixed.

svn path=/trunk/mcs/; revision=33529
2004-09-07 17:23:56 +00:00
Jordi Mas i Hernandez 8006bc98d2 GroupBox control
svn path=/trunk/mcs/; revision=33528
2004-09-07 17:12:26 +00:00
Bernie Solomon 704ad2cf91 2004-09-07 Bernie Solomon <[email protected]>
* exceptions-sparc.c (mono_arch_find_jit_info): remove
	unnecessary line that doesn't compile

svn path=/trunk/mono/; revision=33526
2004-09-07 16:29:48 +00:00
Miguel de Icaza 01e7842e35 2004-09-07 Miguel de Icaza <[email protected]>
* expression.cs: Return false if we fail to resolve the inner

svn path=/trunk/mcs/; revision=33524
2004-09-07 15:28:45 +00:00
Miguel de Icaza 7251810eee Add new test
svn path=/trunk/mcs/; revision=33523
2004-09-07 15:27:41 +00:00
Atsushi Eno 5b2db7e8c4 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlFactory.cs : removed (obsolete).

svn path=/trunk/mcs/; revision=33522
2004-09-07 14:56:46 +00:00
Martin Baulig 88e710013c 2004-09-07 Martin Baulig <[email protected]>
* mcs-expect-no-error: I'm slowly getting annoyed.  Is it really
	so hard to add new tests here ?

svn path=/trunk/mcs/; revision=33521
2004-09-07 14:49:22 +00:00
Atsushi Eno 1b13b41dee 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
	  namespace when scope is .ExcludeXml or .All.
	* XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
	  Fixed ReadTypedValue() to call ReadValueAs().

svn path=/trunk/mcs/; revision=33520
2004-09-07 14:03:53 +00:00
Atsushi Eno 1fc0d15f0a 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlReaderCommonTests.cs : Added tests for ReadAsObject().

svn path=/trunk/mcs/; revision=33519
2004-09-07 14:03:17 +00:00
Duncan Mak 9a401f3c3f Forgot about this bit too
svn path=/trunk/mono/; revision=33517
2004-09-07 13:39:23 +00:00
Duncan Mak d94ae47aa0 Add an unsafe section to the code that's using direct pointers. This
was breaking the test stage on the build boxes.

svn path=/trunk/mono/; revision=33516
2004-09-07 13:09:55 +00:00
Atsushi Eno b7b3f27e64 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
	  inconsistent namespace pairs.

svn path=/trunk/mcs/; revision=33515
2004-09-07 12:46:34 +00:00
Atsushi Eno c24f05e78a 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManagerTests.cs : Added test for duplicate addition,
	  atomization, complex RemoveNamespace() and GetNamespacesInScope().

svn path=/trunk/mcs/; revision=33514
2004-09-07 12:45:56 +00:00
Zoltan Varga ee4831b594 2004-09-07 Zoltan Varga <[email protected]>
* reflection.h reflection.c icall.c: Only call TypeResolve handlers
	once. Fixes #58334.

svn path=/trunk/mono/; revision=33511
2004-09-07 12:27:17 +00:00
Dick Porter 0cae210e57 2004-09-07 Dick Porter <[email protected]>
* Process.cs: Throw documented exceptions when getting stdin,
	stdout or stderr and they haven't been redirected.  Check that
	CreatePipe didn't fail, throw exceptions if it did.  Close
	redirected streams when the process is disposed, rather than rely
	on the GC disposing them later.  Makes timeline much happier,
	because it could run out of file descriptors between GC
	collections.

svn path=/trunk/mcs/; revision=33501
2004-09-07 12:06:43 +00:00
Sebastien Pouliot ec42f2d2ec 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: CreateFromSignedFile now throw the COMException
	if the specified file isn't signed (before this was done by
	AuthenticodeDeformatter). More details are available on failure.

svn path=/trunk/mcs/; revision=33500
2004-09-07 12:02:01 +00:00
Sebastien Pouliot cbce7eda78 2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: Merge from Mono.Security.dll. This version is
	less memory consuming (it works by 4kb blocks instead of loading the
	entire assembly).
	* AuthenticodeDeformatter.cs: Merge from Mono.Security.dll. Hash will
	only be created if the assembly is signed. Benefits from Authenticode
	Base changes.

svn path=/trunk/mcs/; revision=33498
2004-09-07 11:59:36 +00:00
Zoltan Varga de67f8ea08 2004-09-07 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_runtime_class): Initialize
	klass->nested_classes. Fixes #61224.

svn path=/trunk/mono/; revision=33497
2004-09-07 11:57:27 +00:00
Sebastien Pouliot cb848c9beb 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Chain.cs: Merge from Mono.Security. Fix two bugs (chain
	construction from collection) and Reset-ing empty chain.

svn path=/trunk/mcs/; revision=33496
2004-09-07 11:51:00 +00:00
Sebastien Pouliot e376051abe 2004-09-07 Sebastien Pouliot <[email protected]>
* Mono.Security_test.dll.sources: Added unit tests for Authenticode
	Deformatter.

svn path=/trunk/mcs/; revision=33495
2004-09-07 11:46:38 +00:00
231 changed files with 3405 additions and 2745 deletions

No files matched your search

-38
View File
@@ -1,41 +1,3 @@
2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added check for kqueue. Patch from Geoff Norton
in HEAD.
2004-08-17 Dick Porter <[email protected]>
* configure.in: Correct intl library for FreeBSD and OpenBSD.
Fixes bug 62884, patch by Tom McLaughlin ([email protected]).
2004-07-27 John Merryweather Cooper <[email protected]>
* configure.in: Disable __thread test (TLS) for FreeBSD as
it succeeds on FreeBSD 5.x when it should fail. Fix pthread
library detection for FreeBSD 4.x since pthread is embedded
in libc_r on this platform. Fix some typos in my host
regexes for freebsd.
2004-07-23 Dick Porter <[email protected]>
* configure.in: Changes for FreeBSD thread support by John
Merryweather Cooper <[email protected]>.
2004-07-03 Zoltan Varga <[email protected]>
* configure.in: Add --with-tls option to replace the misnamed
--with-nptl option.
2004-06-30 Zoltan Varga <[email protected]>
* configure.in: Fix trunc check + add SPARC64 defines.
* marshal.c (mono_marshal_get_managed_wrapper): Handle returning
delegates from a delegate. Fixes #61033.
2004-06-29 Jackson Harper <[email protected]>
* man/gacutil.1: Update man with new command line options.
2004-06-29 Raja R Harinath <[email protected]>
Atsushi Enomoto <[email protected]>
+10 -102
View File
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,1.0.1)
AM_INIT_AUTOMAKE(mono,1.0)
AM_MAINTAINER_MODE
AC_PROG_LN_S
@@ -67,62 +67,7 @@ case "$host" in
libdl=
libgc_threads=no
;;
# these flags will work for all versions of -STABLE
#
*-*-*freebsd4*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
libmono_cflags="-D_THREAD_SAFE"
else
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags="$PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
else
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=pthreads
# TLS isn't implemented at all on -STABLE
with_nptl=no
with_tls=pthread
;;
# older versions of -CURRENT will break with these flags but testing
# indicates these older versions won't run Mono anyway
#
*-*-*freebsd5*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags=
else
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags="$PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
LDFLAGS="$LDFLAGS -lpthread"
libmono_ldflags="-lpthread"
else
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=pthreads
# TLS is only partially implemented on -CURRENT (compiler support
# but NOT library support)
#
with_nptl=no
with_tls=pthread
;;
*-*-*openbsd*)
*-*-*freebsd*|*-*-*openbsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
libmono_cflags="-D_THREAD_SAFE"
@@ -303,21 +248,9 @@ AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default]
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
# Kept for compatibility
AC_ARG_WITH(nptl, [ --with-nptl=yes,no deprecated, use --with-tls instead],[],[with_nptl=default])
if test "x$with_nptl" != "xdefault"; then
if test "x$with_nptl" = "xyes"; then
AC_MSG_WARN([--with-nptl=yes is deprecated, use --with-tls=__thread option instead.])
with_tls=__thread
fi
if test "x$with_nptl" = "xno"; then
AC_MSG_WARN([--with-nptl=no is deprecated, use --with-tls=pthread option instead.])
with_tls=pthread
fi
fi
# This is misnamed: __thread support has no relation to NPTL,
# but people already use it...
AC_ARG_WITH(nptl, [ --with-nptl=yes,no enable/disable support for __thread support],[],[with_nptl=yes])
# Enable support for using sigaltstack for SIGSEGV and stack overflow handling
# This does not work on some platforms (bug #55253)
@@ -466,7 +399,6 @@ if test x$platform_win32 = xno; then
AC_CHECK_FUNCS(getpwuid_r)
AC_CHECK_FUNCS(getresuid)
AC_CHECK_FUNCS(setresuid)
AC_CHECK_FUNCS(kqueue)
dnl ******************************************************************
dnl *** Check for large file support ***
@@ -709,17 +641,7 @@ if test x$platform_win32 = xno; then
dnl *****************************
dnl *** Checks for libpthread ***
dnl *****************************
# on FreeBSD -STABLE, the pthreads functions all reside in libc_r
# and libpthread does not exist
#
case "${host}" in
*-*-*freebsd4*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
;;
*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
;;
esac
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_FUNCS(pthread_mutex_timedlock)
AC_CHECK_FUNCS(pthread_getattr_np pthread_attr_get_np)
@@ -740,7 +662,7 @@ if test x$platform_win32 = xno; then
dnl *** Checks for working __thread ***
dnl ***********************************
AC_MSG_CHECKING(for working __thread)
if test "x$with_tls" != "x__thread"; then
if test "x$with_nptl" != "xyes"; then
AC_MSG_RESULT(disabled)
else
AC_TRY_RUN([
@@ -1032,9 +954,8 @@ ac_cv_c_socklen_t=yes
])
AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
# Simply calling trunc (0.0) is no good since gcc will optimize the call away
AC_TRY_LINK([#include <math.h>],
[ static void *p = &trunc; ],
[ trunc(0.0); ],
[
AC_DEFINE(HAVE_TRUNC)
AC_MSG_RESULT(yes)
@@ -1175,11 +1096,7 @@ case "$host" in
JIT_SUPPORTED=no
;;
sparc*-*-*)
if test "x$ac_cv_sizeof_void_p" = "x8"; then
TARGET=SPARC64
else
TARGET=SPARC
fi
TARGET=SPARC;
arch_target=sparc;
JIT_SUPPORTED=yes
ACCESS_UNALIGNED="no"
@@ -1267,14 +1184,6 @@ case "$host" in
LIBC="libc.so.12"
INTL="libintl.so.0"
;;
*-*-*freebsd*)
LIBC="libc.so"
INTL="libintl.so"
;;
*-*-*openbsd*)
LIBC="libc.so"
INTL="libintl.so"
;;
esac
AC_SUBST(libsuffix)
@@ -1318,7 +1227,6 @@ AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
AM_CONDITIONAL(SPARC64, test x$TARGET = xSPARC64)
AM_CONDITIONAL(X86, test x$TARGET = xX86)
AM_CONDITIONAL(AMD64, test x$TARGET = xAMD64)
AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
@@ -1391,7 +1299,7 @@ echo "
GC: $gc
ICU: $enable_icu
TLS: $with_tls
__thread: $with_nptl
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Alpha: $PREVIEW
+246
View File
@@ -0,0 +1,246 @@
System.Object
System.Exception
System.ValueType
System.Delegate
System.MulticastDelegate
System.Enum
System.Activator
System.ArgIterator
System.__ComObject
System.TypedReference
System.Security.AllowPartiallyTrustedCallersAttribute
System.Runtime.Serialization.Formatter
System.Runtime.Serialization.FormatterConverter
System.Runtime.Serialization.FormatterServices
System.Runtime.Serialization.ObjectIDGenerator
System.Runtime.Serialization.ObjectManager
System.Reflection.ModuleResolveEventHandler
System.Reflection.Pointer
System.Globalization.CompareInfo
System.Globalization.HebrewCalendar
System.Globalization.HijriCalendar
System.Globalization.JapaneseCalendar
System.Globalization.KoreanCalendar
System.Globalization.SortKey
System.Globalization.StringInfo
System.Globalization.TaiwanCalendar
System.Globalization.TextElementEnumerator
System.Globalization.TextInfo
System.Globalization.ThaiBuddhistCalendar
System.IO.IsolatedStorage.IsolatedStorageFile
System.Reflection.Emit.MethodRental
System.Runtime.CompilerServices.AccessedThroughPropertyAttribute
System.Runtime.CompilerServices.CallConvCdecl
System.Runtime.CompilerServices.CallConvStdcall
System.Runtime.CompilerServices.CallConvThiscall
System.Runtime.CompilerServices.CallConvFastcall
System.Runtime.CompilerServices.CustomConstantAttribute
System.Runtime.CompilerServices.DateTimeConstantAttribute
System.Runtime.CompilerServices.DiscardableAttribute
System.Runtime.CompilerServices.DecimalConstantAttribute
System.Runtime.CompilerServices.CompilationRelaxationsAttribute
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
System.Runtime.CompilerServices.IDispatchConstantAttribute
System.Runtime.CompilerServices.IsVolatile
System.Runtime.CompilerServices.IUnknownConstantAttribute
System.Runtime.CompilerServices.RequiredAttributeAttribute
System.Runtime.InteropServices.ArrayWithOffset
System.Runtime.InteropServices.DispIdAttribute
System.Runtime.InteropServices.ClassInterfaceType
System.Runtime.InteropServices.ClassInterfaceAttribute
System.Runtime.InteropServices.ComVisibleAttribute
System.Runtime.InteropServices.LCIDConversionAttribute
System.Runtime.InteropServices.ComRegisterFunctionAttribute
System.Runtime.InteropServices.ComUnregisterFunctionAttribute
System.Runtime.InteropServices.ProgIdAttribute
System.Runtime.InteropServices.ImportedFromTypeLibAttribute
System.Runtime.InteropServices.IDispatchImplType
System.Runtime.InteropServices.IDispatchImplAttribute
System.Runtime.InteropServices.ComSourceInterfacesAttribute
System.Runtime.InteropServices.ComConversionLossAttribute
System.Runtime.InteropServices.TypeLibTypeFlags
System.Runtime.InteropServices.TypeLibFuncFlags
System.Runtime.InteropServices.TypeLibVarFlags
System.Runtime.InteropServices.TypeLibTypeAttribute
System.Runtime.InteropServices.TypeLibFuncAttribute
System.Runtime.InteropServices.TypeLibVarAttribute
System.Runtime.InteropServices.ComImportAttribute
System.Runtime.InteropServices.PreserveSigAttribute
System.Runtime.InteropServices.ComAliasNameAttribute
System.Runtime.InteropServices.AutomationProxyAttribute
System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
System.Runtime.InteropServices.CoClassAttribute
System.Runtime.InteropServices.ComEventInterfaceAttribute
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.ComMemberType
System.Runtime.InteropServices.CurrencyWrapper
System.Runtime.InteropServices.DispatchWrapper
System.Runtime.InteropServices.ErrorWrapper
System.Runtime.InteropServices.ExtensibleClassFactory
System.Runtime.InteropServices.HandleRef
System.Runtime.InteropServices.InvalidComObjectException
System.Runtime.InteropServices.InvalidOleVariantTypeException
System.Runtime.InteropServices.TypeLibImporterFlags
System.Runtime.InteropServices.ExporterEventKind
System.Runtime.InteropServices.ITypeLibExporterNotifySink
System.Runtime.InteropServices.ITypeLibConverter
System.Runtime.InteropServices.MarshalDirectiveException
System.Runtime.InteropServices.ObjectCreationDelegate
System.Runtime.InteropServices.RuntimeEnvironment
System.Runtime.InteropServices.RegistrationServices
System.Runtime.InteropServices.SafeArrayRankMismatchException
System.Runtime.InteropServices.SafeArrayTypeMismatchException
System.Runtime.InteropServices.SEHException
System.Runtime.InteropServices.TypeLibConverter
System.Runtime.InteropServices.BIND_OPTS
System.Runtime.InteropServices.UCOMIBindCtx
System.Runtime.InteropServices.UCOMIConnectionPointContainer
System.Runtime.InteropServices.UCOMIConnectionPoint
System.Runtime.InteropServices.UCOMIEnumMoniker
System.Runtime.InteropServices.CONNECTDATA
System.Runtime.InteropServices.UCOMIEnumConnections
System.Runtime.InteropServices.UCOMIEnumConnectionPoints
System.Runtime.InteropServices.UCOMIEnumString
System.Runtime.InteropServices.UCOMIEnumVARIANT
System.Runtime.InteropServices.FILETIME
System.Runtime.InteropServices.UCOMIMoniker
System.Runtime.InteropServices.UCOMIPersistFile
System.Runtime.InteropServices.UCOMIRunningObjectTable
System.Runtime.InteropServices.STATSTG
System.Runtime.InteropServices.UCOMIStream
System.Runtime.InteropServices.DESCKIND
System.Runtime.InteropServices.BINDPTR
System.Runtime.InteropServices.UCOMITypeComp
System.Runtime.InteropServices.TYPEKIND
System.Runtime.InteropServices.TYPEFLAGS
System.Runtime.InteropServices.IMPLTYPEFLAGS
System.Runtime.InteropServices.TYPEATTR
System.Runtime.InteropServices.FUNCDESC
System.Runtime.InteropServices.IDLFLAG
System.Runtime.InteropServices.IDLDESC
System.Runtime.InteropServices.PARAMFLAG
System.Runtime.InteropServices.PARAMDESC
System.Runtime.InteropServices.TYPEDESC
System.Runtime.InteropServices.ELEMDESC
System.Runtime.InteropServices.VARDESC
System.Runtime.InteropServices.DISPPARAMS
System.Runtime.InteropServices.EXCEPINFO
System.Runtime.InteropServices.FUNCKIND
System.Runtime.InteropServices.INVOKEKIND
System.Runtime.InteropServices.CALLCONV
System.Runtime.InteropServices.FUNCFLAGS
System.Runtime.InteropServices.VARFLAGS
System.Runtime.InteropServices.UCOMITypeInfo
System.Runtime.InteropServices.SYSKIND
System.Runtime.InteropServices.LIBFLAGS
System.Runtime.InteropServices.TYPELIBATTR
System.Runtime.InteropServices.UCOMITypeLib
System.Runtime.InteropServices.UnknownWrapper
System.Runtime.Remoting.IObjectHandle
System.Runtime.Remoting.IRemotingTypeInfo
System.Runtime.Remoting.IChannelInfo
System.Runtime.Remoting.IEnvoyInfo
System.Runtime.Remoting.RemotingConfiguration
System.Runtime.Remoting.TypeEntry
System.Runtime.Remoting.ActivatedClientTypeEntry
System.Runtime.Remoting.ActivatedServiceTypeEntry
System.Runtime.Remoting.WellKnownClientTypeEntry
System.Runtime.Remoting.WellKnownServiceTypeEntry
System.Runtime.Remoting.RemotingException
System.Runtime.Remoting.ServerException
System.Runtime.Remoting.RemotingTimeoutException
System.Runtime.Remoting.RemotingServices
System.Runtime.Remoting.InternalRemotingServices
System.Runtime.Remoting.SoapServices
System.Runtime.Remoting.Activation.UrlAttribute
System.Runtime.Remoting.Messaging.IMessageSink
System.Runtime.Remoting.Messaging.AsyncResult
System.Runtime.Remoting.Messaging.CallContext
System.Runtime.Remoting.Messaging.ILogicalThreadAffinative
System.Runtime.Remoting.Messaging.InternalMessageWrapper
System.Runtime.Remoting.Messaging.IMethodCallMessage
System.Runtime.Remoting.Messaging.MethodCallMessageWrapper
System.Runtime.Remoting.Messaging.HeaderHandler
System.Runtime.Remoting.Messaging.IMessageCtrl
System.Runtime.Remoting.Messaging.IRemotingFormatter
System.Runtime.Remoting.Messaging.ReturnMessage
System.Runtime.Remoting.Messaging.MethodCall
System.Runtime.Remoting.Messaging.ConstructionCall
System.Runtime.Remoting.Messaging.MethodResponse
System.Runtime.Remoting.Messaging.ConstructionResponse
System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper
System.Runtime.Remoting.Messaging.OneWayAttribute
System.Runtime.Remoting.Messaging.MessageSurrogateFilter
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
System.Runtime.Remoting.Contexts.CrossContextDelegate
System.Runtime.Remoting.Contexts.ContextProperty
System.Runtime.Remoting.Contexts.IContextPropertyActivator
System.Runtime.Remoting.Contexts.IContributeClientContextSink
System.Runtime.Remoting.Contexts.IContributeDynamicSink
System.Runtime.Remoting.Contexts.IContributeEnvoySink
System.Runtime.Remoting.Contexts.IContributeObjectSink
System.Runtime.Remoting.Contexts.IContributeServerContextSink
System.Runtime.Serialization.Formatters.InternalRM
System.Runtime.Serialization.Formatters.InternalST
System.Runtime.Serialization.Formatters.SoapMessage
System.Runtime.Serialization.Formatters.SoapFault
System.Runtime.Serialization.Formatters.ServerFault
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
System.Security.Cryptography.CryptoConfig
System.Security.Cryptography.KeyedHashAlgorithm
System.Security.Cryptography.HMACSHA1
System.Security.Cryptography.MACTripleDES
System.Security.Cryptography.MaskGenerationMethod
System.Security.Cryptography.PasswordDeriveBytes
System.Security.Cryptography.PKCS1MaskGenerationMethod
System.Security.Cryptography.RC2
System.Security.Cryptography.RC2CryptoServiceProvider
System.Security.Cryptography.RSACryptoServiceProvider
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
System.Security.Cryptography.RSAOAEPKeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
System.Security.Cryptography.RSAPKCS1SignatureFormatter
System.Security.Cryptography.SHA1Managed
System.Security.Cryptography.TripleDES
System.Security.Cryptography.TripleDESCryptoServiceProvider
System.Security.Permissions.EnvironmentPermission
System.Security.Permissions.FileDialogPermission
System.Security.Permissions.IsolatedStorageFilePermission
System.Security.Permissions.PrincipalPermissionAttribute
System.Security.Permissions.SecurityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermission
System.Security.Permissions.ReflectionPermission
System.Security.Permissions.RegistryPermission
System.Security.Permissions.PrincipalPermission
System.Security.Permissions.SiteIdentityPermission
System.Security.Permissions.StrongNameIdentityPermission
System.Security.Permissions.StrongNamePublicKeyBlob
System.Security.Permissions.UIPermission
System.Security.Permissions.UrlIdentityPermission
System.Security.Permissions.ZoneIdentityPermission
System.Security.Policy.ApplicationDirectory
System.Security.Policy.ApplicationDirectoryMembershipCondition
System.Security.Policy.FirstMatchCodeGroup
System.Security.Policy.Hash
System.Security.Policy.HashMembershipCondition
System.Security.Policy.NetCodeGroup
System.Security.Policy.PermissionRequestEvidence
System.Security.Policy.Publisher
System.Security.Policy.PublisherMembershipCondition
System.Security.Policy.Site
System.Security.Policy.SiteMembershipCondition
System.Security.Policy.StrongName
System.Security.Policy.StrongNameMembershipCondition
System.Security.Policy.UnionCodeGroup
System.Security.Policy.Url
System.Security.Policy.UrlMembershipCondition
System.Security.Policy.Zone
System.Security.Policy.ZoneMembershipCondition
System.Security.Principal.WindowsIdentity
System.Security.Principal.WindowsImpersonationContext
System.Security.Principal.WindowsPrincipal
System.Threading.CompressedStack
+14 -48
View File
@@ -24,17 +24,20 @@ convention is that assemblies must also be placed in a separate
directory for being accessed to the compiler. This is done with the
-package directive to gacutil.
.PP
The tool allows for installation, removal, and listing of the
The tool allows for installationl, removal, and listing of the
contents of the assembly cache.
.PP
The GAC is relative to the Mono installation prefix:
mono_prefix/lib/mono.
.SH FLAGS
The "-user" flag enables you to install/remove the assembly into the
user's assembly cache, as opposed to the global one.
.PP
.SH COMMANDS
.I -i <assembly_path> [-check_refs] [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
.I "-i path_to_assembly" [-f] [-root ROOTDIR] [-package NAME]
.Sp
Installs an assembly into the global assembly cache. <assembly_path>
is the name of the file that contains the assembly manifest
The above installs the assembly into the GAC, use the -f flag to force
an installation an overwrite anything in there.
.Sp
The -package option can be used to also create a directory in in
prefix/lib/mono with the name NAME, and a symlink is created from
@@ -44,32 +47,18 @@ developers can reference a set of libraries at once.
The -root option is used by developers integrating this with automake
tools or packaging tools that require a prefix directory to be
specified. The root represents the "libdir" component of a prefix
(typically prefix/lib).
.Sp
The -gacdir option is used to specify the GACs base directory. Once an
assembly has been installed to a non standard gacdir the MONO_GAC_PATH
environment variable must be used to access the assembly.
.Sp
The -check_refs option is used to ensure that the assembly being
installed into the GAC does not reference any non strong named
assemblies. Assemblies being installed to the GAC should not reference
non strong named assemblies, however the is an optional check.
(typically prefix/lib).
.fi
.PP
.I "-l" [assembly_name] [-root ROOTDIR] [-gacdir GACDIR]
.I "-l"
.Sp
Lists the contents of the global assembly cache. When the
<assembly_name> parameter is specified only matching assemblies are
listed.
Lists the contents of the Global Assembly Cache
.PP
.I "-u" <assembly_display_name> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
.I "-u assembly_name [-root]"
.Sp
Uninstalls an assembly from the global assembly cache.
<assembly_display_name> is the name of the assembly (partial or
fully qualified) to remove from the global assembly cache. If a
partial name is specified all matching assemblies will be
uninstalled. As opposed to the install option that takes a filename,
this takes as an argument the assembly name, which looks like this:
The above removes the given assembly name from the Global Assembly
Cache. As opposed to the install option that takes a filename, this
takes as an argument the assembly name, which looks like this:
.nf
MyLibrary.Something, version=1.0.0.0, publicKeyToken=xxxx,culture=neutral
.fi
@@ -80,29 +69,6 @@ to quote them.
The removal performs a greedy removal, if you only specifiy one
component like, "MyLibrary.Something", it will remove all versions of
the library.
.Sp
.I "-us" <assembly_path> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
Uninstalls an assembly using the specifed assemblies full name.
<assembly path> is the path to an assembly. The full assembly name
is retrieved from the specified assembly if there is an assembly in
the GAC with a matching name, it is removed. Unlike the -u option this
option takes a file name, like this:
.nf
Example: -us myDll.dll
.fi
.Sp
.I "-ul" <assembly_list_file> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
Uninstalls one or more assemblies from the global assembly cache.
<assembly_list_file> is the path to a test file containing a list of
assembly names on separate lines.
.nf
Example -ul assembly_list.txt
.fi
.nf
assembly_list.txt contents:
assembly1,Version=1.0.0.0,Culture=en,PublicKeyToken=0123456789abcdef
assembly2,Version=2.0.0.0,Culture=en,PublicKeyToken=0123456789abcdef
.fi
.SH FILES
On Unix assemblies are loaded from the installation lib directory. If you set
`prefix' to /usr, the assemblies will be located in /usr/lib. On
@@ -1,3 +1,8 @@
2004-10-05 Anirban Bhattacharjee <[email protected]>
* Interaction.cs:
* Strings.cs :
Few important fixes
2004-07-22 Jambunathan K <[email protected]>
* Constants.cs: Fixed definitions of vbCr, vbLf, vbCrLf and
@@ -352,7 +352,7 @@ namespace Microsoft.VisualBasic {
string [] args = Environment.GetCommandLineArgs ();
if (args != null && args.Length > 1) {
return string.Join (" ", args, 2, args.Length - 1);
return string.Join (" ", args, 1, args.Length - 1);
} else {
return "";
}
@@ -401,7 +401,21 @@ namespace Microsoft.VisualBasic
}
break;
default:
returnstr=Convert.ToDouble(expression).ToString (style);
if (style.IndexOf("X") != -1
|| style.IndexOf("x") != -1 ) {
returnstr = Microsoft.VisualBasic.Conversion.Hex(Convert.ToInt64(expression));
}
else
try
{
returnstr=Convert.ToDouble(expression).ToString (style);
}
catch (Exception ex){
style = "0" + style;
returnstr=Convert.ToDouble(expression).ToString (style);
}
break;
}
break;
@@ -694,6 +708,7 @@ namespace Microsoft.VisualBasic
return InStr(1, String1, String2, Compare);
}
/// <summary>
/// Returns an integer specifying the start position of the first occurrence of one string within another.
/// </summary>
@@ -826,17 +841,22 @@ namespace Microsoft.VisualBasic
[DefaultValue(" ")]
string Delimiter)
{
try
{
if (SourceArray == null)
throw new ArgumentException("Argument 'SourceArray' can not be null.", "SourceArray");
if (SourceArray.Rank > 1)
throw new ArgumentException("Argument 'SourceArray' can have only one dimension.", "SourceArray");
if (SourceArray == null)
throw new ArgumentException("Argument 'SourceArray' can not be null.", "SourceArray");
if (SourceArray.Rank > 1)
throw new ArgumentException("Argument 'SourceArray' can have only one dimension.", "SourceArray");
string[] dest;
dest = new string[SourceArray.Length];
string[] dest;
dest = new string[SourceArray.Length];
SourceArray.CopyTo(dest, 0);
return string.Join(Delimiter, dest);
SourceArray.CopyTo(dest, 0);
return string.Join(Delimiter, dest);
}
catch (System.InvalidCastException ie){
throw new System.ArgumentException("Invalid argument");
}
}
/// <summary>
@@ -854,8 +874,8 @@ namespace Microsoft.VisualBasic
/// <param name="Value">Required. Any valid String or Char expression.</param>
public static string LCase(string Value)
{
if ((Value == null) || (Value.Length == 0))
return String.Empty; // VB.net does this.
if ((Value == null) || (Value.Length == 0))
return Value; // comparing nunit test results say this is an exception to the return String.Empty rule
return Value.ToLower();
}
@@ -865,16 +885,18 @@ namespace Microsoft.VisualBasic
/// Returns a string containing a specified number of characters from the left side of a string.
/// </summary>
/// <param name="Str">Required. String expression from which the leftmost characters are returned.</param>
/// <param name="Length">Required. Integer expression. Numeric expression indicating how many characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str, the entire string is returned.</param>
public static string Left(string Str,
int Length)
/// <param name="Length">Required. Integer expression. Numeric expression indicating how many characters to return.
/// If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str,
/// the entire string is returned.</param>
public static string Left(string Str, int Length)
{
if (Length < 0)
throw new ArgumentException("Argument 'Length' must be non-negative.", "Length");
if ((Str == null) || (Str.Length == 0))
if ((Str == null) || (Str.Length == 0) || Length == 0)
return String.Empty; // VB.net does this.
return Str.Substring(0, Length);
if (Length < Str.Length)
return Str.Substring(0, Length);
return Str;
}
/// <summary>
@@ -1202,16 +1224,16 @@ namespace Microsoft.VisualBasic
/// </summary>
/// <param name="Source">Required. String expression. Name of string variable.</param>
/// <param name="Length">Required. Integer expression. Length of returned string.</param>
public static string RSet(string Source,
int Length)
public static string RSet(string Source, int Length)
{
if (Source == null)
Source = String.Empty;
if (Length < 0)
throw new ArgumentOutOfRangeException("Length", "Length must be non-negative.");
return Source.PadLeft(Length);
if (Length > Source.Length)
return Source.PadLeft(Length);
return Source.Substring(0, Length);
}
/// <summary>
@@ -1235,7 +1257,7 @@ namespace Microsoft.VisualBasic
/// <param name="Compare">Optional. Numeric value indicating the comparison to use when evaluating substrings. See Settings for values.</param>
public static string[] Split(string Expression,
[Optional]
[DefaultValue(" ")]
[DefaultValue("")]
string Delimiter,
[Optional]
[DefaultValue(-1)]
@@ -1245,30 +1267,37 @@ namespace Microsoft.VisualBasic
[DefaultValue(CompareMethod.Binary)]
CompareMethod Compare)
{
if (Expression == null)
return new string[1];
if ((Delimiter == null) || (Delimiter.Length == 0))
{
if ((Delimiter == null) || (Delimiter.Length == 0)) {
string [] ret = new string[1];
ret[0] = Expression;
return ret;
}
if (Limit == 0)
Limit = 1;
if (Limit < -1)
else if (Limit < -1)
throw new OverflowException("Arithmetic operation resulted in an overflow.");
switch (Compare)
{
case CompareMethod.Binary:
return Expression.Split(Delimiter.ToCharArray(0, 1), Limit);
case CompareMethod.Text:
return Expression.Split(Delimiter.ToCharArray(0, 1), Limit);
default:
throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text.", "Compare");
if (Limit != -1) {
switch (Compare){
case CompareMethod.Binary:
return Expression.Split(Delimiter.ToCharArray(0, 1), Limit);
case CompareMethod.Text:
return Expression.Split(Delimiter.ToCharArray(0, 1), Limit);
default:
throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text.", "Compare");
}
} else {
switch (Compare) {
case CompareMethod.Binary:
return Expression.Split(Delimiter.ToCharArray(0, 1));
case CompareMethod.Text:
return Expression.Split(Delimiter.ToCharArray(0, 1));
default:
throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text.", "Compare");
}
}
}
@@ -12,7 +12,8 @@
//
// Copyright (c) 2002 Chew Keong TAN
// All rights reserved.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -169,6 +170,7 @@ namespace Mono.Math {
public BigInteger ()
{
data = new uint [DEFAULT_LEN];
this.length = DEFAULT_LEN;
}
[CLSCompliant (false)]
@@ -539,6 +541,9 @@ namespace Mono.Math {
/// <param name="rng">A RNG.</param>
public void Randomize (RandomNumberGenerator rng)
{
if (this == 0)
return;
int bits = this.BitCount ();
int dwords = bits >> 5;
int remBits = bits & 0x1F;
@@ -1,3 +1,8 @@
2004-10-25 Sebastien Pouliot <[email protected]>
* BigInteger.cs: Fix issue #68452 when Randomize was being called on a
0 BigInteger (i.e. BitCount == 0).
2005-05-07 Sebastien Pouliot <[email protected]>
* BigInteger.cs: Faster scan of smallPrimes in IsProbablePrime.
@@ -186,7 +186,14 @@ namespace Mono.Security.Authenticode {
pkcs7.SignerInfo.Certificate = certs [0];
pkcs7.SignerInfo.Key = rsa;
pkcs7.SignerInfo.AuthenticatedAttributes.Add (Attribute (spcSpOpusInfo, Opus (description, url.ToString ())));
ASN1 opus = null;
if (url == null)
Attribute (spcSpOpusInfo, Opus (description, null));
else
Attribute (spcSpOpusInfo, Opus (description, url.ToString ()));
pkcs7.SignerInfo.AuthenticatedAttributes.Add (opus);
pkcs7.SignerInfo.AuthenticatedAttributes.Add (Attribute (contentType, ASN1Convert.FromOid (spcIndirectDataContext)));
pkcs7.SignerInfo.AuthenticatedAttributes.Add (Attribute (spcStatementType, new ASN1 (0x30, ASN1Convert.FromOid (commercialCodeSigning).GetBytes ())));
@@ -1,3 +1,8 @@
2004-10-27 Sebastien Pouliot <[email protected]>
* AuthenticodeFormatter.cs: Fix NullReferenceException from signcode
tool when no URL is specified on the command line.
2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: Merge optimizations from HEAD.
@@ -1,3 +1,8 @@
2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: KeySize is now always a multiple of 8 bits.
Fix #66929.
2004-06-23 Sebastien Pouliot <[email protected]>
* SymmetricTransform.cs: Reduce by one the number of block when
@@ -13,6 +13,8 @@
// See bouncycastle.txt for license.
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -147,8 +149,12 @@ namespace Mono.Security.Cryptography {
public override int KeySize {
get {
// in case keypair hasn't been (yet) generated
if (keypairGenerated)
return n.BitCount ();
if (keypairGenerated) {
int ks = n.BitCount ();
if ((ks & 7) != 0)
ks = ks + (8 - (ks & 7));
return ks;
}
else
return base.KeySize;
}
@@ -1,3 +1,12 @@
2004-10-05 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed InputBuffer to internal (was protected).
2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: the .ctor receives a pre-read buffer now.
* SslClientStream.cs: added InputBuffer property.
2004-07-14 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed lock to "new object()" and not
@@ -44,12 +44,14 @@ namespace Mono.Security.Protocol.Tls {
public HttpsClientStream (Stream stream, X509CertificateCollection clientCertificates,
HttpWebRequest request)
HttpWebRequest request, byte [] buffer)
: base (stream, request.RequestUri.Host, false, SecurityProtocolType.Default, clientCertificates)
{
// this constructor permit access to the WebRequest to call
// ICertificatePolicy.CheckValidationResult
_request = request;
if (buffer != null)
InputBuffer.Write (buffer, 0, buffer.Length);
#if !NET_1_0
// also saved from reflection
base.CheckCertRevocationStatus = ServicePointManager.CheckCertificateRevocationList;
@@ -71,3 +73,4 @@ namespace Mono.Security.Protocol.Tls {
}
}
}
@@ -125,6 +125,10 @@ namespace Mono.Security.Protocol.Tls
set { throw new NotSupportedException(); }
}
// required by HttpsClientStream for proxy support
internal Stream InputBuffer {
get { return inputBuffer; }
}
#endregion
#region Security Properties
@@ -1,3 +1,7 @@
2004-09-24 Umadevi S <[email protected]>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.
2004-09-02 Umadevi S <[email protected]>
* SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure
@@ -94,7 +94,8 @@ namespace System.Data.SqlClient {
{
if (!disposed) {
if (disposing) {
Rollback ();
if (isOpen)
Rollback ();
}
disposed = true;
}
@@ -1,3 +1,68 @@
2004-10-15 Atsushi Enomoto <[email protected]>
* DataSet.cs : Also clear UnhandledAttributes ArrayList before
generating next attribute column schema. This fixes bug #68432.
2004-10-13 Atsushi Enomoto <[email protected]>
* DataSet.cs : clear UnhandledAttributes ArrayList before generating
next element column schema. This fixes bug #68256.
2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs : now xs:schema contains xmlns="".
This fixes bug #68008.
2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs : DBNull attribute column should not be written as
empty attribute. This fixes bug #68007.
2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
DataColumn.ReadOnly was not handled. This fixes bug #68005.
Attribute defaultValue was not handled too.
2004-10-08 Atsushi Enomoto <[email protected]>
* DataSet.cs : Yesterday's fix was different and broke the build :(
2004-10-07 Atsushi Enomoto <[email protected]>
* DataSet.cs :
- When AllowDBNull is false on attribute DataColumn, its schema
should contain use="required". This fixes bug #66792.
- If MaxLength is set on attribute DataColumn, the mapped schema
type should contain maxLength facet. This fixes bug #66793.
2004-10-04 Atsushi Enomoto <[email protected]>
* DataSet.cs : For a row, when a relation is not nested, then it is
still output target since it won't be written as a child of its
parent. It fixes bug #66379.
2004-10-03 Atsushi Enomoto <[email protected]>
* DataSet.cs : Attribute constraint field XPath must be written as
@blah. This fixes bug #66366.
2004-09-28 Umadevi S <[email protected]>
* DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2004-09-24 Sureshkumar T <[email protected]>
* DataSet.cs : Don't check constraints for dataset clear
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.
2004-09-21 Sureshkumar T <[email protected]>
* DataRow.cs: Added a new original row cache, if the current row happens
to be the original row. fixed bug #63097
2004-08-06 Atsushi Enomoto <[email protected]>
* DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
+6 -2
View File
@@ -489,7 +489,9 @@ namespace System.Data {
DataColumn column = _table.Columns[columnName];
_table.ChangingDataColumn (this, column, val);
if (_original < 0) {
if (_original < 0 || _original == _current) {
// really add a row cache, if _original is not there &
// make row modified
_original = Table.RecordCache.NewRecord();
}
CheckValue (val, column);
@@ -1036,7 +1038,9 @@ namespace System.Data {
int numColumn = parentColumns.Length;
if (HasVersion(version)) {
Index indx = relation.ParentTable.GetIndexByColumns (parentColumns);
if (indx != null) { // get the child rows from the index
if (indx != null &&
(Table == null || Table.DataSet == null ||
Table.DataSet.EnforceConstraints)) { // get the child rows from the index
Node[] childNodes = indx.FindAllSimple(childColumns, IndexFromVersion(version));
for (int i = 0; i < childNodes.Length; i++) {
rows.Add (childNodes[i].Row);
@@ -123,7 +123,7 @@ namespace System.Data
/// </summary>
public void Clear ()
{
if (this.table.DataSet != null)
if (this.table.DataSet != null && this.table.DataSet.EnforceConstraints)
{
foreach (DataTable table in this.table.DataSet.Tables)
{
+61 -11
View File
@@ -330,13 +330,19 @@ namespace System.Data {
tempTable.AcceptChanges ();
}
/// <summary>
/// Clears all the tables
/// </summary>
public void Clear ()
{
if (_xmlDataDocument != null)
throw new NotSupportedException ("Clear function on dataset and datatable is not supported when XmlDataDocument is bound to the DataSet.");
for (int t = 0; t < tableCollection.Count; t++) {
tableCollection[t].Clear ();
bool enforceConstraints = this.EnforceConstraints;
this.EnforceConstraints = false;
for (int t = 0; t < tableCollection.Count; t++) {
tableCollection [t].Clear ();
}
this.EnforceConstraints = enforceConstraints;
}
public virtual DataSet Clone ()
@@ -1188,16 +1194,22 @@ namespace System.Data {
case 0:
break;
case 1:
if (!oneRel.Nested)
break;
if (row.GetParentRow (oneRel) != null)
continue;
break;
case 2:
bool skip = false;
for (int i = 0; i < table.ParentRelations.Count; i++)
if (row.GetParentRow (table.ParentRelations [i]) != null) {
for (int i = 0; i < table.ParentRelations.Count; i++) {
DataRelation prel = table.ParentRelations [i];
if (!prel.Nested)
continue;
if (row.GetParentRow (prel) != null) {
skip = true;
continue;
}
}
if (skip)
continue;
break;
@@ -1270,7 +1282,8 @@ namespace System.Data {
private void WriteColumnAsAttribute (XmlWriter writer, XmlWriteMode mode, DataColumn col, DataRow row, DataRowVersion version)
{
WriteAttributeString (writer, mode, col.Namespace, col.Prefix, XmlConvert.EncodeLocalName (col.ColumnName), WriteObjectXml (row[col, version]));
if (!row.IsNull (col))
WriteAttributeString (writer, mode, col.Namespace, col.Prefix, XmlConvert.EncodeLocalName (col.ColumnName), WriteObjectXml (row[col, version]));
}
private void WriteTableElement (XmlWriter writer, XmlWriteMode mode, DataTable table, DataRow row, DataRowVersion version)
@@ -1384,6 +1397,9 @@ namespace System.Data {
XmlAttribute attr = null;
ArrayList atts = new ArrayList ();
attr = doc.CreateAttribute ("", "xmlns", xmlNSURI);
atts.Add (attr);
nsmgr.AddNamespace ("xs", XmlSchema.Namespace);
nsmgr.AddNamespace (XmlConstants.MsdataPrefix, XmlConstants.MsdataNamespace);
if (Namespace != "") {
@@ -1539,7 +1555,8 @@ namespace System.Data {
XmlSchemaXPath field;
foreach (DataColumn column in uqConst.Columns) {
field = new XmlSchemaXPath();
field.XPath = constraintPrefix+column.ColumnName;
string typePrefix = column.ColumnMapping == MappingType.Attribute ? "@" : "";
field.XPath = typePrefix + constraintPrefix + column.ColumnName;
uniq.Fields.Add(field);
}
@@ -1606,7 +1623,8 @@ namespace System.Data {
XmlSchemaXPath field;
foreach (DataColumn column in rel.ChildColumns) {
field = new XmlSchemaXPath();
field.XPath = constraintPrefix+column.ColumnName;
string typePrefix = column.ColumnMapping == MappingType.Attribute ? "@" : "";
field.XPath = typePrefix + constraintPrefix + column.ColumnName;
keyRef.Fields.Add(field);
}
@@ -1623,6 +1641,9 @@ namespace System.Data {
ArrayList atts;
DataColumn simple;
ArrayList xattrs = new ArrayList();
XmlAttribute xattr;
SplitColumns (table, out atts, out elements, out simple);
XmlSchemaElement elem = new XmlSchemaElement ();
@@ -1664,8 +1685,6 @@ namespace System.Data {
// Add element for the column.
XmlSchemaElement colElem = new XmlSchemaElement ();
ArrayList xattrs = new ArrayList();
XmlAttribute xattr;
colElem.Name = col.ColumnName;
if (col.ColumnName != col.Caption && col.Caption != String.Empty) {
@@ -1688,7 +1707,13 @@ namespace System.Data {
if (col.DefaultValue.ToString () != String.Empty)
colElem.DefaultValue = WriteObjectXml (col.DefaultValue);
if (col.ReadOnly) {
xattr = doc.CreateAttribute (XmlConstants.MsdataPrefix, XmlConstants.ReadOnly, XmlConstants.MsdataNamespace);
xattr.Value = "true";
xattrs.Add (xattr);
}
if (col.MaxLength < 0)
colElem.SchemaTypeName = MapType (col.DataType);
@@ -1714,6 +1739,7 @@ namespace System.Data {
}
colElem.UnhandledAttributes = (XmlAttribute[])xattrs.ToArray(typeof (XmlAttribute));
xattrs.Clear ();
AddExtendedPropertyAttributes (colElem, col.ExtendedProperties, doc);
seq.Items.Add (colElem);
}
@@ -1753,8 +1779,32 @@ namespace System.Data {
// FIXME: Handle prefix mapping correctly.
schemaToAdd.Namespaces.Add (prefix, col.Namespace);
}
att.SchemaTypeName = MapType (col.DataType);
if (!col.AllowDBNull)
att.Use = XmlSchemaUse.Required;
if (col.MaxLength > -1)
att.SchemaType = GetTableSimpleType (doc, col);
else
att.SchemaTypeName = MapType (col.DataType);
// FIXME: what happens if extended properties are set on attribute columns??
if (!col.AllowDBNull)
att.Use = XmlSchemaUse.Required;
if (col.DefaultValue.ToString () != String.Empty)
att.DefaultValue = WriteObjectXml (col.DefaultValue);
if (col.ReadOnly) {
xattr = doc.CreateAttribute (XmlConstants.MsdataPrefix, XmlConstants.ReadOnly, XmlConstants.MsdataNamespace);
xattr.Value = "true";
xattrs.Add (xattr);
}
att.UnhandledAttributes = xattrs.ToArray (typeof (XmlAttribute)) as XmlAttribute [];
xattrs.Clear ();
if (col.MaxLength > -1)
att.SchemaType = GetTableSimpleType (doc, col);
else
att.SchemaTypeName = MapType (col.DataType);
schemaAttributes.Add (att);
}
+1 -31
View File
@@ -677,37 +677,7 @@ namespace System.Data {
/// Clears the DataTable of all data.
/// </summary>
public void Clear () {
// TODO: thow an exception if any rows that
// have enforced child relations
// that would result in child rows being orphaned
// now we check if any ForeignKeyConstraint is referncing 'table'.
if (DataSet != null)
{
if (DataSet._xmlDataDocument != null)
throw new NotSupportedException ("Clear function on dataset and datatable is not supported on XmlDataDocument.");
IEnumerator tableEnumerator = DataSet.Tables.GetEnumerator();
// loop on all tables in dataset
while (tableEnumerator.MoveNext())
{
IEnumerator constraintEnumerator = ((DataTable) tableEnumerator.Current).Constraints.GetEnumerator();
// loop on all constrains in the current table
while (constraintEnumerator.MoveNext())
{
Object o = constraintEnumerator.Current;
// we only check ForeignKeyConstraint
if (o is ForeignKeyConstraint)
{
ForeignKeyConstraint fc = (ForeignKeyConstraint) o;
if(fc.RelatedTable == this && fc.Table.Rows.Count > 0)
throw new InvalidConstraintException("Cannot clear table " + fc.RelatedTable + " because ForeignKeyConstraint " + fc.ConstraintName + " enforces constraints and there are child rows in " + fc.Table);
}
}
}
}
// Foriegn key constraints are checked in _rows.Clear method
_rows.Clear ();
}
@@ -96,6 +96,7 @@ internal class XmlConstants
public const string ConstraintName = "ConstraintName";
public const string PrimaryKey = "PrimaryKey";
public const string ColumnName = "ColumnName";
public const string ReadOnly = "ReadOnly";
public static XmlQualifiedName QnString = new XmlQualifiedName ("string", XmlSchema.Namespace);
public static XmlQualifiedName QnShort = new XmlQualifiedName ("short", XmlSchema.Namespace);
@@ -654,6 +654,9 @@ el.ElementType != schemaAnyType)
case XmlConstants.AutoIncrementSeed:
col.AutoIncrementSeed = int.Parse (attr.Value);
break;
case XmlConstants.ReadOnly:
col.ReadOnly = XmlConvert.ToBoolean (attr.Value);
break;
case XmlConstants.Ordinal:
ordinal = int.Parse (attr.Value);
break;
@@ -0,0 +1,85 @@
//
// SqlTransactionTest.cs - NUnit Test Cases for testing the
// SqlTransaction class
// Author:
// Umadevi S ([email protected])
//
// Copyright (c) 2004 Novell Inc., and the individuals listed
// on the ChangeLog entries.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using NUnit.Framework;
namespace MonoTests.System.Data.SqlClient
{
[TestFixture]
public class SqlTransactionTest : MSSqlTestClient {
[SetUp]
public void GetReady () {
OpenConnection ();
}
[TearDown]
public void Clean () {
CloseConnection ();
}
[Test]
/**
The below test expects a table table4 with a bigint column.
**/
public void TransactionCommitTest () {
using (SqlTransaction transaction = conn.BeginTransaction())
{
try
{
string sSql = "Insert into Region(RegionID,RegionDescription) Values ('10112', 'NovellBangalore')";
SqlCommand command = new SqlCommand();
command.Connection = conn;
command.CommandText = sSql;
command.Transaction = transaction;
command.CommandType = CommandType.Text;
command.ExecuteNonQuery();
transaction.Commit();
}
catch (System.Exception ex)
{
transaction.Rollback();
}
finally
{
conn.Close();
}
}
}
}
}
@@ -1,3 +1,19 @@
2004-10-12 Atsushi Enomoto <[email protected]>
* DataSetTest.cs : now xs:schema contains xmlns="".
2004-09-24 Umadevi S <[email protected]>
* DataRowTest.cs : Added a test for EnforceConstraints with relations defined.
2004-09-24 Sureshkumar T <[email protected]>
* DataSetTest.cs (DataSetClearTest): Added a test for DataSet.Clear. This should not
throw any exception and should override constraints.
2004-09-21 Sureshkumar T <[email protected]>
* DataSetTest.cs : Added a test for Deserialization of dataset : DeserializeModifiedDataSet
2004-06-23 Umadevi S <[email protected]>
* DataTableTest.cs :Corrected Testcases to .net 1.1 specifications
@@ -756,5 +756,42 @@ namespace MonoTests.System.Data
dt.Columns.Add (col);
dt.Rows [0] [0] = "test";
}
[Test]
public void EnforceConstraint ()
{
int id = 100;
// Setup stuff
DataSet ds = new DataSet();
DataTable parent = ds.Tables.Add("parent");
parent.Columns.Add("id", typeof(int));
DataTable child = ds.Tables.Add("child");
child.Columns.Add("idref", typeof(int));
Constraint uniqueId = null;
parent.Constraints.Add(uniqueId = new UniqueConstraint("uniqueId",
new DataColumn[] {parent.Columns["id"]}, true));
ForeignKeyConstraint fkc = new ForeignKeyConstraint("ParentChildConstraint", new DataColumn[] { parent.Columns["id"] },
new DataColumn[] { child.Columns["idref"]});
child.Constraints.Add(fkc);
DataRelation relateParentChild = new DataRelation("relateParentChild",
new DataColumn[] {parent.Columns["id"] },
new DataColumn[] {child.Columns["idref"] },
false);
ds.Relations.Add(relateParentChild);
ds.EnforceConstraints = false;
DataRow parentRow = parent.Rows.Add(new object[] { id });
DataRow childRow = child.Rows.Add(new object[] { id });
if (parentRow == childRow.GetParentRow(relateParentChild)) {
foreach(DataColumn dc in parent.Columns)
AssertEquals(100,parentRow[dc]);
}
}
}
}
@@ -195,7 +195,7 @@ namespace MonoTests.System.Data
TextString = TextString.Substring (TextString.IndexOf(EOL) + EOL.Length);
// FIXME: modified attributes based on XmlSchema.Write difference
// AssertEquals ("test#02", "<xs:schema id=\"test_dataset\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"test_dataset\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"test_dataset\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
substring = TextString.Substring (0, TextString.IndexOf(EOL));
TextString = TextString.Substring (TextString.IndexOf(EOL) + EOL.Length);
@@ -551,7 +551,7 @@ namespace MonoTests.System.Data
TextString = TextString.Substring (TextString.IndexOf(EOL) + EOL.Length);
// FIXME: modified attributes based on XmlSchema.Write difference
// AssertEquals ("test#02", "<xs:schema id=\"Root\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"Root\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"Root\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
substring = TextString.Substring (0, TextString.IndexOf(EOL));
TextString = TextString.Substring (TextString.IndexOf(EOL) + EOL.Length);
@@ -641,7 +641,7 @@ namespace MonoTests.System.Data
TextString = TextString.Substring (TextString.IndexOf(EOL) + EOL.Length);
// FIXME: modified attributes based on XmlSchema.Write difference
// AssertEquals ("test#02", "<xs:schema id=\"NewDataSet\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"NewDataSet\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"NewDataSet\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
substring = TextString.Substring (0, TextString.IndexOf(EOL));
TextString = TextString.Substring (TextString.IndexOf(EOL) + EOL.Length);
@@ -784,7 +784,7 @@ namespace MonoTests.System.Data
// FIXME: modified attributes based on XmlSchema.Write difference
// AssertEquals ("test#02", "<xs:schema id=\"Root\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">", substring);
#if MS_NET // MS System.XML.dll + Mono System.Data.dll
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"Root\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"Root\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
#else
AssertEquals ("test#02", "<xs:schema xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" id=\"Root\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">", substring);
#endif
@@ -957,7 +957,7 @@ namespace MonoTests.System.Data
*/
#if MS_NET // MS System.XML.dll + Mono System.Data.dll
string schema = @"<?xml version='1.0' encoding='utf-16'?>
<xs:schema xmlns:mstns='urn:bar' xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:app1='urn:baz' xmlns:app2='urn:foo' xmlns='urn:bar' attributeFormDefault='qualified' elementFormDefault='qualified' targetNamespace='urn:bar' id='NewDataSet' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:schema xmlns:mstns='urn:bar' xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:app1='urn:baz' xmlns:app2='urn:foo' xmlns='urn:bar' attributeFormDefault='qualified' elementFormDefault='qualified' targetNamespace='urn:bar' id='NewDataSet' xmlns='' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:import schemaLocation='_app1.xsd' namespace='urn:baz' />
<xs:import schemaLocation='_app2.xsd' namespace='urn:foo' />
<xs:element msdata:IsDataSet='true' msdata:Locale='fi-FI' name='NewDataSet'>
@@ -973,7 +973,7 @@ namespace MonoTests.System.Data
</xs:schema>";
#else
string schema = @"<?xml version='1.0' encoding='utf-16'?>
<xs:schema xmlns:app1='urn:baz' xmlns:app2='urn:foo' xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:mstns='urn:bar' id='NewDataSet' elementFormDefault='qualified' attributeFormDefault='qualified' targetNamespace='urn:bar' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns='urn:bar'>
<xs:schema xmlns:app1='urn:baz' xmlns:app2='urn:foo' xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:mstns='urn:bar' id='NewDataSet' elementFormDefault='qualified' attributeFormDefault='qualified' targetNamespace='urn:bar' xmlns='' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns='urn:bar'>
<!--ATTENTION: This schema contains references to other imported schemas-->
<xs:import namespace='urn:baz' schemaLocation='_app1.xsd' />
<xs:import namespace='urn:foo' schemaLocation='_app2.xsd' />
@@ -1037,9 +1037,9 @@ namespace MonoTests.System.Data
// string xml = "<?xml version='1.0' encoding='utf-16'?><DataSet><xs:schema id='DS' xmlns='' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:msdata='urn:schemas-microsoft-com:xml-msdata'><xs:element name='DS' msdata:IsDataSet='true' msdata:Locale='fi-FI'><xs:complexType><xs:choice maxOccurs='unbounded' /></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:diffgr='urn:schemas-microsoft-com:xml-diffgram-v1' /></DataSet>";
// Modified attribute order from MS result
#if MS_NET // MS System.XML.dll + Mono System.Data.dll
string xml = "<?xml version='1.0' encoding='utf-16'?><DataSet><xs:schema xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' id='DS' xmlns:xs='http://www.w3.org/2001/XMLSchema'><xs:element msdata:IsDataSet='true' msdata:Locale='fi-FI' name='DS'><xs:complexType><xs:choice maxOccurs='unbounded' /></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:diffgr='urn:schemas-microsoft-com:xml-diffgram-v1' /></DataSet>";
string xml = "<?xml version='1.0' encoding='utf-16'?><DataSet><xs:schema xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' id='DS' xmlns='' xmlns:xs='http://www.w3.org/2001/XMLSchema'><xs:element msdata:IsDataSet='true' msdata:Locale='fi-FI' name='DS'><xs:complexType><xs:choice maxOccurs='unbounded' /></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:diffgr='urn:schemas-microsoft-com:xml-diffgram-v1' /></DataSet>";
#else
string xml = "<?xml version='1.0' encoding='utf-16'?><DataSet><xs:schema xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' id='DS' xmlns:xs='http://www.w3.org/2001/XMLSchema'><xs:element name='DS' msdata:IsDataSet='true' msdata:Locale='fi-FI'><xs:complexType><xs:choice maxOccurs='unbounded' /></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:diffgr='urn:schemas-microsoft-com:xml-diffgram-v1' /></DataSet>";
string xml = "<?xml version='1.0' encoding='utf-16'?><DataSet><xs:schema xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' id='DS' xmlns='' xmlns:xs='http://www.w3.org/2001/XMLSchema'><xs:element name='DS' msdata:IsDataSet='true' msdata:Locale='fi-FI'><xs:complexType><xs:choice maxOccurs='unbounded' /></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns:diffgr='urn:schemas-microsoft-com:xml-diffgram-v1' /></DataSet>";
#endif
DataSet ds = new DataSet ();
ds.DataSetName = "DS";
@@ -1235,5 +1235,74 @@ namespace MonoTests.System.Data
ds.WriteXml (xtw);
AssertEquals (xml, sw.ToString ());
}
[Test]
public void DeserializeModifiedDataSet ()
{
// Serialization begins
DataSet prevDs = new DataSet ();
DataTable dt = prevDs.Tables.Add ();
dt.Columns.Add(new DataColumn("Id", typeof(string)));
DataRow dr = dt.NewRow();
dr [0] = "a";
dt.Rows.Add (dr);
prevDs.AcceptChanges ();
dr = prevDs.Tables[0].Rows[0];
dr [0] = "b";
XmlSerializer serializer = new XmlSerializer (typeof (DataSet));
StringWriter sw = new StringWriter ();
XmlTextWriter xw = new XmlTextWriter (sw);
xw.QuoteChar = '\'';
serializer.Serialize (xw, prevDs);
// Deserialization begins
StringReader sr = new StringReader (sw.ToString ());
XmlTextReader reader = new XmlTextReader (sr);
XmlSerializer serializer1 = new XmlSerializer (typeof (DataSet));
DataSet ds = serializer1.Deserialize (reader) as DataSet;
AssertEquals ("deserialization after modification does not give original values",
prevDs.Tables[0].Rows [0][0,DataRowVersion.Original].ToString (),
ds.Tables[0].Rows [0][0,DataRowVersion.Original].ToString ());
AssertEquals ("deserialization after modification does not give current values",
prevDs.Tables[0].Rows [0][0,DataRowVersion.Current].ToString (),
ds.Tables[0].Rows [0][0,DataRowVersion.Current].ToString ());
}
/// <summary>
/// Test for testing DataSet.Clear method with foriegn key relations
/// This is expected to clear all the related datatable rows also
/// </summary>
[Test]
public void DataSetClearTest ()
{
DataSet ds = new DataSet ();
DataTable parent = ds.Tables.Add ("Parent");
DataTable child = ds.Tables.Add ("Child");
parent.Columns.Add ("id", typeof (int));
child.Columns.Add ("ref_id", typeof(int));
child.Constraints.Add (new ForeignKeyConstraint ("fk_constraint", parent.Columns [0], child.Columns [0]));
DataRow dr = parent.NewRow ();
dr [0] = 1;
parent.Rows.Add (dr);
dr.AcceptChanges ();
dr = child.NewRow ();
dr [0] = 1;
child.Rows.Add (dr);
dr.AcceptChanges ();
try {
ds.Clear (); // this should clear all the rows in parent & child tables
} catch (Exception e) {
throw (new Exception ("Exception should not have been thrown at Clear method" + e.ToString ()));
}
Assertion.AssertEquals ("parent table rows should not exist!", 0, parent.Rows.Count);
Assertion.AssertEquals ("child table rows should not exist!", 0, child.Rows.Count);
}
}
}
+5
View File
@@ -1,3 +1,8 @@
2004-10-26 Gonzalo Paniagua Javier <[email protected]>
* System.Design.dll.sources: added files in
System.Web.UI.Design.WebControls.
2004-06-11 Gert Driesen <[email protected]>
* System.Design.dll.sources: added more stub for classes
@@ -59,6 +59,32 @@ System.Web.UI.Design/WebControlToolboxItem.cs
System.Web.UI.Design/XmlFileEditor.cs
System.Web.UI.Design/XmlUrlEditor.cs
System.Web.UI.Design/XslUrlEditor.cs
System.Web.UI.Design.WebControls/FormatPageInternal.cs
System.Web.UI.Design.WebControls/GeneralPageDataListInternal.cs
System.Web.UI.Design.WebControls/PanelDesigner.cs
System.Web.UI.Design.WebControls/TableDesigner.cs
System.Web.UI.Design.WebControls/HyperLinkDesigner.cs
System.Web.UI.Design.WebControls/BordersPageInternal.cs
System.Web.UI.Design.WebControls/CalendarDesigner.cs
System.Web.UI.Design.WebControls/CheckBoxDesigner.cs
System.Web.UI.Design.WebControls/LinkButtonDesigner.cs
System.Web.UI.Design.WebControls/AdRotatorDesigner.cs
System.Web.UI.Design.WebControls/TableRowsCollectionEditor.cs
System.Web.UI.Design.WebControls/RepeaterDesigner.cs
System.Web.UI.Design.WebControls/RegexTypeEditor.cs
System.Web.UI.Design.WebControls/BaseValidatorDesigner.cs
System.Web.UI.Design.WebControls/BaseDataListPageInternal.cs
System.Web.UI.Design.WebControls/BaseDataListDesigner.cs
System.Web.UI.Design.WebControls/CalendarAutoFormatDialog.cs
System.Web.UI.Design.WebControls/TODOAttribute.cs
System.Web.UI.Design.WebControls/RegexEditorDialog.cs
System.Web.UI.Design.WebControls/XmlDesigner.cs
System.Web.UI.Design.WebControls/TableCellsCollectionEditor.cs
System.Web.UI.Design.WebControls/ButtonDesigner.cs
System.Web.UI.Design.WebControls/BaseDataListComponentEditor.cs
System.Web.UI.Design.WebControls/ListControlDataBindingHandler.cs
System.Web.UI.Design.WebControls/LabelDesigner.cs
System.Web.UI.Design.WebControls/DataListComponentEditor.cs
System.Windows.Forms.Design/AnchorEditor.cs
System.Windows.Forms.Design/AxImporter.cs
System.Windows.Forms.Design/AxParameterData.cs
@@ -1,3 +1,23 @@
2004-10-04 Ravindra <[email protected]>
* gdipFunctioncs.cs: Backporting. Fix from Alois for bug #67383.
2004-09-22 Ravindra <[email protected]>
* gdipFunctions.cs: Backporting. Improved the exception message
for unsupported image formats.
2004-09-13 Ravindra <[email protected]>
* Graphics.cs: MSDN says that using image width and height gives
better performance, hence we are using image width and height to
avoid autoscaling in DrawImageUnscaled. DrawImageUnscaled method.
2004-09-10 Ravindra <[email protected]>
* Font.cs: Fixed Height property and GetHeight method.
* Graphics.cs: Fixed DrawImageUnscaled method.
2004-07-02 Jordi Mas i Hernandez <[email protected]>
* gdipFunctions.cs: fixes bug 61050
+57 -10
View File
@@ -395,12 +395,10 @@ namespace System.Drawing
}
}
private int _height;
[Browsable (false)]
public int Height {
get {
return _height;
return (int) Math.Ceiling (GetHeight ());
}
}
@@ -511,7 +509,7 @@ namespace System.Drawing
public float GetHeight ()
{
return (float) _height;
return GetHeight (Graphics.systemDpiY);
}
[MonoTODO]
@@ -532,19 +530,68 @@ namespace System.Drawing
throw new NotImplementedException ();
}
[MonoTODO]
public float GetHeight (Graphics graphics)
{
if (Unit == GraphicsUnit.Pixel || Unit == GraphicsUnit.World)
return GetHeight ();
float height = GetHeight (graphics.DpiY);
throw new NotImplementedException ();
switch (graphics.PageUnit) {
case GraphicsUnit.Document:
height *= (300f / graphics.DpiY);
break;
case GraphicsUnit.Display:
height *= (75f / graphics.DpiY);
break;
case GraphicsUnit.Inch:
height /= graphics.DpiY;
break;
case GraphicsUnit.Millimeter:
height *= (25.4f / graphics.DpiY);
break;
case GraphicsUnit.Point:
height *= (72f / graphics.DpiY);
break;
case GraphicsUnit.Pixel:
case GraphicsUnit.World:
default:
break;
}
return height;
}
[MonoTODO]
public float GetHeight (float dpi)
{
return GetHeight ();
float height;
int emHeight = _fontFamily.GetEmHeight (_style);
int lineSpacing = _fontFamily.GetLineSpacing (_style);
height = lineSpacing * (_size / emHeight);
switch (_unit) {
case GraphicsUnit.Document:
height *= (dpi / 300f);
break;
case GraphicsUnit.Display:
height *= (dpi / 75f);
break;
case GraphicsUnit.Inch:
height *= dpi;
break;
case GraphicsUnit.Millimeter:
height *= (dpi / 25.4f);
break;
case GraphicsUnit.Point:
height *= (dpi / 72f);
break;
case GraphicsUnit.Pixel:
case GraphicsUnit.World:
default:
break;
}
return height;
}
public override String ToString ()
@@ -651,22 +651,27 @@ namespace System.Drawing
public void DrawImageUnscaled (Image image, Point point)
{
DrawImage(image, point.X, point.Y);
DrawImageUnscaled (image, point.X, point.Y);
}
public void DrawImageUnscaled (Image image, Rectangle rect)
{
DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height);
DrawImageUnscaled (image, rect.X, rect.Y, rect.Width, rect.Height);
}
public void DrawImageUnscaled (Image image, int x, int y)
{
DrawImage(image, x, y);
DrawImage (image, x, y, image.Width, image.Height);
}
public void DrawImageUnscaled (Image image, int x, int y, int width, int height)
{
DrawImage(image, x, y, width, height);
Image tmpImg = new Bitmap (width, height);
Graphics g = FromImage (tmpImg);
g.DrawImage (image, 0, 0, image.Width, image.Height);
this.DrawImage (tmpImg, x, y, width, height);
tmpImg.Dispose ();
g.Dispose ();
}
public void DrawLine (Pen pen, PointF pt1, PointF pt2)
@@ -7,11 +7,7 @@
// Sanjay Gupta ([email protected])
// Ravindra ([email protected])
//
// Copyright (C) 2004 Novell, Inc. http://www.novell.com
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
// Copyright (C) 2004 Novell, Inc. (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -161,7 +157,7 @@ namespace System.Drawing
throw new UnauthorizedAccessException ("Access denied.");
case Status.UnknownImageFormat:
throw new NotSupportedException ("Unknown image format.");
throw new NotSupportedException ("Either image format is unknown or you don't have the required libraries for this format.");
case Status.NotImplemented:
throw new NotImplementedException ("Feature not implemented.");
@@ -1420,8 +1416,9 @@ namespace System.Drawing
public GdiPlusStreamHelper (Stream s)
{
stream = s;
stream.Seek(0, SeekOrigin.Begin);
stream = s;
if (stream.CanSeek)
stream.Seek (0, SeekOrigin.Begin);
}
public int StreamGetBytesImpl (IntPtr buf, int bufsz, bool peek)
@@ -1,3 +1,10 @@
2004-10-26 Lluis Sanchez Gual <[email protected]>
* ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
code that reads the url from the config file, instead of doing it at
the moment of generation. This fixes bug #68795.
2004-06-25 Lluis Sanchez Gual <[email protected]>
* HttpSimpleProtocolImporter.cs: Added null check. The XmlTypeMapping for
@@ -74,13 +74,10 @@ namespace System.Web.Services.Description
string location = null;
HttpAddressBinding sab = (HttpAddressBinding) Port.Extensions.Find (typeof(HttpAddressBinding));
if (sab != null) location = sab.Location;
string url = GetServiceUrl (location);
CodeConstructor cc = new CodeConstructor ();
cc.Attributes = MemberAttributes.Public;
CodeExpression ce = new CodeFieldReferenceExpression (new CodeThisReferenceExpression(), "Url");
CodeAssignStatement cas = new CodeAssignStatement (ce, new CodePrimitiveExpression (url));
cc.Statements.Add (cas);
GenerateServiceUrl (location, cc.Statements);
codeClass.Members.Add (cc);
memberIds = new CodeIdentifiers ();
@@ -334,21 +334,42 @@ namespace System.Web.Services.Description {
else return msg.Name;
}
internal string GetServiceUrl (string location)
internal void GenerateServiceUrl (string location, CodeStatementCollection stms)
{
if (ImportInfo.AppSettingUrlKey == null || ImportInfo.AppSettingUrlKey == string.Empty)
return location;
if (ImportInfo.AppSettingUrlKey == null || ImportInfo.AppSettingUrlKey == string.Empty) {
if (location != null) {
CodeExpression ce = new CodeFieldReferenceExpression (new CodeThisReferenceExpression(), "Url");
CodeAssignStatement cas = new CodeAssignStatement (ce, new CodePrimitiveExpression (location));
stms.Add (cas);
}
}
else
{
string url;
if (Style == ServiceDescriptionImportStyle.Server) throw new InvalidOperationException ("Cannot set appSettingUrlKey if Style is Server");
url = ConfigurationSettings.AppSettings [ImportInfo.AppSettingUrlKey];
if (ImportInfo.AppSettingBaseUrl != null && ImportInfo.AppSettingBaseUrl != string.Empty)
url += "/" + ImportInfo.AppSettingBaseUrl + "/" + location;
return url;
CodeExpression prop = new CodePropertyReferenceExpression (new CodeTypeReferenceExpression ("System.Configuration.ConfigurationSettings"), "AppSettings");
prop = new CodeIndexerExpression (prop, new CodePrimitiveExpression (ImportInfo.AppSettingUrlKey));
stms.Add (new CodeVariableDeclarationStatement (typeof(string), "urlSetting", prop));
CodeExpression urlSetting = new CodeVariableReferenceExpression ("urlSetting");
CodeExpression thisUrl = new CodeFieldReferenceExpression (new CodeThisReferenceExpression(), "Url");
CodeStatement[] trueStms = new CodeStatement [1];
CodeExpression ce = urlSetting;
CodeExpression cond = new CodeBinaryOperatorExpression (urlSetting, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression (null));
if (ImportInfo.AppSettingBaseUrl != null)
ce = new CodeMethodInvokeExpression (new CodeTypeReferenceExpression (typeof(string)), "Concat", ce, new CodePrimitiveExpression (ImportInfo.AppSettingBaseUrl));
trueStms [0] = new CodeAssignStatement (thisUrl, ce);
if (location != null) {
CodeStatement[] falseStms = new CodeStatement [1];
falseStms [0] = new CodeAssignStatement (thisUrl, new CodePrimitiveExpression (location));
stms.Add (new CodeConditionStatement (cond, trueStms, falseStms));
}
else
stms.Add (new CodeConditionStatement (cond, trueStms));
}
}
void ClasifySchemas (ArrayList importInfo)
{
// I don't like this, but I could not find any other way of clasifying
@@ -110,7 +110,6 @@ namespace System.Web.Services.Description {
string location = null;
SoapAddressBinding sab = (SoapAddressBinding) Port.Extensions.Find (typeof(SoapAddressBinding));
if (sab != null) location = sab.Location;
string url = GetServiceUrl (location);
CodeTypeReference ctr = new CodeTypeReference ("System.Web.Services.Protocols.SoapHttpClientProtocol");
codeClass.BaseTypes.Add (ctr);
@@ -122,9 +121,7 @@ namespace System.Web.Services.Description {
CodeConstructor cc = new CodeConstructor ();
cc.Attributes = MemberAttributes.Public;
CodeExpression ce = new CodeFieldReferenceExpression (new CodeThisReferenceExpression(), "Url");
CodeAssignStatement cas = new CodeAssignStatement (ce, new CodePrimitiveExpression (url));
cc.Statements.Add (cas);
GenerateServiceUrl (location, cc.Statements);
codeClass.Members.Add (cc);
memberIds = new CodeIdentifiers ();
@@ -1,3 +1,13 @@
2004-09-15 Lluis Sanchez Gual <[email protected]>
* Methods.cs: Use the service namespace as the base for the soap action.
This fixes bug #60379.
2004-09-28 Lluis Sanchez Gual <[email protected]>
* WebServiceHelper.cs: Write the encodingStyle attribute when using the
encoded format. This fixes bug #66908.
2004-08-25 Lluis Sanchez Gual <[email protected]>
* HttpSoapWebServiceHandler.cs, WebServiceHandler.cs: Do not assign the
@@ -156,7 +156,7 @@ namespace System.Web.Services.Protocols {
if (RequestName == "") RequestName = Name;
if (ResponseName == "") ResponseName = Name + "Response";
if (Action == null || Action == "")
Action = RequestNamespace.EndsWith("/") ? (RequestNamespace + Name) : (RequestNamespace + "/" + Name);
Action = serviceNamespace.EndsWith("/") ? (serviceNamespace + Name) : (serviceNamespace + "/" + Name);
bool hasWrappingElem = (ParameterStyle == SoapParameterStyle.Wrapped);
bool writeAccessors = (SoapBindingStyle == SoapBindingStyle.Rpc);
@@ -118,6 +118,10 @@ namespace System.Web.Services.Protocols
// Serialize body
xtw.WriteStartElement ("soap", "Body", WebServiceHelper.SoapEnvelopeNamespace);
if (methodUse == SoapBindingUse.Encoded)
xtw.WriteAttributeString ("encodingStyle", WebServiceHelper.SoapEnvelopeNamespace, "http://schemas.xmlsoap.org/soap/encoding/");
bodySerializer.Serialize (xtw, bodyContent);
xtw.WriteEndElement ();
@@ -209,7 +209,7 @@ namespace System.Web.Caching {
// If we have any kind of expiration add into the CacheExpires class
if (objEntry.HasSlidingExpiration || objEntry.HasAbsoluteExpiration) {
if (objEntry.HasSlidingExpiration)
objEntry.Expires = DateTime.Now.Ticks + objEntry.SlidingExpiration;
objEntry.Expires = DateTime.UtcNow.Ticks + objEntry.SlidingExpiration;
_objExpires.Add (objEntry);
}
@@ -392,7 +392,7 @@ namespace System.Web.Caching {
internal CacheEntry GetEntry (string strKey) {
CacheEntry objEntry = null;
long ticksNow = DateTime.Now.Ticks;
long ticksNow = DateTime.UtcNow.Ticks;
if (strKey == null)
throw new ArgumentNullException ("strKey");
@@ -100,7 +100,7 @@ namespace System.Web.Caching {
// moved after each period, and the absolute expiration is the value used
// for all expiration calculations.
if (tsSpan.Ticks != Cache.NoSlidingExpiration.Ticks)
_ticksExpires = System.DateTime.Now.AddTicks(_ticksSlidingExpiration).Ticks;
_ticksExpires = System.DateTime.UtcNow.AddTicks(_ticksSlidingExpiration).Ticks;
_objDependency = objDependency;
if (_objDependency != null)
@@ -71,7 +71,7 @@ namespace System.Web.Caching {
} while (bytePos < 60);
// GC Bucket controller
_intFlush = System.DateTime.Now.Minute - 1;
_intFlush = System.DateTime.UtcNow.Minute - 1;
_objTimer = new System.Threading.Timer (new System.Threading.TimerCallback (GarbageCleanup), null, 10000, 60000);
}
@@ -80,7 +80,7 @@ namespace System.Web.Caching {
/// </summary>
/// <param name="objEntry">Cache entry to add.</param>
internal void Add (CacheEntry objEntry) {
long now = DateTime.Now.Ticks;
long now = DateTime.UtcNow.Ticks;
if (objEntry.Expires < now)
objEntry.Expires = now;
@@ -1,3 +1,8 @@
2004-10-03 Ben Maurer <[email protected]>
* Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
use UtcNow rather than Now.
2004-05-27 Patrik Torstensson <[email protected]>
* ExpiresBucket.cs (FlushExpiredItems): fix csc and a typo bug
@@ -231,7 +231,7 @@ namespace System.Web.Caching {
int intPos;
long ticksNow;
ticksNow = DateTime.Now.Ticks;
ticksNow = DateTime.UtcNow.Ticks;
intPos = 0;
// Lookup all items that needs to be removed, this is done in a two part
@@ -34,6 +34,7 @@ using System.IO;
using System.Text;
using System.Web.Caching;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.Util;
namespace System.Web.Compilation
@@ -127,7 +128,46 @@ namespace System.Web.Compilation
get { return current.Filename; }
}
}
class TagStack
{
Stack tags;
public TagStack ()
{
tags = new Stack ();
}
public void Push (string tagid)
{
tags.Push (tagid);
}
public string Pop ()
{
if (tags.Count == 0)
return null;
return (string) tags.Pop ();
}
public bool CompareTo (string tagid)
{
if (tags.Count == 0)
return false;
return 0 == String.Compare (tagid, (string) tags.Peek (), true);
}
public int Count {
get { return tags.Count; }
}
public string Current {
get { return (string) tags.Peek (); }
}
}
class AspGenerator
{
ParserStack pstack;
@@ -140,6 +180,8 @@ namespace System.Web.Compilation
bool isApplication;
StringBuilder tagInnerText = new StringBuilder ();
static Hashtable emptyHash = new Hashtable ();
bool inForm;
TagStack formTags;
public AspGenerator (TemplateParser tparser)
{
@@ -284,12 +326,22 @@ namespace System.Web.Compilation
tparser.AddDirective (tagid, attributes.GetDictionary (null));
break;
case TagType.Tag:
if (!ProcessTag (tagid, attributes, tagtype))
TextParsed (location, location.PlainText);
if (ProcessTag (tagid, attributes, tagtype))
break;
if (inForm) {
stack.Builder.EnsureOtherTags ();
stack.Builder.OtherTags.Add (tagid);
}
TextParsed (location, location.PlainText);
break;
case TagType.Close:
if (!CloseControl (tagid))
TextParsed (location, location.PlainText);
bool notServer = (inForm && TryRemoveTag (tagid, stack.Builder.OtherTags));
if (!notServer && CloseControl (tagid))
break;
TextParsed (location, location.PlainText);
break;
case TagType.SelfClosing:
int count = stack.Count;
@@ -333,6 +385,20 @@ namespace System.Web.Compilation
//PrintLocation (location);
}
static bool TryRemoveTag (string tagid, ArrayList otags)
{
if (otags == null || otags.Count == 0)
return false;
int idx = otags.Count - 1;
string otagid = (string) otags [idx];
if (0 != String.Compare (tagid, otagid, true))
return false;
otags.RemoveAt (idx);
return true;
}
static string GetIncludeFilePath (string basedir, string filename)
{
if (Path.DirectorySeparatorChar == '/')
@@ -422,6 +488,14 @@ namespace System.Web.Compilation
builder.location = location;
builder.ID = htable ["id"] as string;
if (typeof (HtmlForm).IsAssignableFrom (builder.ControlType)) {
if (inForm)
throw new ParseException (location, "Only one <form> allowed.");
inForm = true;
formTags = new TagStack ();
}
if (builder.HasBody () && !(builder is ObjectTagBuilder)) {
if (builder is TemplateBuilder) {
// push the id list
@@ -459,8 +533,10 @@ namespace System.Web.Compilation
return true;
} else {
Parser.VerbatimID = "script";
javascript = true;
if (tagtype != TagType.SelfClosing) {
Parser.VerbatimID = "script";
javascript = true;
}
TextParsed (location, location.PlainText);
return true;
}
@@ -508,6 +584,10 @@ namespace System.Web.Compilation
tagInnerText.Length = 0;
}
if (typeof (HtmlForm).IsAssignableFrom (current.ControlType)) {
inForm = false;
}
current.CloseControl ();
stack.Pop ();
stack.Builder.AppendSubBuilder (current);
@@ -382,8 +382,11 @@ namespace System.Web.Compilation
void GetServerTag (out TagType tagtype, out string id, out TagAttributes attributes)
{
string inside_tags;
bool old = tokenizer.ExpectAttrValue;
tokenizer.ExpectAttrValue = false;
if (Eat ('@')){
tokenizer.ExpectAttrValue = old;
tagtype = TagType.Directive;
id = "";
if (Eat (Token.DIRECTIVE))
@@ -397,6 +400,7 @@ namespace System.Web.Compilation
}
if (Eat (Token.DOUBLEDASH)) {
tokenizer.ExpectAttrValue = old;
tokenizer.Verbatim = true;
inside_tags = GetVerbatim (tokenizer.get_token (), "--%>");
tokenizer.Verbatim = false;
@@ -406,6 +410,7 @@ namespace System.Web.Compilation
return;
}
tokenizer.ExpectAttrValue = old;
bool varname;
bool databinding;
varname = Eat ('=');
@@ -55,6 +55,7 @@ namespace System.Web.Compilation
int begcol, begline;
int position;
bool inTag;
bool expectAttrValue;
bool hasPutBack;
bool verbatim;
bool have_value;
@@ -210,7 +211,7 @@ namespace System.Web.Compilation
return c;
}
if (inTag && (c == '"' || c == '\''))
if (inTag && expectAttrValue && (c == '"' || c == '\''))
return ReadAttValue (c);
if (c == '<'){
@@ -298,6 +299,12 @@ namespace System.Web.Compilation
get { return inTag; }
set { inTag = value; }
}
// Hack for preventing confusion with VB comments (see bug #63451)
public bool ExpectAttrValue {
get { return expectAttrValue; }
set { expectAttrValue = value; }
}
public int BeginLine {
get { return begline; }
@@ -1,41 +0,0 @@
//
// System.Web.Compilation.BuildProviderResultFlags.cs
//
// Authors:
// Duncan Mak ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
using System.Resources;
#if NET_2_0
namespace System.Web.Compilation
{
[Serializable, Flags]
public enum BuildProviderResultFlags
{
Default = 0,
ShutdownAppDomainOnChange = 1
}
}
#endif
@@ -139,7 +139,8 @@ namespace System.Web.Compilation
ICodeCompiler compiler = provider.CreateCompiler ();
CompilerParameters options = GetOptions (assemblies);
results = compiler.CompileAssemblyFromFile (options, file);
ArrayList realdeps = new ArrayList (assemblies.Count);
ArrayList realdeps = new ArrayList (assemblies.Count + 1);
realdeps.Add (file);
for (int i = assemblies.Count - 1; i >= 0; i--) {
string current = (string) assemblies [i];
if (Path.IsPathRooted (current))
@@ -1,3 +1,18 @@
2004-10-29 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: correctly process script tags that self-closing.
Fixes bug #69657.
2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: when compiling a single .cs file, add the file
itself to dependencies. Fixes bug #68788.
2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* ControlBuilder.cs: don't close server tags when we get to a closing
tag that is not applied to a server control. Fixes bug #60323.
2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: fix buglet in my last commit.
@@ -1,42 +0,0 @@
//
// System.Web.Compilation.IImplicitResourceProvider.cs
//
// Authors:
// Duncan Mak ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
#if NET_2_0
using System.Collections;
using System.Globalization;
namespace System.Web.Compilation
{
public interface IImplicitResourceProvider
{
object GetObject (ImplicitResourceKey key, CultureInfo culture);
ICollection GetResources (string keyPrefix);
}
}
#endif
@@ -1,39 +0,0 @@
//
// System.Web.Compilation.IResourceProvider.cs
//
// Authors:
// Duncan Mak ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
using System.Resources;
#if NET_2_0
namespace System.Web.Compilation
{
public interface IResourceProvider
{
IResourceReader ResourceReader { get; }
}
}
#endif
@@ -1,43 +0,0 @@
//
// System.Web.Compilation.IImplicitResourceProvider.cs
//
// Authors:
// Duncan Mak ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
#if NET_2_0
namespace System.Web.Compilation
{
public class ImplicitResourceKey
{
public ImplicitResourceKey ()
{
}
public string Filter;
public string KeyPrefix;
public string Property;
}
}
#endif
@@ -1,3 +1,8 @@
2004-10-10 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationSettings.cs: use CurrentExecutionFilePath instead of
FilePath. Fixes bug #67982.
2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationSettings.cs: fix bug when processing empty location
@@ -148,7 +148,7 @@ namespace System.Web.Configuration
if (context == null)
return null;
ConfigurationData config = GetConfigFromFileName (context.Request.FilePath, context);
ConfigurationData config = GetConfigFromFileName (context.Request.CurrentExecutionFilePath, context);
if (config == null)
return null;
@@ -213,6 +213,9 @@ namespace System.Web.Configuration
public void Init (HttpContext context)
{
if (initCalled)
return;
lock (this) {
if (initCalled)
return;
@@ -251,7 +254,7 @@ namespace System.Web.Configuration
public FileWatcherCache (ConfigurationData data)
{
this.data = data;
cacheTable = Hashtable.Synchronized (new Hashtable ());
cacheTable = new Hashtable ();
this.path = Path.GetDirectoryName (data.FileName);
this.filename = Path.GetFileName (data.FileName);
if (!Directory.Exists (path))
@@ -539,7 +542,7 @@ namespace System.Web.Configuration
public object GetConfig (string sectionName, HttpContext context)
{
if (locations != null && dirname != null) {
string reduced = UrlUtils.MakeRelative (context.Request.FilePath, dirname);
string reduced = UrlUtils.MakeRelative (context.Request.CurrentExecutionFilePath, dirname);
string [] parts = reduced.Split ('/');
Location location = null;
int length = parts.Length;
@@ -1,3 +1,8 @@
2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: error code is 403 and the message different when
trace is enabled but not for remote clients.
2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: check that trace is enabled or throw.
@@ -44,11 +44,21 @@ namespace System.Web.Handlers
#endif
class TraceNotAvailableException : HttpException
{
public TraceNotAvailableException () :
base ("Trace Error") {}
bool notLocal;
public TraceNotAvailableException (bool notLocal) :
base (notLocal ? 403 : 500, "Trace Error")
{
this.notLocal = notLocal;
}
internal override string Description {
get { return "Trace.axd is not enabled in the configuration file for this application."; }
get {
if (notLocal)
return "Trace is not enabled for remote clients.";
return "Trace.axd is not enabled in the configuration file for this application.";
}
}
}
@@ -58,9 +68,8 @@ namespace System.Web.Handlers
{
TraceManager manager = HttpRuntime.TraceManager;
if (!manager.Enabled || manager.LocalOnly && !context.Request.IsLocal) {
throw new TraceNotAvailableException ();
}
if (!manager.Enabled || manager.LocalOnly && !context.Request.IsLocal)
throw new TraceNotAvailableException (manager.Enabled);
HtmlTextWriter output = new HtmlTextWriter (context.Response.Output);
@@ -1,3 +1,7 @@
2004-10-28 Sanjay Gupta <[email protected]>
* SmtpClient.cs: Backported fix for bug 68829.
2004-08-30 Sanjay Gupta <[email protected]>
* MailMessage.cs:
@@ -157,6 +157,16 @@ namespace System.Web.Mail {
#if NET_1_1
// Add all the custom headers to body part as specified in
//Fields property of MailMessageWrapper
//Remove fields specific for authenticating to SMTP server.
if (msg.Fields.Data ["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] != null)
msg.Fields.Data.Remove ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate");
if (msg.Fields.Data ["http://schemas.microsoft.com/cdo/configuration/sendusername"] != null)
msg.Fields.Data.Remove ("http://schemas.microsoft.com/cdo/configuration/sendusername");
if (msg.Fields.Data ["http://schemas.microsoft.com/cdo/configuration/sendpassword"] != null)
msg.Fields.Data.Remove ("http://schemas.microsoft.com/cdo/configuration/sendpassword");
partHeader.Data.Add(msg.Fields.Data);
#endif
@@ -1,3 +1,13 @@
2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* SessionStateModule.cs: use SetCurrentExePath instead of SetFilePath.
2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpSessionState.cs: don't share static session objects declared in
the application file across the application, but on a per-session
basis. Fixes bug #65446.
2004-07-07 Juraj Skripsky <[email protected]>
* SessionStateModule.cs: set path in session cookie to application
@@ -59,7 +59,7 @@ public sealed class HttpSessionState : ICollection, IEnumerable
{
_id = id;
_dict = dict;
_staticObjects = staticObjects;
_staticObjects = staticObjects.Clone ();
_timeout = timeout;
_newSession = newSession;
_isCookieless = isCookieless;
@@ -109,7 +109,7 @@ namespace System.Web.SessionState
if (id == null)
return;
context.Request.SetFilePath (UrlUtils.RemoveSessionId (base_path,
context.Request.SetCurrentExePath (UrlUtils.RemoveSessionId (base_path,
context.Request.FilePath));
context.Request.SetHeader (HeaderName, id);
}
@@ -217,7 +217,7 @@ namespace System.Web.UI.WebControls
[Bindable(true)]
[DefaultValue("")]
[Editor ("System.Web.UI.Design.XmlUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
[WebCategory("Behaviour")]
[WebCategory("Behavior")]
[WebSysDescription("AdRotator_AdvertisementFile")]
public string AdvertisementFile {
get { return ((advertisementFile != null) ? advertisementFile : ""); }
@@ -232,7 +232,7 @@ namespace System.Web.UI.WebControls
[Bindable(true)]
[DefaultValue("")]
[WebCategory("Behaviour")]
[WebCategory("Behavior")]
[WebSysDescription("AdRotator_KeywordFilter")]
public string KeywordFilter {
get {
@@ -251,7 +251,7 @@ namespace System.Web.UI.WebControls
[Bindable(true)]
[DefaultValue("")]
[TypeConverter(typeof(TargetConverter))]
[WebCategory("Behaviour")]
[WebCategory("Behavior")]
[WebSysDescription("AdRotator_Target")]
public string Target {
get {
@@ -56,7 +56,7 @@ namespace System.Web.UI.WebControls
}
[DefaultValue(ValidationDataType.String)]
[WebCategory("Behaviour")]
[WebCategory("Behavior")]
[WebSysDescription("RangeValidator_Type")]
public ValidationDataType Type
{
@@ -1,3 +1,17 @@
2004-10-25 Gonzalo Paniagua Javier <[email protected]>
* ListItemCollection.cs: fixed bug when indexing changed elements in
LoadViewState. Patch from Alois Bělaška.
2004-09-28 Gonzalo Paniagua Javier <[email protected]>
* TableStyle.cs: don't render empty 'rules' attribute (again).
2004-09-12 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: fix GroupName when the control is inside a
NamingContainer different from Page. Closes bug #65586.
2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* Xml.cs: fixed get_DocumentContent (it was returning "" always!) and
@@ -272,7 +272,7 @@ namespace System.Web.UI.WebControls
end = indices.Count;
for (i = 0; i < end; i++) {
if ((int) indices [i] < Count ) {
this [i].LoadViewState (states [i]);
this [(int) indices [i]].LoadViewState (states [i]);
} else {
ListItem temp = new ListItem ();
temp.LoadViewState (states [i]);
@@ -99,19 +99,23 @@ namespace System.Web.UI.WebControls
writer.RenderBeginTag (System.Web.UI.HtmlTextWriterTag.Input);
writer.RenderEndTag ();
}
private string UniqueGroupNamePrivate
{
get {
string retVal = GroupName;
int unique = UniqueID.LastIndexOf (':');
if (unique >= 0)
retVal += UniqueID.Substring (unique + 1);
return retVal;
}
}
private string UniqueGroupNamePrivate
{
get {
string retVal;
string uid = UniqueID;
int unique = uid.LastIndexOf (':');
if (unique == -1) {
retVal = GroupName;
} else {
retVal = uid.Substring (0, unique + 1) + GroupName;
}
return retVal;
}
}
private string ValueAttributePrivate
{
get {
@@ -171,7 +171,7 @@ namespace System.Web.UI.WebControls
{
writer.AddAttribute(HtmlTextWriterAttribute.Align, Enum.Format(typeof(HorizontalAlign), HorizontalAlign, "G"));
}
string gd = String.Empty;
string gd = null;
switch(GridLines)
{
case GridLines.None: break;
@@ -182,6 +182,8 @@ namespace System.Web.UI.WebControls
case GridLines.Both: gd = "all";
break;
}
if (gd != null)
writer.AddAttribute(HtmlTextWriterAttribute.Rules, gd);
}
@@ -1,3 +1,17 @@
2004-10-29 Gonzalo Paniagua Javier <[email protected]>
* ControlBuilder.cs: from HEAD.
2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: even if the control has no children the naming container
may contain the control we're looking for. Fixes bug #67304.
2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: ensure bin directory exists before trying to access
it. Fixes bug #65446 (not closed yet due to dependencies).
2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* SimpleWebHandlerParser.cs: correctly cache Type instead of the
@@ -501,9 +501,6 @@ namespace System.Web.UI
protected virtual Control FindControl (string id, int pathOffset)
{
EnsureChildControls ();
if (_controls == null)
return null;
Control namingContainer = null;
if (!_isNamingContainer) {
namingContainer = NamingContainer;
@@ -512,7 +509,10 @@ namespace System.Web.UI
return namingContainer.FindControl (id, pathOffset);
}
if (!HasControls ())
return null;
int colon = id.IndexOf (':', pathOffset);
if (colon == -1)
return LookForControlByName (id.Substring (pathOffset));
@@ -66,6 +66,7 @@ namespace System.Web.UI {
internal int renderIndex;
internal bool isProperty;
internal ILocation location;
ArrayList otherTags;
public ControlBuilder ()
{
@@ -91,6 +92,16 @@ namespace System.Web.UI {
this.fileName = sourceFileName;
}
internal void EnsureOtherTags ()
{
if (otherTags == null)
otherTags = new ArrayList ();
}
internal ArrayList OtherTags {
get { return otherTags; }
}
public Type ControlType {
get { return type; }
}
@@ -276,6 +276,9 @@ namespace System.Web.UI
return null;
// Load from bin
if (!Directory.Exists (PrivateBinPath))
return null;
string [] binDlls = Directory.GetFiles (PrivateBinPath, "*.dll");
foreach (string s in binDlls) {
Assembly binA = Assembly.LoadFrom (s);
+53
View File
@@ -1,3 +1,56 @@
2004-10-10 Gonzalo Paniagua Javier <[email protected]>
* TraceContext.cs: don't cast to Page is the handler it's not a page.
2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* HttpRequest.cs: CurrentExecutionFilePath is the one that
changes when Transfer or Execute are used, not FilePath.
* HttpServerUtility.cs: moved form saving/restoring from
Transfer to Execute, as it's needed there too. the query string is
correctly set now. Fixes bug #67388.
* HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
2004-10-03 Ben Maurer <[email protected]>
* HttpResponse.cs: use UtcNow
2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: SuppressContent does not throw and clears all the
buffered output. Fixes bug #67213.
2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
2004-09-29 Ben Maurer <[email protected]>
* HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
2004-09-25 Ben Maurer <[email protected]>
* HttpApplication.cs: Make sure requests are removed from
the timeout manager. Fixes a major leak. #66751.
2004-09-24 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs:
* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
unloading.
2004-09-12 Ben Maurer <[email protected]>
* HttpContext.cs: use CallContext. It is a little bit faster.
2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpStaticObjectsCollection.cs: don't share static session objects
declared in the application file across the application, but on a
per-session basis. Fixes bug #65446.
2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
@@ -664,19 +664,23 @@ namespace System.Web
handler = _handlers [_currentStateIdx];
_countSteps++;
timeoutPossible = handler.PossibleToTimeout;
if (timeoutPossible)
HttpRuntime.TimeoutManager.Add (_app.Context);
lasterror = ExecuteState (handler, ref ready_sync);
if (ready_sync)
_countSyncSteps++;
try {
if (timeoutPossible)
HttpRuntime.TimeoutManager.Add (_app.Context);
lasterror = ExecuteState (handler, ref ready_sync);
if (ready_sync)
_countSyncSteps++;
} finally {
if (timeoutPossible)
HttpRuntime.TimeoutManager.Remove (_app.Context);
}
} while (ready_sync && _currentStateIdx < _endStateIdx);
if (null != lasterror)
_app.HandleError (lasterror);
} finally {
if (timeoutPossible)
HttpRuntime.TimeoutManager.Remove (_app.Context);
_app.OnStateExecuteLeave ();
}
@@ -142,43 +142,39 @@ namespace System.Web {
return appTypeEventHandlers;
}
static bool FireEvents (string method_name, object target, object [] args)
{
Hashtable possibleEvents = GetApplicationTypeEvents ((HttpApplication) target);
MethodInfo method = possibleEvents [method_name] as MethodInfo;
if (method == null)
return false;
if (method.GetParameters ().Length == 0)
method.Invoke (target, null);
else
method.Invoke (target, args);
return true;
}
static bool FireEvent (string method_name, object target, object [] args)
{
Hashtable possibleEvents = GetApplicationTypeEvents ((HttpApplication) target);
MethodInfo method = possibleEvents [method_name] as MethodInfo;
if (method == null)
return false;
if (method.GetParameters ().Length == 0)
method.Invoke (target, null);
else
method.Invoke (target, args);
return true;
}
internal static void FireOnAppStart (HttpApplication app)
{
{
object [] args = new object [] {app, EventArgs.Empty};
FireEvents ("Application_Start", app, args);
}
void FireOnAppEnd ()
{
// FireEvents ("Application_End", this, new object [] {this, EventArgs.Empty});
}
void FireOnSessionStart (HttpSessionState state, object source, EventArgs args)
{
// FireEvents ("Session_Start", state, new object [] {source, EventArgs.Empty});
}
void FireOnSessionEnd (HttpSessionState state, object source, EventArgs args)
{
// FireEvents ("Session_End", state, new object [] {source, args});
}
FireEvent ("Application_Start", app, args);
}
void FireOnAppEnd ()
{
if (_appType == null)
return; // we didn't even get an application
HttpApplication app = (HttpApplication) HttpRuntime.CreateInternalObject (_appType);
AttachEvents (app);
FireEvent ("Application_End", app, new object [] {this, EventArgs.Empty});
app.Dispose ();
}
private void InitializeFactory (HttpContext context)
{
_appFilename = GetAppFilename (context);
@@ -38,6 +38,7 @@ using System.Web.Configuration;
using System.Web.Util;
using System.Web.SessionState;
using System.Threading;
using System.Runtime.Remoting.Messaging;
namespace System.Web
{
@@ -96,15 +97,14 @@ namespace System.Web
}
}
[MonoTODO("Context - Use System.Remoting.Messaging.CallContext instead of Thread storage")]
internal static HttpContext Context
{
get {
return (HttpContext) Thread.GetData (Thread.GetNamedDataSlot ("Context"));
return (HttpContext) CallContext.GetData ("Context");
}
set {
Thread.SetData (Thread.GetNamedDataSlot ("Context"), value);
CallContext.SetData ("Context", value);
}
}
@@ -287,7 +287,7 @@ namespace System.Web
internal void BeginTimeoutPossible ()
{
timeoutPossible = 1;
timeoutBegin = DateTime.Now.Ticks;
timeoutBegin = DateTime.UtcNow.Ticks;
}
internal void EndTimeoutPossible ()
@@ -403,7 +403,7 @@ namespace System.Web
throw new HttpException (404, "The virtual path '" + path +
"' maps to another application.");
Request.SetFilePath (path);
Request.SetCurrentExePath (path);
Request.QueryStringRaw = query;
}
@@ -88,6 +88,7 @@ namespace System.Web {
Stream userFilter;
HttpRequestStream requestFilter;
string clientTarget;
string currentExePath;
#if NET_1_1
bool validateCookies;
bool validateForm;
@@ -503,6 +504,9 @@ namespace System.Web {
public string CurrentExecutionFilePath {
get {
if (currentExePath != null)
return currentExePath;
return FilePath;
}
}
@@ -1139,9 +1143,9 @@ namespace System.Web {
}
#endif
internal void SetFilePath (string filePath)
internal void SetCurrentExePath (string filePath)
{
_sFilePath = filePath;
currentExePath = filePath;
_sRequestRootVirtualDir = null;
baseVirtualDir = null;
}
@@ -190,7 +190,7 @@ namespace System.Web
CultureInfo oSavedInfo = Thread.CurrentThread.CurrentCulture;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
string date = DateTime.Now.ToUniversalTime ().ToString ("ddd, d MMM yyyy HH:mm:ss ");
string date = DateTime.UtcNow.ToString ("ddd, d MMM yyyy HH:mm:ss ");
HttpResponseHeader date_header = new HttpResponseHeader ("Date", date + "GMT");
oHeaders.Add (date_header);
@@ -618,9 +618,6 @@ namespace System.Web
}
set {
if (_bHeadersSent)
throw new HttpException ("Headers has been sent to the client");
_bSuppressContent = true;
}
}
@@ -846,6 +843,9 @@ namespace System.Web
if (!_bSuppressContent && Request.HttpMethod == "HEAD")
_bSuppressContent = true;
if (_bSuppressContent)
_Writer.Clear ();
if (!_bSuppressContent) {
_bClientDisconnected = false;
if (_bChunked) {
+25 -15
View File
@@ -61,11 +61,10 @@ namespace System.Web {
private int _activeRequests;
private HttpWorkerRequest.EndOfSendNotification _endOfSendCallback;
private AsyncCallback _handlerCallback;
private WaitCallback _appDomainCallback;
private WaitCallback unloadDomainCallback;
private bool _firstRequestStarted;
private bool _firstRequestExecuted;
private DateTime _firstRequestStartTime;
private Exception _initError;
private TimeoutManager timeoutManager;
@@ -95,9 +94,10 @@ namespace System.Web {
_cache = new Cache ();
timeoutManager = new TimeoutManager ();
_endOfSendCallback = new HttpWorkerRequest.EndOfSendNotification(OnEndOfSend);
_handlerCallback = new AsyncCallback(OnHandlerReady);
_appDomainCallback = new WaitCallback(OnAppDomainUnload);
_endOfSendCallback = new HttpWorkerRequest.EndOfSendNotification (OnEndOfSend);
_handlerCallback = new AsyncCallback (OnHandlerReady);
unloadDomainCallback = new WaitCallback (DoUnload);
AppDomain.CurrentDomain.DomainUnload += new EventHandler (OnDomainUnload);
}
catch (Exception error) {
_initError = error;
@@ -238,17 +238,29 @@ namespace System.Web {
_runtime.FinishRequest (context, exception);
}
private void OnAppDomainUnload(object state) {
Dispose();
void DoUnload (object state)
{
AppDomain.Unload (AppDomain.CurrentDomain);
}
internal void Dispose() {
WaitForRequests(5000);
WaitForRequests (2000);
queueManager.Dispose (); // Send a 503 to all queued requests
queueManager = null;
_cache = null;
HttpApplicationFactory.EndApplication();
HttpApplicationFactory.EndApplication ();
}
void OnDomainUnload (object o, EventArgs args)
{
HttpApplicationFactory.EndApplication ();
}
internal void ByeByeDomain ()
{
HttpApplicationFactory.EndApplication ();
ThreadPool.QueueUserWorkItem (unloadDomainCallback);
}
internal void WaitForRequests(int ms) {
@@ -277,7 +289,6 @@ namespace System.Web {
if (!_firstRequestStarted) {
lock (this) {
if (!_firstRequestStarted) {
_firstRequestStartTime = DateTime.Now;
OnFirstRequestStart(context);
_firstRequestStarted = true;
}
@@ -315,7 +326,7 @@ namespace System.Web {
void TryExecuteQueuedRequests ()
{
// Wait for pending jobs to start
if (Interlocked.CompareExchange (ref pendingCallbacks, 3, 3) == 3)
if (Interlocked.CompareExchange (ref pendingCallbacks, 3, 3) >= 3)
return;
HttpWorkerRequest wr = queueManager.GetNextRequest (null);
@@ -344,10 +355,9 @@ namespace System.Web {
}
#if NET_1_1
[MonoTODO]
public void UnloadAppDomain ()
public static void UnloadAppDomain ()
{
throw new NotImplementedException ();
_runtime.ByeByeDomain ();
}
#endif
public static Cache Cache {
@@ -444,7 +454,7 @@ namespace System.Web {
public static void Close ()
{
_runtime.Dispose();
_runtime.Dispose ();
}
internal static string FormatResourceString (string key)
@@ -192,19 +192,26 @@ namespace System.Web
} else {
query = "";
}
string filePath = _Context.Request.MapPath (path);
HttpRequest request = _Context.Request;
HttpResponse response = _Context.Response;
string oldQuery = request.QueryStringRaw;
request.QueryStringRaw = query;
HttpValueCollection oldForm = null;
if (!preserveQuery) {
oldForm = _Context.Request.Form as HttpValueCollection;
_Context.Request.SetForm (new HttpValueCollection ());
}
string filePath = _Context.Request.MapPath (path);
TextWriter output = writer;
if (output == null)
output = response.Output;
HttpRequest request = _Context.Request;
string oldFilePath = request.FilePath;
request.SetFilePath (UrlUtils.Combine (_Context.Request.BaseVirtualDir, path));
string oldQuery = request.QueryStringRaw;
if (!preserveQuery) request.QueryStringRaw = query;
request.SetCurrentExePath (UrlUtils.Combine (_Context.Request.BaseVirtualDir, path));
IHttpHandler handler = _Context.ApplicationInstance.CreateHttpHandler (_Context,
request.RequestType,
path,
@@ -221,9 +228,11 @@ namespace System.Web
asyncHandler.EndProcessRequest (ar);
}
} finally {
request.SetFilePath (oldFilePath);
request.SetCurrentExePath (oldFilePath);
request.QueryStringRaw = oldQuery;
response.SetTextWriter (previous);
if (!preserveQuery)
_Context.Request.SetForm (oldForm);
}
}
@@ -324,16 +333,7 @@ namespace System.Web
/// they are cleared. The default is false. </param>
public void Transfer (string path, bool preserveForm)
{
HttpValueCollection oldForm = null;
if (!preserveForm) {
oldForm = _Context.Request.Form as HttpValueCollection;
_Context.Request.SetForm (new HttpValueCollection ());
}
Execute (path, null, preserveForm);
if (!preserveForm)
_Context.Request.SetForm (oldForm);
_Context.Response.End ();
}
@@ -37,6 +37,11 @@ namespace System.Web {
this.type = type;
}
public StaticItem (StaticItem item)
{
this.type = item.type;
}
public object Instance {
get {
lock (this) {
@@ -101,6 +106,18 @@ namespace System.Web {
get { return this; }
}
internal HttpStaticObjectsCollection Clone ()
{
HttpStaticObjectsCollection coll = new HttpStaticObjectsCollection ();
coll._Objects = new Hashtable ();
foreach (string key in _Objects.Keys) {
StaticItem item = new StaticItem ((StaticItem) _Objects [key]);
coll._Objects [key] = item;
}
return coll;
}
internal void Add (ObjectTagBuilder tag)
{
_Objects.Add (tag.ObjectID, new StaticItem (tag.Type));
@@ -829,7 +829,7 @@ namespace System.Web {
}
#if NET_1_1
public string UrlPathEncode (string s)
public static string UrlPathEncode (string s)
{
if (s == null)
return null;
@@ -106,7 +106,7 @@ namespace System.Web
return;
}
DateTime now = DateTime.Now;
DateTime now = DateTime.UtcNow;
ArrayList clist = new ArrayList ();
lock (this) { // The lock prevents Keys enumerator from being out of synch
@@ -118,7 +118,9 @@ namespace System.Web {
if (data == null)
data = new TraceData ();
SetRequestDetails ();
data.AddControlTree ((Page) _Context.Handler);
if (_Context.Handler is Page)
data.AddControlTree ((Page) _Context.Handler);
AddCookies ();
AddHeaders ();
AddServerVars ();
+6
View File
@@ -1,3 +1,9 @@
Wed Oct 13 15:12:17 CEST 2004 Paolo Molaro <[email protected]>
* System.Resources/ResXResourceReader.cs: patch by
[email protected] (joel) to handle CDATA sections.
2004-05-11 Gonzalo Paniagua Javier <[email protected]>
* System.Resources/ResXResourceWriter.cs: implemented.
@@ -87,7 +87,7 @@ namespace System.Resources
if (!gotelement)
return null;
while (reader.Read ()) {
if (reader.NodeType == XmlNodeType.Text) {
if (reader.NodeType == XmlNodeType.Text || reader.NodeType == XmlNodeType.CDATA) {
string v = reader.Value;
return v;
}
@@ -1,3 +1,7 @@
2004-10-04 Atsushi Enomoto <[email protected]>
* HtmlEmitter.cs : TH tag is not regarded as HTML tag.
This fixes bug #67390.
Thu Sep 9 07:09:11 PDT 2004 Paolo Molaro <[email protected]>
@@ -226,9 +226,8 @@ namespace Mono.Xml.Xsl
case "SMALL": case "SPAN": case "STRIKE": case "STRONG":
case "STYLE": case "SUB": case "SUP":
case "TABLE": case "TBODY": case "TD": case "TEXTAREA":
case "TFOOT": case "THEAD": case "TITLE": case "TR": case "TT":
case "U": case "UL":
case "VAR":
case "TFOOT": case "TH": case "THEAD": case "TITLE":
case "TR": case "TT": case "U": case "UL": case "VAR":
return true;
}
return false;
@@ -1370,15 +1370,61 @@ namespace Mono.Xml.Schema
public override object ParseValue (string s,
XmlNameTable nameTable, XmlNamespaceManager nsmgr)
{
return ParseValueType (s, nameTable, nsmgr);
return new XmlSchemaUri (Normalize (s));
}
internal override ValueType ParseValueType (string s, XmlNameTable nameTable, XmlNamespaceManager nsmgr)
{
return new UriValueType (Normalize (s));
return new UriValueType ((XmlSchemaUri) ParseValue (s, nameTable, nsmgr));
}
}
internal class XmlSchemaUri : Uri
{
public string value;
// LAMESPEC: In this way, some strings that contain ':' might
// result in exception (MS.NET looks implemented as such).
public XmlSchemaUri (string src)
: this (src, src.IndexOf (':') > 0)
{
}
private XmlSchemaUri (string src, bool formal)
: base (formal ? src : "anyuri:" + src, !formal)
{
value = src;
}
public static bool operator == (XmlSchemaUri v1, XmlSchemaUri v2)
{
return v1.value == v2.value;
}
public static bool operator != (XmlSchemaUri v1, XmlSchemaUri v2)
{
return v1.value != v2.value;
}
public override bool Equals (object obj)
{
if (obj is XmlSchemaUri)
return (XmlSchemaUri) obj == this;
else
return false;
}
public override int GetHashCode ()
{
return value.GetHashCode ();
}
public override string ToString ()
{
return value;
}
}
// xs:duration
internal class XsdDuration : XsdAnySimpleType
{
@@ -1,3 +1,9 @@
2004-09-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, SchemaDataValueType.cs :
ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
XmlSchemaUri, but it is derived from System.Uri, while ours was not.
2004-09-03 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : When schema inclusion results in a recursion, just
@@ -19,6 +19,8 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using Mono.Xml.Schema;
namespace System.Xml.Schema
{
internal struct QNameValueType
@@ -97,14 +99,14 @@ namespace System.Xml.Schema
internal struct UriValueType
{
string value;
XmlSchemaUri value;
public UriValueType (string value)
public UriValueType (XmlSchemaUri value)
{
this.value = value;
}
public string Value {
public XmlSchemaUri Value {
get { return value; }
}
@@ -133,7 +135,7 @@ namespace System.Xml.Schema
public override string ToString ()
{
return value;
return value.ToString ();
}
}
@@ -1,3 +1,14 @@
2004-10-19 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : When namespace is an empty string,
XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
such case.
2004-09-28 Lluis Sanchez Gual <[email protected]>
* CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
This fixes bug #66877.
2004-09-03 Lluis Sanchez Gual <[email protected]>
* XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
@@ -55,7 +55,7 @@ namespace System.Xml.Serialization {
if (identifier == null)
throw new NullReferenceException ();
if (identifier.Length == 0)
return identifier;
return "Item";
string output = "";
@@ -479,7 +479,7 @@ namespace System.Xml.Serialization {
ICollection namespaces = ns.Namespaces.Values;
foreach (XmlQualifiedName qn in namespaces) {
if (Writer.LookupPrefix (qn.Namespace) == null)
if (qn.Namespace != String.Empty && Writer.LookupPrefix (qn.Namespace) == null)
WriteAttribute ("xmlns", qn.Name, xmlNamespace, qn.Namespace);
}
}
@@ -1,3 +1,15 @@
2004-10-14 Atsushi Enomoto <[email protected]>
* Iterator.cs :
- Added WrapperIterator to return BaseIterator in such case that
variable reference is resolved to XPathNodeIterator. This fixes
bug #68267.
- Path ".." is reverse axis (actually no effect).
- Fixed DescendantIterator.Clone() that missed "_finished" field.
* Expression.cs :
In ExprVariable.Evaluate(), use WrapperIterator() for custom
XPathNodeIterator.
2004-06-18 Atsushi Enomoto <[email protected]>
* DefaultContext.cs : Globalization.
@@ -1443,7 +1443,7 @@ namespace System.Xml.XPath
object objResult = var.Evaluate (context);
XPathNodeIterator iterResult = objResult as XPathNodeIterator;
if (iterResult != null)
return iterResult.Clone ();
return new WrapperIterator (iterResult.Clone (), iter.NamespaceManager);
return objResult;
}
}
@@ -84,6 +84,39 @@ namespace System.Xml.XPath
}
}
internal class WrapperIterator : BaseIterator
{
XPathNodeIterator iter;
public WrapperIterator (XPathNodeIterator iter, XmlNamespaceManager nsm)
: base (nsm)
{
this.iter = iter;
}
public override XPathNodeIterator Clone ()
{
return new WrapperIterator (iter.Clone (), NamespaceManager);
}
public override bool MoveNext ()
{
return iter.MoveNext ();
}
public override XPathNavigator Current {
get { return iter.Current; }
}
public override int CurrentPosition {
get { return iter.CurrentPosition; }
}
public override bool RequireSorting {
get { return true; }
}
}
internal abstract class SimpleIterator : BaseIterator
{
protected readonly BaseIterator _iter;
@@ -191,6 +224,8 @@ namespace System.Xml.XPath
return false;
}
public override bool ReverseAxis { get { return true; } }
public override bool RequireSorting { get { return true; } }
}
@@ -479,6 +514,7 @@ namespace System.Xml.XPath
protected DescendantIterator (DescendantIterator other) : base (other)
{
_depth = other._depth;
_finished = other._finished;
_current = other._current.Clone ();
}
Loaded 100 of 231 files, more files were not shown because too many files have changed in this diff. Show more