Senganal T [Wed, 31 May 2006 09:40:34 +0000 (09:40 -0000)]
2006-05-31 Senganal T <tsenganal@novell.com>
* Test/System.Data/DataSetTest2.cs : Fixed InferXmlSchema_inferingTables5.
* System.Data/XmlDataInferenceLoader.cs :
- InferTableElement : Repeated element should result in a single
inferred table.
Patch from Deepak Kr Velachha
svn path=/trunk/mcs/; revision=61306
Raja R Harinath [Wed, 31 May 2006 09:36:27 +0000 (09:36 -0000)]
* generic.cs (Nullable.LiftedBinaryOperator.EmitEquality):
Use bne.un instead of ceq+brfalse.
svn path=/trunk/mcs/; revision=61305
Gert Driesen [Wed, 31 May 2006 09:13:12 +0000 (09:13 -0000)]
* TcpClientChannel.cs: Marked CreateMessageSink virtual.
* TcpServerChannel.cs: Marked GetUrlsForUri virtual.
svn path=/trunk/mcs/; revision=61304
Senganal T [Wed, 31 May 2006 09:10:54 +0000 (09:10 -0000)]
2006-05-31 Senganal T <tsenganal@novell.com>
* DataSetTest2.cs,DataSetReadXmlSchemaTest.cs,DataSetTest.cs:
Cleanup NotWorking testcases
svn path=/trunk/mcs/; revision=61303
Gert Driesen [Wed, 31 May 2006 08:46:36 +0000 (08:46 -0000)]
* TcpClientChannel.cs: Set eol-style to native.
* TcpChannel.cs: Fixed line endings. Set eol-style to native.
* TcpServerTransportSink.cs: Fixed line endings. Set eol-style to
native.
* TcpConnectionPool.cs: Fixed line endings. Set eol-style to CRLF.
* TcpClientTransportSinkProvider.cs: Fixed line endings. Set eol-style
to native.
* TcpMessageIO.cs: Set eol-style to native.
* TcpServerChannel.cs: Fixed line endings. Set eol-style to native.
* TcpClientTransportSink.cs: Fixed line endings. Set eol-style to
native.
svn path=/trunk/mcs/; revision=61302
Gert Driesen [Wed, 31 May 2006 08:38:41 +0000 (08:38 -0000)]
* SoapCore.cs: Set eol-style to native.
* SoapServerFormatterSinkProvider.cs: Fixed line endings. Set eol-style
to CRLF.
* ChannelCore.cs: Set eol-style to native.
* BinaryServerFormatterSink.cs: Set eol-style to native.
* SoapClientFormatterSinkProvider.cs: Fixed line endings. Set eol-style
to CRLF. Next and CreateSink should not be virtual.
* SoapMessageFormatter.cs: Set eol-style to CRLF.
* BinaryClientFormatterSink.cs: Fixed line endings. Set eol-style to
native.
* BinaryCore.cs: Set eol-style to native.
* BinaryServerFormatterSinkProvider.cs: Set eol-style to native.
* CommonTransportKeys.cs: Set eol-style to native.
* SoapServerFormatterSink.cs: Fixed line endings. Set eol-style to CRLF.
* RemotingThreadPool.cs: Fixed line endings. Set eol-style to native.
* BinaryClientFormatterSinkProvider.cs: Set eol-style to native.
* SoapClientFormatterSink.cs: Fixed line endings. Set eol-style to CRLF.
svn path=/trunk/mcs/; revision=61301
Raja R Harinath [Wed, 31 May 2006 08:28:03 +0000 (08:28 -0000)]
Fix cs0208-[23].cs
* typemanager.cs (IsUnmanagedType): Disallow generic types and
generic parameters.
svn path=/trunk/mcs/; revision=61300
Gert Driesen [Wed, 31 May 2006 08:22:07 +0000 (08:22 -0000)]
* SoapWriter.cs: Fixed line endings. Set eol-style to CRLF.
* SoapReader.cs: Fixed line endings. Set eol-style to CRLF.
* SoapFormatter.cs: Fixed line endings. Set eol-style to CRLF.
Remove unnecessary dtor.
* SoapTypeMapper.cs: Fixed line endings. Set eol-style to native.
svn path=/trunk/mcs/; revision=61299
Gert Driesen [Wed, 31 May 2006 08:14:22 +0000 (08:14 -0000)]
* OciGlue.cs: Set eol-style to native.
* OracleBFile.cs: Set eol-style to native.
* OracleBinary.cs: Set eol-style to native.
* OracleBoolean.cs: Set eol-style to native.
* OracleCommandBuilder.cs: Set eol-style to native.
* OracleCommand.cs: Set eol-style to native.
* OracleConnection.cs: Set eol-style to native.
* OracleConnectionPool.cs: Set eol-style to native.
* OracleConnectionPoolManager.cs: Set eol-style to native.
* OracleDataAdapter.cs: Set eol-style to native.
* OracleDataReader.cs: Set eol-style to native.
* OracleDateTime.cs: Set eol-style to native.
* OracleException.cs: Set eol-style to native.
* OracleInfoMessageEventArgs.cs: Set eol-style to native.
* OracleInfoMessageEventHandler.cs: Set eol-style to native.
* OracleLob.cs: Set eol-style to native.
* OracleLobOpenMode.cs: Set eol-style to native.
* OracleMonthSpan.cs: Set eol-style to native.
* OracleNumber.cs: Set eol-style to native.
* OracleParameterCollection.cs: Set eol-style to native.
* OracleParameter.cs: Set eol-style to native.
* OraclePermissionAttribute.cs: Set eol-style to native.
* OraclePermission.cs: Set eol-style to native.
* OracleRowUpdatedEventArgs.cs: Set eol-style to native.
* OracleRowUpdatedEventHandler.cs: Set eol-style to native.
* OracleRowUpdatingEventArgs.cs: Set eol-style to native.
* OracleRowUpdatingEventHandler.cs: Set eol-style to native.
* OracleString.cs: Set eol-style to native.
* OracleTimeSpan.cs: Set eol-style to native.
* OracleTransaction.cs: Set eol-style to native.
* OracleType.cs: Set eol-style to native.
svn path=/trunk/mcs/; revision=61298
Gert Driesen [Wed, 31 May 2006 08:09:48 +0000 (08:09 -0000)]
* OracleLob.cs: Explicitly implement IDisposable interface. Fixes
API signature warning for Dispose () method.
* OracleParameterCollection.cs: Removed explicit interface implemenation
of IList.IsFixedSize, IList.IsReadOnbly, IList.IsSynchronized and
IList.SyncRoot. Fixes API signature mismatches.
* OracleBFile.cs: Explicit implemenat IDisposable interface. Fixed
API signature warning for Dispose () method.
* OracleCommand.cs: Fixed line endings.
* OracleConnection.cs: Removed destructor, as the destructor in
System.ComponentModel.Component already calls the Dispose (bool) method.
* OracleDataReader.cs: Fixed line endings.
* OracleDateTime.cs: Fixed line endings.
* OracleParameter.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=61297
Andrew Skiba [Wed, 31 May 2006 08:07:52 +0000 (08:07 -0000)]
merge -r 60814:60815
svn path=/trunk/mcs/; revision=61296
Miguel de Icaza [Wed, 31 May 2006 02:13:55 +0000 (02:13 -0000)]
2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
* corlib_test.dll.sources : added EncodingInfoTest.cs.
2006-04-21 Zoltan Varga <vargaz@gmail.com>
svn path=/trunk/mcs/; revision=61295
Atsushi Eno [Wed, 31 May 2006 01:38:24 +0000 (01:38 -0000)]
2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
* SerializationCodeGenerator.cs,
XmlSerializerReaderInterpreter.cs : handle CDATA section as text
node. Fixed bug #78536.
* XmlSerializerTests.cs : added tailored version of bug #78536 test.
svn path=/trunk/mcs/; revision=61294
Jackson Harper [Tue, 30 May 2006 22:42:05 +0000 (22:42 -0000)]
Some more tests.
svn path=/trunk/mcs/; revision=61292
Wade Berrier [Tue, 30 May 2006 21:38:08 +0000 (21:38 -0000)]
Makefile: oops, add some more missing resources.
svn path=/trunk/mcs/; revision=61291
Miguel de Icaza [Tue, 30 May 2006 21:16:27 +0000 (21:16 -0000)]
2006-05-30 Miguel de Icaza <miguel@novell.com>
* loader.c (method_from_memberref): Fix argument value for
mono_loader_set_error_method_load (I was passing the MonoClass
instead of the class name char *).
svn path=/trunk/mono/; revision=61290
Jackson Harper [Tue, 30 May 2006 20:34:19 +0000 (20:34 -0000)]
* BindingContext.cs: Create the currency manager tables here.
This allows us to more easily create null tables (when bad data
members are used), and more easily create related currency
managers.
* CurrencyManager.cs: All the table creation stuff is done by
* the
binding context now.
- Current should throw an exception if listposition is -1.
- CancelCurrentEdit/EndCurrentEdit, do nothing if the list
hasn't
been bound yet.
svn path=/trunk/mcs/; revision=61288
Wade Berrier [Tue, 30 May 2006 20:14:15 +0000 (20:14 -0000)]
Makefile: fix resource filenames to fix make dist
svn path=/trunk/mcs/; revision=61285
Jackson Harper [Tue, 30 May 2006 20:10:11 +0000 (20:10 -0000)]
Some tests for recent CurrencyManager work.
svn path=/trunk/mcs/; revision=61283
Jackson Harper [Tue, 30 May 2006 19:53:30 +0000 (19:53 -0000)]
* BindingContext.cs: Create the currency manager tables here.
This allows us to more easily create null tables (when bad data
members are used), and more easily create related currency
managers.
* CurrencyManager.cs: All the table creation stuff is done by
* the
binding context now.
- Current should throw an exception if listposition is -1.
- CancelCurrentEdit/EndCurrentEdit, do nothing if the list
hasn't
been bound yet.
svn path=/trunk/mcs/; revision=61281
Sebastien Pouliot [Tue, 30 May 2006 19:02:21 +0000 (19:02 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* System.Drawing_test.dll.sources: Added unit tests for FontFamily.
svn path=/trunk/mcs/; revision=61280
Sebastien Pouliot [Tue, 30 May 2006 19:01:40 +0000 (19:01 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* FontFamilyTest.cs: New. Unit tests for FontFamily.
* TestFont.cs: Added more test cases to Font.
svn path=/trunk/mcs/; revision=61279
Sebastien Pouliot [Tue, 30 May 2006 18:59:11 +0000 (18:59 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* Font.cs: Change default charset to 1. Ensure we always call the
CheckStatus method after calling GDI+. Added null checks to match MS
exception handling.
* FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
pointers but names. Simplify the Generic* static properties by reusing
the .ctor code. Fixed ToString to match MS output. Removed
GetStyleCheck as it failed when multiple styles were provided (flags).
* gdipFunctions.cs: Convert Status.FontFamilyNotFound to an
ArgumentException.
svn path=/trunk/mcs/; revision=61277
Sebastien Pouliot [Tue, 30 May 2006 18:54:32 +0000 (18:54 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* ImageFormat.cs: Avoid double-cast in Equals method.
svn path=/trunk/mcs/; revision=61276
Sebastien Pouliot [Tue, 30 May 2006 18:53:38 +0000 (18:53 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* FontCollection.cs: Avoid calling GdipGetFontCollectionFamilyList
when GdipGetFontCollectionFamilyCount returns a count of 0 items.
svn path=/trunk/mcs/; revision=61275
Miguel de Icaza [Tue, 30 May 2006 18:51:30 +0000 (18:51 -0000)]
Update with notes from gc-variables-in-c
svn path=/trunk/mono/; revision=61274
Sebastien Pouliot [Tue, 30 May 2006 17:57:47 +0000 (17:57 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* AsymmetricKeyExchangeDeformatter.cs: Under 2.0 the ctor is
protected.
* AsymmetricKeyExchangeFormatter.cs: Under 2.0 the ctor is protected.
* AsymmetricSignatureDeformatter.cs: Under 2.0 the ctor is protected.
* AsymmetricSignatureFormatter.cs: Under 2.0 the ctor is protected.
* DES.cs: Under 2.0 the ctor is protected.
* HashAlgorithm.cs: Under 2.0 the HashValue field is protected
internal.
* RandomNumberGenerator.cs: Under 2.0 the ctor is protected.
* RC2.cs: Under 2.0 the ctor is protected.
* Rijndael.cs: Under 2.0 the ctor is protected.
* RSA.cs: Under 2.0 the ctor is protected.
* SHA256.cs: Under 2.0 the ctor is protected.
* SHA384.cs: Under 2.0 the ctor is protected.
* SHA512.cs: Under 2.0 the ctor is protected.
* SymmetricAlgorithm.cs: Under 2.0 the ctor is protected.
* TripleDES.cs: Under 2.0 the ctor is protected.
svn path=/trunk/mcs/; revision=61270
Mike Kestner [Tue, 30 May 2006 16:47:15 +0000 (16:47 -0000)]
2006-05-30 Mike Kestner <mkestner@novell.com>
* ListView.cs: allow reexpansion of zero-width column headers.
Fixes #78528.
svn path=/trunk/mcs/; revision=61267
Zoltan Varga [Tue, 30 May 2006 16:43:30 +0000 (16:43 -0000)]
2006-05-30 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Use mono_mb_emit_stloc in more places. Use CEE_LDIND_REF and
CEE_STIND_REF when working with object references.
svn path=/trunk/mono/; revision=61266
Zoltan Varga [Tue, 30 May 2006 16:42:13 +0000 (16:42 -0000)]
2006-05-30 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Use mono_mb_emit_stloc in more places. Use CEE_LDIND_REF and
CEE_STIND_REF when working with object references.
svn path=/trunk/mono/; revision=61265
Sebastien Pouliot [Tue, 30 May 2006 15:58:34 +0000 (15:58 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* CodeAccessSecurityAttribute.cs: Under 2.0 the ctor is protected.
* IsolatedStoragePermissionAttribute.cs: Under 2.0 the ctor is
protected.
* IsolatedStoragePermission.cs: Under 2.0 the ctor is protected.
* SecurityAttribute.cs: Under 2.0 the ctor is protected.
svn path=/trunk/mcs/; revision=61264
Sebastien Pouliot [Tue, 30 May 2006 15:56:12 +0000 (15:56 -0000)]
2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
* CodeGroup.cs: Under 2.0 the ctor is protected (not public).
svn path=/trunk/mcs/; revision=61263
Martin Baulig [Tue, 30 May 2006 15:43:16 +0000 (15:43 -0000)]
2006-05-30 Martin Baulig <martin@ximian.com>
* mono-debug.c (mono_debug_print_stack_frame): Reverted the
mono_method_full_name() change and replace the ':' with a '.'
here.
svn path=/trunk/mono/; revision=61262
Massimiliano Mantione [Tue, 30 May 2006 14:13:20 +0000 (14:13 -0000)]
* aliasing.c: Fixed bug 78311.
svn path=/trunk/mono/; revision=61260
Martin Baulig [Tue, 30 May 2006 14:08:24 +0000 (14:08 -0000)]
2006-05-30 Martin Baulig <martin@ximian.com>
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Fix the algorithm:
when looking up B which is between A and C, return A not C.
svn path=/trunk/mono/; revision=61259
Raja R Harinath [Tue, 30 May 2006 11:31:18 +0000 (11:31 -0000)]
Add NET_2_0 guard.
svn path=/trunk/mcs/; revision=61258
Gert Driesen [Tue, 30 May 2006 10:06:47 +0000 (10:06 -0000)]
* ConfigurationException.cs: BareMessage, Filename and Line properties
are only virtual on 2.0 profile.
* ConfigurationSettings.cs: Marked GetConfig (string) obsolete on
2.0 profile.
svn path=/trunk/mcs/; revision=61256
Gert Driesen [Tue, 30 May 2006 10:02:48 +0000 (10:02 -0000)]
* NetworkStream.cs: Marked Dispose (bool) virtual on 1.x profile.
svn path=/trunk/mcs/; revision=61255
Gert Driesen [Tue, 30 May 2006 10:01:00 +0000 (10:01 -0000)]
* CaptureCollection.cs: Removed virtual keyword to fix API mismatches.
* MatchCollection.cs: Removed virtual keyword to fix API mismatches.
* GroupCollection.cs: Removed virtual keyword to fix API mismatches.
svn path=/trunk/mcs/; revision=61254
Paolo Molaro [Tue, 30 May 2006 09:31:24 +0000 (09:31 -0000)]
Precise GC doc updates.
svn path=/trunk/mono/; revision=61253
Gert Driesen [Tue, 30 May 2006 09:29:36 +0000 (09:29 -0000)]
* ErrorLevel.cs: Removed extra Serializable attribute in 2.0 profile.
svn path=/trunk/mcs/; revision=61252
Gert Driesen [Tue, 30 May 2006 09:25:39 +0000 (09:25 -0000)]
* Char.cs: Removed duplicate (explicit) interface implementation.
* String.cs: Removed duplicate (explicit) interface implemenation.
* MulticastDelegate.cs: Fixed API mismatches.
svn path=/trunk/mcs/; revision=61251
Gert Driesen [Tue, 30 May 2006 09:02:37 +0000 (09:02 -0000)]
* ASCIIEncoding.cs: Marked class ComVisible (true) on 2.0 profile.
Marked 2.0-only members as ComVisible (false).
* Decoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* Encoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* Encoding.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* NormalizationForm.cs: Marked ComVisible (true).
* StringBuilder.cs: Marked class ComVisible (true) on 2.0 profile.
Marked 2.0-only methods as ComVisible (false).
* UnicodeEncoding.cs: GetString (byte[], int, int) is only available
in 2.0 profile. Marked 2.0-only methods ComVisible (false). Added
missing ctor in 2.0 profile, and marked in MonoTODO.
* UTF7Encoding.cs: Marked class ComVisible (true) on 2.0 profile.
* UTF8Encoding.cs: Marked 2.0-only methods as ComVisible (false).
svn path=/trunk/mcs/; revision=61250
Miguel de Icaza [Mon, 29 May 2006 22:09:55 +0000 (22:09 -0000)]
update
svn path=/trunk/mono/; revision=61249
Miguel de Icaza [Mon, 29 May 2006 22:09:44 +0000 (22:09 -0000)]
update
svn path=/trunk/mono/; revision=61248
Miguel de Icaza [Mon, 29 May 2006 19:16:09 +0000 (19:16 -0000)]
Small compilation fix, include config.h before testing for configuration defines
svn path=/trunk/mono/; revision=61245
Paolo Molaro [Mon, 29 May 2006 16:54:31 +0000 (16:54 -0000)]
Enable sgen GC selection.
svn path=/trunk/mono/; revision=61240
Paolo Molaro [Mon, 29 May 2006 16:51:05 +0000 (16:51 -0000)]
Mon May 29 18:49:47 CEST 2006 Paolo Molaro <lupus@ximian.com>
* String.cs: make sure that the chars truncated by a stringbuilder
are zeroed.
svn path=/trunk/mcs/; revision=61239
Sebastien Pouliot [Mon, 29 May 2006 15:20:24 +0000 (15:20 -0000)]
2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
* TestImageFormat.cs: Added test cases for Equals and GetHashCode.
svn path=/trunk/mcs/; revision=61236
Sebastien Pouliot [Mon, 29 May 2006 15:19:32 +0000 (15:19 -0000)]
2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
* TestImageFormatConverter.cs: Added test cases for all well known
ImageFormat short and long names using ConvertFrom.
svn path=/trunk/mcs/; revision=61235
Sebastien Pouliot [Mon, 29 May 2006 15:18:19 +0000 (15:18 -0000)]
2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
* ImageFormatConverter.cs: Changed ConvertFrom to work with both short
(e.g. Bmp) and long (e.g. guid) names.
svn path=/trunk/mcs/; revision=61234
Martin Baulig [Mon, 29 May 2006 14:51:56 +0000 (14:51 -0000)]
2006-05-29 Martin Baulig <martin@ximian.com>
* Exception.cs
(Exception.StackTrace): Use the new stack trace format which is
very similar to the one of MS.NET - method name goes first,
file / line number last and in the method name, we separate class
and method name by `.'.
* Environment.cs
(Environment.StackTrace): Enable line-number information.
svn path=/trunk/mcs/; revision=61231
Martin Baulig [Mon, 29 May 2006 14:51:41 +0000 (14:51 -0000)]
2006-05-29 Martin Baulig <martin@ximian.com>
* mini-exceptions.c (mono_find_jit_info): When computing the
native offset, check whether we're actually inside the method's
code; call mono_debug_print_stack_frame() to format the frame.
(ves_icall_System_Exception_get_trace): Call
mono_debug_print_stack_frame() to format the stack frame.
(ves_icall_get_trace): Update to the new debugging API.
(mono_jit_walk_stack_from_ctx): Likewise.
(ves_icall_get_frame_info): Likewise.
* mini.c (get_method_from_ip): Use the new debugging API.
(mono_print_method_from_ip): Likewise.
* exceptions-ppc.c
(mono_jit_walk_stack): Use the new debugging API.
(ves_icall_get_frame_info): Likewise.
svn path=/trunk/mono/; revision=61230
Martin Baulig [Mon, 29 May 2006 14:51:16 +0000 (14:51 -0000)]
2006-05-29 Martin Baulig <martin@ximian.com>
* mono-debug.h
(MonoDebugMethodInfo): Make the typedef public.
(MonoDebugSourceLocation): New public struct.
* mono-debug.c
(mono_debug_source_location_from_address): Removed.
(mono_debug_source_location_from_il_offset): Removed.
(mono_debug_il_offset_from_address): Removed.
(mono_debug_address_from_il_offset): Removed.
(mono_debug_lookup_method): New public function.
(mono_debug_lookup_source_location): New public function; replaces
the old mono_debug_source_location_from_*() functions; see the
inline documentation.
(mono_debug_free_source_location): New public function.
(mono_debug_print_stack_frame): New public function; see the
inline documentation.
* debug-mono-symfile.c
(mono_debug_find_source_location): Renamed into
mono_debug_symfile_lookup_location(); only take a
`MonoDebugMethodInfo *' and an `offset' argument; added inline
documentation.
(mono_debug_find_method): Renamed into
mono_debug_symfile_lookup_method().
* debug-helpers.c (mono_method_full_name): Use `.' instead of `:'
to separate the class name from the method name.
svn path=/trunk/mono/; revision=61229
Raja R Harinath [Mon, 29 May 2006 10:22:57 +0000 (10:22 -0000)]
* skeleton.cs: Implement a better translation for named-loop continues.
Remove "unreachable code" warnings in the generated code.
svn path=/trunk/mcs/; revision=61223
Raja R Harinath [Mon, 29 May 2006 08:54:23 +0000 (08:54 -0000)]
Fix cs0231-[34].cs.
* mcs/cs-parser.jay (formal_parameter_list): Extend the pattern below
to param arguments too.
* gmcs/cs-parser.jay: Likewise.
svn path=/trunk/mcs/; revision=61222
Gert Driesen [Mon, 29 May 2006 08:51:22 +0000 (08:51 -0000)]
* XsltContext.cs: Ctors are public in .NET 1.1. Fixes warnings in class status
page. Set eol-style to CRLF.
svn path=/trunk/mcs/; revision=61221
Chris Toshok [Sun, 28 May 2006 22:01:18 +0000 (22:01 -0000)]
2006-05-28 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs (get_Current): after the late binding
listposition = -1 fix, we need to guard against it here and return
null, otherwise we raise an exception (which is swallowed
elsewhere, and breaks datagrid databinding.)
svn path=/trunk/mcs/; revision=61218
Gert Driesen [Sun, 28 May 2006 20:37:08 +0000 (20:37 -0000)]
* MethodInfoTest.cs: No longer derive from (deprecated) Assertion.
Number individual asserts. Marked ByrefVtypeInvoke as NotDotNet for
NET_1_1 profile, due to bug in MS.NET 1.1.
svn path=/trunk/mcs/; revision=61217
Gert Driesen [Sun, 28 May 2006 19:56:35 +0000 (19:56 -0000)]
* MethodInfoTest.cs: GetMethodBody no longer throws ArgumentException for
methods that have no IL body. Part of fix for bug #78522.
* MethodBase.bs: GetMethodBody should not throw ArgumentException for a method
with no IL body. Fixes bug #78522.
svn path=/trunk/mcs/; revision=61216
Miguel de Icaza [Sun, 28 May 2006 17:17:26 +0000 (17:17 -0000)]
Assembly docs
svn path=/trunk/mono/; revision=61215
Miguel de Icaza [Sun, 28 May 2006 17:16:50 +0000 (17:16 -0000)]
Cleanup the Assembly docs
svn path=/trunk/mono/; revision=61213
Zoltan Varga [Sun, 28 May 2006 17:11:09 +0000 (17:11 -0000)]
2006-05-28 Zoltan Varga <vargaz@gmail.com>
* declsec.c (dump_declsec_entry20): Fix a warning.
svn path=/trunk/mono/; revision=61212
Andrew Skiba [Sun, 28 May 2006 14:44:59 +0000 (14:44 -0000)]
rename methods to make nunit quiet
svn path=/trunk/mcs/; revision=61211
Gert Driesen [Sun, 28 May 2006 14:23:09 +0000 (14:23 -0000)]
* AssemblyTest.cs: Added tests for bug #78517.
svn path=/trunk/mcs/; revision=61210
Yoni Klain [Sun, 28 May 2006 14:11:32 +0000 (14:11 -0000)]
svn path=/trunk/mcs/; revision=61209
Yoni Klain [Sun, 28 May 2006 13:04:45 +0000 (13:04 -0000)]
svn path=/trunk/mcs/; revision=61208
Yoni Klain [Sun, 28 May 2006 13:04:26 +0000 (13:04 -0000)]
svn path=/trunk/mcs/; revision=61207
Andrew Skiba [Sun, 28 May 2006 12:46:08 +0000 (12:46 -0000)]
nunitweb framework works on mono
svn path=/trunk/mcs/; revision=61206
Gert Driesen [Sun, 28 May 2006 12:31:41 +0000 (12:31 -0000)]
* UnixRegistryApi.cs: GetSubKeyNames returns only names of subkeys, not the
qualified names. Fixes bug #78519.
* RegistryKeyTest.cs: Added test for bug #78519.
svn path=/trunk/mcs/; revision=61205
Andrew Skiba [Sun, 28 May 2006 11:06:06 +0000 (11:06 -0000)]
workaround for bug #78521
svn path=/trunk/mcs/; revision=61204
Andrew Skiba [Sun, 28 May 2006 09:12:46 +0000 (09:12 -0000)]
use new delegates
svn path=/trunk/mcs/; revision=61203
Andrew Skiba [Sun, 28 May 2006 09:04:00 +0000 (09:04 -0000)]
add ThemeTest.cs with new tests for themes
svn path=/trunk/mcs/; revision=61202
Andrew Skiba [Sun, 28 May 2006 08:56:57 +0000 (08:56 -0000)]
remove unneeded using
svn path=/trunk/mcs/; revision=61201
Andrew Skiba [Sun, 28 May 2006 08:54:18 +0000 (08:54 -0000)]
add PageDelegate structure for passing delegates between appdomains
svn path=/trunk/mcs/; revision=61200
Andrew Skiba [Sun, 28 May 2006 08:44:55 +0000 (08:44 -0000)]
make MyPage.aspx.cs generic, providing callbacks for all sys.web.ui.Page events
svn path=/trunk/mcs/; revision=61199
Zoltan Varga [Sat, 27 May 2006 20:55:14 +0000 (20:55 -0000)]
2006-05-27 Zoltan Varga <vargaz@gmail.com>
* assembly.c (mono_assembly_open_full): Dont overwrite the status
returned by mono_image_open_full ().
* appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Convert
MONO_IMAGE_IMAGE_INVALID into a BadImageFormatException. Fixes
#78517.
svn path=/trunk/mono/; revision=61196
Zoltan Varga [Sat, 27 May 2006 20:35:07 +0000 (20:35 -0000)]
2006-05-27 Zoltan Varga <vargaz@gmail.com>
* object.c (compute_class_bitmap): Use class->class_size for static fields. Fixes
#78518.
svn path=/trunk/mono/; revision=61194
Miguel de Icaza [Sat, 27 May 2006 17:09:22 +0000 (17:09 -0000)]
2006-05-27 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_from_typeref): handle missing images
earlier, deals with bug #78418. Refactor code;
Fix a warning introduced in my previous commit (some stale code
from before I revisited my patch).
svn path=/trunk/mono/; revision=61193
Miguel de Icaza [Sat, 27 May 2006 16:44:07 +0000 (16:44 -0000)]
This is a patch to fix *some* loader issues; As Zoltan pointed out
on bug 76661, this is not a complete bug fix as there are many code
paths that must be looked after, but I did not want to blindly go making
changes everywhere in the runtime.
Instead this patch is only the beginning for adding error handling
for loader errors and so far it covers the reported errors on bug 76661
(I covered them all) and some extra errors that I manually created (as
IL files).
2006-05-27 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_create_from_typedef): On failure, remove the
class from the MonoImage->class_cache as the class is not
initialized; Fixes the leak pointed out by Paolo.
2006-05-17 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_get_exception_for_failure): Implement parts
of a TODO: if the loader error is set (instead of the class
error), we return a Loader exception that can be properly thrown
elsewhere.
This was exposed by some Winforms 2.0 code that I tried to run
(Atsushi pointed me to it).
2006-05-11 Miguel de Icaza <miguel@novell.com>
* loader.c (method_from_memberref): Do not pass the NULL klass to
mono_loader_set_error_() methods. Pass the non-NULL value
(class).
2006-05-09 Miguel de Icaza <miguel@novell.com>
* object.c (mono_load_remote_field): The code used to provide a
temporary variable for returning results if the user did not
provide a result pointer. But our temporary variable was allocted
on the satck.
Fix calling code to always pass a result area. Coverity ID 103.
2006-04-28 Miguel de Icaza <miguel@novell.com>
Work to catch the crash from #76795 and turn it into an
exception. As I stubbed out pieces of the VisualBasic support,
I found a number of places where the code was failing and I added
checks to those places.
* metadata.c (do_mono_metadata_parse_generic_class): Make this
function return a status code. If we fail to parse the signature
from mono_metadata_parse_generic_inst, return FALSE.
* loader.c (mono_get_method_from_token): If we fail to load the
method (mono_class_get) return NULL.
* (method_from_memberref): Return NULL if we are unable to parse
the method signature
(mono_loader_error_prepare_exception): Since we now use the
loader_error flag internally to stop processing, and obtaining
exceptions that might be thrown will walk this code path the
proper way of going from a MonoLoaderError into a
MonoException was convoluted. This new routine encapsulates the
process of turning the error into an exception and *clearing* the
error afterwards.
2006-04-27 Miguel de Icaza <miguel@novell.com>
Work to catch the crashes from 75075 (cope in Assembly.GetTypes
with missing assemblies), and to cope with:
* Missing fieldref from a non-existing assembly.
* Missing methodref from a non-existing assembly.
The first batch of work to address *some* of the issues from 76661.
* object.c (mono_class_create_runtime_vtable): If we fail to
initialize the class raise the exception here.
* metadata.c (mono_class_get_overrides_full): If any methods fail
to load return the failure to the caller.
* assembly.c: Use REFERENCE_MISSING instead of (gpointer) -1 for
flagging assemblies that failed to load.
Do not crash if we are unable to load the assembly.
(mono_assembly_close): Do nothing with REFERENCE_MISSING
assemblies.
* loader.c (mono_loader_set_error_type_load): Change the
convention to always pass unallocated strings, so we make our own
copies (I know our own code had duplicated strings before, but
this keeps the normal conventions).
(method_from_memberref): Call mono_loader_set_error_method_load
for all possible failures of loading the class.
Remove assert, turn into a loader error.
(mono_loader_error_to_exception): Move this routine from mini
(mini_loader_error_to_exception) there was no need to have that in
mini.
* class.c (mono_class_from_typeref): If we were not able to load
the assembly with mono_assembly_load_reference, call the
mono_loader_set_error_type_load to register the problem.
(mono_class_setup_fields): If we fail to load the type from
mono_metadata_parse_type_full, call mono_class_set_failure and
break from the loop.
If class->exception_type is set, we do not layout the fields as
that might crash the runtime, and instead return (from breaking
from the previous loop).
(mono_class_setup_vtable): This now returns a boolean indicating
whether the table was properly setup. The decision is driven by
mono_class_get_overrides_full which might run into non-existing
methods.
(mono_class_init): Returns TRUE on success or FALSE if there was a
problem in loading the type (incorrect assemblies, missing
assemblies, methods, etc).
When we call mono_class_setup_fields we also check for a potential
error inside this call (either a class exception or a general
loader exception).
(mono_class_create_from_typedef): If the parent fails to load
(calling mono_class_get_full) return NULL.
** Important **
calls to mono_metadata_parse_type_full should be checked
everywhere and set the mono_class_set_failure
(MONO_EXCEPTION_TYPE_LOAD) if we are not able to get the type.
The current patch checks the places where my manually constructed
tests show the errors are showing up, but we should do it
everywhere.
** Important2 **
mono_class_init return values should be tested everywhere, like
the previous case this is something that we should audit
everywhere and not only on the cases exposed by the tests I
created.
2006-04-28 Miguel de Icaza <miguel@novell.com>
* mini.c (mono_jit_compile_method_inner):
Use mono_prepare_exception_from_error
that resets the value internally.
2006-04-27 Miguel de Icaza <miguel@novell.com>
* mini.c: Move the mini_loader_error_to_exception to metadata.
svn path=/trunk/mono/; revision=61191
Marek Sieradzki [Sat, 27 May 2006 13:21:18 +0000 (13:21 -0000)]
2006-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* Utilities.cs: Implemented Escape ().
* BuildItem.cs: Added null checks.
* BuildPropertyGroup.cs, BuildProperty.cs: Moved FromXml property.
* Project.cs: Commented out redundant Evaluate ().
* BuildChoose.cs: Minor changes.
svn path=/trunk/mcs/; revision=61189
Marek Sieradzki [Sat, 27 May 2006 13:17:23 +0000 (13:17 -0000)]
I forgot about this file.
svn path=/trunk/mcs/; revision=61188
Marek Sieradzki [Sat, 27 May 2006 13:16:26 +0000 (13:16 -0000)]
2006-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemTest.cs: Swapped expected with actual results.
* UtilitiesTest.cs: Added.
svn path=/trunk/mcs/; revision=61187
Marek Sieradzki [Sat, 27 May 2006 13:12:45 +0000 (13:12 -0000)]
2005-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* CommandLineBuilder.cs: Corrected IsQuotingRequired ().
* TaskLoggingHelper.cs: Added null check.
svn path=/trunk/mcs/; revision=61186
Marek Sieradzki [Sat, 27 May 2006 11:20:02 +0000 (11:20 -0000)]
Moved and updated VS2005 solution.
svn path=/trunk/mcs/; revision=61185
Zoltan Varga [Sat, 27 May 2006 01:55:33 +0000 (01:55 -0000)]
2006-05-27 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
svn path=/trunk/mono/; revision=61184
Miguel de Icaza [Fri, 26 May 2006 22:46:30 +0000 (22:46 -0000)]
Oops, accidentally commited part of my TypeLoaderException patch, revert
svn path=/trunk/mono/; revision=61183
Miguel de Icaza [Fri, 26 May 2006 22:33:35 +0000 (22:33 -0000)]
Enable inline optimizations again
svn path=/trunk/mono/; revision=61181
Jackson Harper [Fri, 26 May 2006 21:46:13 +0000 (21:46 -0000)]
* KeyboardLayouts.cs: Eliminate some dead code.
- Lazy init things
* X11Keyboard.cs: Lazy init keyboard detection.
- Cleanup access modifiers a little.
svn path=/trunk/mcs/; revision=61180
Peter Dennis Bartok [Fri, 26 May 2006 21:31:50 +0000 (21:31 -0000)]
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
than WM_SYSKEY, don't throw if get something unexpected (#78507)
svn path=/trunk/mcs/; revision=61179
Miguel de Icaza [Fri, 26 May 2006 20:54:52 +0000 (20:54 -0000)]
2006-05-26 Miguel de Icaza <miguel@novell.com>
* cs-parser.jay: Catch another parsing form for arglist being
followed by other arguments. Fixes #78313.
svn path=/trunk/mcs/; revision=61178
Jackson Harper [Fri, 26 May 2006 20:41:54 +0000 (20:41 -0000)]
* KeyboardLayouts.cs: Eliminate some dead code.
svn path=/trunk/mcs/; revision=61177
Jackson Harper [Fri, 26 May 2006 20:24:33 +0000 (20:24 -0000)]
* ControlPaint.cs:
* ThemeWin32Classic.cs: For color comparisons just use the ARGB
values, it's faster and it's all we care about (we don't care if
the names aren't equal).
svn path=/trunk/mcs/; revision=61176
Peter Dennis Bartok [Fri, 26 May 2006 20:04:31 +0000 (20:04 -0000)]
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Once again, attempting to get layout just right.
svn path=/trunk/mcs/; revision=61175
Jackson Harper [Fri, 26 May 2006 19:51:03 +0000 (19:51 -0000)]
* TreeNodeCollection.cs: If the tree doesn't have a top node
* when
a new node is inserted make the new node the top.
svn path=/trunk/mcs/; revision=61174
Zoltan Varga [Fri, 26 May 2006 19:17:55 +0000 (19:17 -0000)]
2006-05-26 Zoltan Varga <vargaz@gmail.com>
* jit-debug: Fix two other places.
svn path=/trunk/mono/; revision=61173
Zoltan Varga [Fri, 26 May 2006 19:15:35 +0000 (19:15 -0000)]
2006-05-26 Zoltan Varga <vargaz@gmail.com>
* jit-debug: print_method_from_ip -> mono_print_method_from_ip (). Fixes
#78514.
svn path=/trunk/mono/; revision=61172
Peter Dennis Bartok [Fri, 26 May 2006 19:08:56 +0000 (19:08 -0000)]
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
the sizes of each link section, that will result in sizes that
match DrawString's layout (Fixes #78391)
svn path=/trunk/mcs/; revision=61171
Alexander Olk [Fri, 26 May 2006 17:29:14 +0000 (17:29 -0000)]
2006-05-27 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: If AddExtension property is true autocomplete the
extensions in SaveFileDialog correctly. Fixes bug #78453.
Set MyNetwork and MyComputer to "C:\" for windows. This should
fix part 8 of bug #78446 for now.
svn path=/trunk/mcs/; revision=61170
Gonzalo Paniagua Javier [Fri, 26 May 2006 14:18:07 +0000 (14:18 -0000)]
2006-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpApplication.cs: context.Handler does not change for
HttpServerUtility.Execute, so moved setting it into the pipeline instead
of GetHandler.
svn path=/trunk/mcs/; revision=61166