mono.git
16 years ago* ProtocolImporter.cs: Use the binding name as class name for the
Lluis Sanchez [Tue, 1 Apr 2008 14:22:17 +0000 (14:22 -0000)]
* ProtocolImporter.cs: Use the binding name as class name for the
  proxy.
* SoapProtocolImporter.cs: Use the element name as field name for soap
  headers. In 2.0, generate a property for accessing the field.

svn path=/trunk/mcs/; revision=99514

16 years ago* TypeData.cs: Prefix with a '@' type names that are equal to keywords.
Lluis Sanchez [Tue, 1 Apr 2008 14:18:44 +0000 (14:18 -0000)]
* TypeData.cs: Prefix with a '@' type names that are equal to keywords.
* XmlSerializationReaderInterpreter.cs,
  XmlSerializationWriterInterpreter.cs: Properly handle nullable enum
  values.
* SerializationCodeGenerator.cs: Properly handle nullable enum values.
  Don't generate read flags for text collectors (avoid var not used
  warning).
* XmlReflectionImporter.cs: Assign the MappedType to text collector
  members. It is needed when the member is an enum.

svn path=/trunk/mcs/; revision=99512

16 years ago2008-04-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 1 Apr 2008 14:12:35 +0000 (14:12 -0000)]
2008-04-01  Ivan N. Zlatev  <contact@i-nz.net>

* ColorEditor.cs: Cache the editor contorl instead of creating
it each time.

svn path=/trunk/mcs/; revision=99511

16 years agoImprove ToString perf of primitive types.
Eyal Alalouf [Tue, 1 Apr 2008 11:37:11 +0000 (11:37 -0000)]
Improve ToString perf of primitive types.

svn path=/trunk/mcs/; revision=99502

16 years agoVS signature update
Marek Safar [Tue, 1 Apr 2008 09:44:52 +0000 (09:44 -0000)]
VS signature update

svn path=/trunk/mcs/; revision=99499

16 years ago2008-03-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 31 Mar 2008 22:22:08 +0000 (22:22 -0000)]
2008-03-31  Miguel de Icaza  <miguel@novell.com>

* serial.c (write_serial): Avoid infinite loops, see #375580.

svn path=/trunk/mono/; revision=99480

16 years ago2008-03-31 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 31 Mar 2008 22:03:33 +0000 (22:03 -0000)]
2008-03-31  Marek Habersack  <mhabersack@novell.com>

* StaticFileHandler.cs: added code to use custom
VirtualPathProvider, if present, to serve files from virtual
storage.

* HttpResponse.cs: added two internal TransmitFile overloads which
take a VirtualFile as a parameter.

2008-04-01  Marek Habersack  <mhabersack@novell.com>

* HostingEnvironment.cs: initialize custom VPP on
registration.
Added an internal boolena property to signal if we're using a
custom VPP or not (HaveCustomVPP)

svn path=/trunk/mcs/; revision=99479

16 years ago2008-03-31 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 31 Mar 2008 20:12:04 +0000 (20:12 -0000)]
2008-03-31  Jonathan Pobst  <monkey@jpobst.com>

* ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
isn't set, don't call OnPaint.  [Fixes bug #375300]

svn path=/trunk/mcs/; revision=99468

16 years ago2008-03-31 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 31 Mar 2008 19:41:05 +0000 (19:41 -0000)]
2008-03-31  Mark Probst  <mark.probst@gmail.com>

* Makefile.am: Re-enabled CoreCLR security tests.  Fixes #362626.

svn path=/trunk/mono/; revision=99464

16 years ago2008-03-31 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 31 Mar 2008 19:20:17 +0000 (19:20 -0000)]
2008-03-31  Mark Probst  <mark.probst@gmail.com>

* MonoMethod.cs: Don't do CAS security checks in Invoke for 2.1
profile.

2008-03-31  Mark Probst  <mark.probst@gmail.com>

* MonoType.cs: Don't do CAS security checks in CheckMethodSecurity
for 2.1 profile.

svn path=/trunk/mcs/; revision=99461

16 years ago* XmlCodeExporterTests.cs: Remove CWL.
Gert Driesen [Mon, 31 Mar 2008 19:05:33 +0000 (19:05 -0000)]
* XmlCodeExporterTests.cs: Remove CWL.

svn path=/trunk/mcs/; revision=99459

16 years ago* XmlDocumentTests.cs: Fixed line endings.
Gert Driesen [Mon, 31 Mar 2008 19:04:17 +0000 (19:04 -0000)]
* XmlDocumentTests.cs: Fixed line endings.
* XmlAttributeCollectionTests.cs: Fixed line endings.
* XmlDocumentEventTests.cs: Fixed line endings.
* XmlNodeTests.cs: Fixed line endings.
* XsdValidatingReaderTests.cs: Fixed line endings.
* XmlDocumentTypeTests.cs: Fixed line endings.
* XmlEntityReferenceTests.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=99458

16 years agoReverting Rev#98474 as it broke couple of test profiles.
Veerapuram Varadhan [Mon, 31 Mar 2008 18:58:04 +0000 (18:58 -0000)]
Reverting Rev#98474 as it broke couple of test profiles.

svn path=/trunk/mcs/; revision=99457

16 years ago* XmlAttributeTests.cs: Use Assert instead of deprecated Assertion
Gert Driesen [Mon, 31 Mar 2008 18:46:09 +0000 (18:46 -0000)]
* XmlAttributeTests.cs: Use Assert instead of deprecated Assertion
class. Improved a few tests. Added link to MS bug report for regression
in .NET 2.0. Numbered tests.

svn path=/trunk/mcs/; revision=99456

16 years ago2008-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 31 Mar 2008 14:18:36 +0000 (14:18 -0000)]
2008-03-31 Rodrigo Kumpera <rkumpera@novell.com>

* AssemblyRunner.cs: Mark TypeLoadException as invalid code.

svn path=/trunk/mono/; revision=99422

16 years ago2008-03-31 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 31 Mar 2008 13:29:27 +0000 (13:29 -0000)]
2008-03-31  Jb Evain  <jbevain@novell.com>

Integrate patches from Dzintars Avots <davots@coverity.com>

* Mono.Cecil/GenericParameter.cs
  Mono.Cecil/TypeDefinition.cs
  Mono.Cecil/DefaultImporter.cs
  Mono.Cecil/MethodDefinition.cs:
Fix generic parameter cloning to avoid issues when
the constraint reference the parameter itself.

svn path=/trunk/mcs/; revision=99419

16 years ago2008-03-31 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 31 Mar 2008 13:04:47 +0000 (13:04 -0000)]
2008-03-31  Jb Evain  <jbevain@novell.com>

Integrate patches from Dzintars Avots <davots@coverity.com>

* Mono.Cecil/MethodBody.cs (Clone): deals with switches.

svn path=/trunk/mcs/; revision=99418

16 years ago2008-03-31 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 31 Mar 2008 12:29:40 +0000 (12:29 -0000)]
2008-03-31  Jb Evain  <jbevain@novell.com>

Integrate patches from Dzintars Avots <davots@coverity.com>

* Mono.Cecil/MethodBody.cs (Clone): clone the name of
the local variables.

svn path=/trunk/mcs/; revision=99415

16 years ago2008-03-31 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 31 Mar 2008 10:03:33 +0000 (10:03 -0000)]
2008-03-31  Marek Habersack  <mhabersack@novell.com>

* AppCodeCompiler.cs: implemented support for AppInitialize (a
static method in any class defined in the App_Code source files),
ran just after the App_Code assemblies are compiled in order to
perform any application initialization actions.

svn path=/trunk/mcs/; revision=99404

16 years ago2008-03-31 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 31 Mar 2008 10:00:47 +0000 (10:00 -0000)]
2008-03-31  Marek Safar  <marek.safar@gmail.com>

* Enumerable.cs: Use Math.Min and Math.Max where appropriate.

svn path=/trunk/mcs/; revision=99403

16 years ago * BindingSourceTest.cs: More event tests and also a new ones for
Carlos Alberto Cortez [Mon, 31 Mar 2008 08:53:53 +0000 (08:53 -0000)]
* BindingSourceTest.cs: More event tests and also a new ones for
RemoveCurrent and IsBindingSuspended properties.

2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=99398

16 years ago * BindingSource.cs: IsBindingSuspended, ResumeBinding and
Carlos Alberto Cortez [Mon, 31 Mar 2008 08:52:09 +0000 (08:52 -0000)]
* BindingSource.cs: IsBindingSuspended, ResumeBinding and
SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
hookup the remaining events related to CurrencyManager, and fire
OnListChanged also for the Clear () method.

2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=99397

16 years ago2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 31 Mar 2008 06:58:35 +0000 (06:58 -0000)]
2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSourceTest.cs: Add tests for ListChanged event, and also new
assertions for Position property. Mark ListChanged_DataSourceSet as
not working, while I try to figure out why setting the DataSource
fires 2 events instead of only one.

svn path=/trunk/mcs/; revision=99390

16 years ago2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 31 Mar 2008 06:55:14 +0000 (06:55 -0000)]
2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Use Current and Position implementations in
CurrencyManager instead of using our own routines, since we need
to be in synch with it. Count should NEVER return a -1 value, and
also report ListChanged events for both simple IList data
sources (manually) as well for IBindingList ones (by hooking up an
event handler for it).

svn path=/trunk/mcs/; revision=99389

16 years agoifdef out DebugContext on net_2_1
Jb Evain [Sun, 30 Mar 2008 19:53:15 +0000 (19:53 -0000)]
ifdef out DebugContext on net_2_1

svn path=/trunk/mcs/; revision=99367

16 years ago2008-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 30 Mar 2008 16:59:04 +0000 (16:59 -0000)]
2008-03-30  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c cpu-x86.md inssel-x86.brg: Add min/max intrinsics.

svn path=/trunk/mono/; revision=99352

16 years ago2008-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 30 Mar 2008 16:10:54 +0000 (16:10 -0000)]
2008-03-30  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of the non-SSE2 floating point
code.

svn path=/trunk/mono/; revision=99347

16 years ago* 82078.xsd: Added new complex type as test for duplicate field
Gert Driesen [Sun, 30 Mar 2008 15:25:11 +0000 (15:25 -0000)]
* 82078.xsd: Added new complex type as test for duplicate field
name.
* MapCodeGenerator.cs: Ensure fields that back properties are unique.
* XmlSerializationReaderTests.cs: Marked HandleOutAttributeParameters
test as NotDotNet on 1.0 profile.
* XmlCodeExporterTests.cs: Improved test for duplicate identifiers.
Fixed ExportTypeMapping_Root and ExportTypeMapping_Field tests to
pass on .NET 2.0.

svn path=/trunk/mcs/; revision=99345

16 years ago2008-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 30 Mar 2008 14:50:00 +0000 (14:50 -0000)]
2008-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil/ReflectionReader.cs:
Avoid creating a BinaryReader+MemoryStream on LE archs for
GetConstant. Saves about 400KB for Gendarme.
Avoid a BinaryReader creation in GetConstant which saves
about 50KB for Gendarme.
* Mono.Cecil.Metadata/GuidHeap.cs:
Compute ideal capacity for Hashtable. Avoid memory allocation
if a single GUID is present (which is the case for all of
Mono 2.0 assemblies). Saves a whole 2KB for Gendarme ;-)
* Mono.Cecil.Binary/Image.cs:
Add internal GetSectionAtVirtualAddress to avoid creating
BinaryReader in some cases.
* Mono.Cecil.Binary/ResourceReader.cs:
Avoid a BinaryReader creation in SetInitialValue which saves
about 3000KB for Gendarme.

svn path=/trunk/mcs/; revision=99338

16 years ago2008-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Sun, 30 Mar 2008 11:40:08 +0000 (11:40 -0000)]
2008-03-30  Jb Evain  <jbevain@novell.com>

* TimeZoneInfo.cs: use generic collections instead of untyped
collections.

svn path=/trunk/mcs/; revision=99331

16 years agoreference System
Jb Evain [Sun, 30 Mar 2008 11:39:20 +0000 (11:39 -0000)]
reference System

svn path=/trunk/mcs/; revision=99330

16 years agoFix Grasshopers test project and add testing script
Roei Erez [Sun, 30 Mar 2008 10:48:22 +0000 (10:48 -0000)]
Fix Grasshopers test project and add testing script

svn path=/trunk/mcs/; revision=99322

16 years agoFix #368224, test-629.cs
Raja R Harinath [Sun, 30 Mar 2008 10:44:24 +0000 (10:44 -0000)]
Fix #368224, test-629.cs

* flowanalysis.cs (FlowBranching.StealFinallyClauses): Return true
if it crossed an unwind-protect boundary.
* iterators.cs (Yield.CheckContext): Relax check for 'yield break'.
(Yield.Resolve, Yield.DoEmit): Track whether the yield occurs
inside an unwind-protected region.
(YieldBreak.Resolve, YieldBreak.DoEmit): Likewise.
(Iterator.MarkYield): Add 'unwind_protect' parameter.  Emit a
'leave' instead of a 'br' if unwind-protected.
(Iterator.EmitYieldBreak): Likewise.

svn path=/trunk/mcs/; revision=99321

16 years agosome changes to Grasshopers project file
Roei Erez [Sun, 30 Mar 2008 10:20:12 +0000 (10:20 -0000)]
some changes to Grasshopers project file

svn path=/trunk/mcs/; revision=99315

16 years agoAdd build file for Grasshoper's build system
Roei Erez [Sun, 30 Mar 2008 09:48:16 +0000 (09:48 -0000)]
Add build file for Grasshoper's build system

svn path=/trunk/mcs/; revision=99314

16 years agosome changes to Grasshopers project file
Roei Erez [Sun, 30 Mar 2008 09:47:22 +0000 (09:47 -0000)]
some changes to Grasshopers project file

svn path=/trunk/mcs/; revision=99313

16 years ago2008-03-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 29 Mar 2008 20:15:08 +0000 (20:15 -0000)]
2008-03-29 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c: New functions mono_method_can_access_field_full and
mono_method_can_access_method_full. They perform type visibility
and type site check.

* class-internal.h: Added exported functions.

* verify.c: Use new functions to implement proper visibility checks.

svn path=/trunk/mono/; revision=99306

16 years agoFix Java compilation
Noam Lampert [Sat, 29 Mar 2008 18:27:49 +0000 (18:27 -0000)]
Fix Java compilation

svn path=/trunk/mcs/; revision=99301

16 years ago2008-03-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 29 Mar 2008 15:39:46 +0000 (15:39 -0000)]
2008-03-29  Zoltan Varga  <vargaz@gmail.com>

* mono-config.h: Add missing G_BEGIN_DECLS/G_END_DECLS. Fixes #375188.

svn path=/trunk/mono/; revision=99291

16 years agonormalize all cases of names
Jb Evain [Sat, 29 Mar 2008 13:01:56 +0000 (13:01 -0000)]
normalize all cases of names

svn path=/trunk/mcs/; revision=99285

16 years ago* FileVersionInfoTest.cs: Enabled tests that previously failed.
Gert Driesen [Sat, 29 Mar 2008 12:39:22 +0000 (12:39 -0000)]
* FileVersionInfoTest.cs: Enabled tests that previously failed.
Increase code coverage.

svn path=/trunk/mcs/; revision=99283

16 years ago* Win32Resources.cs: On 2.0 profile, initialize fixed info to empty
Gert Driesen [Sat, 29 Mar 2008 12:35:53 +0000 (12:35 -0000)]
* Win32Resources.cs: On 2.0 profile, initialize fixed info to empty
string when emitting versioninfo in compiler context. Default to
neutral language in compiler context. On 1.0 profile, use 0xffff as
default value for version parts. In Version, abort on first invalid
version part and also set FileVersion string. In ProductVersion and
FileVersion, parse version string and abort on first invalid version
part.
* AssemblyBuilder.cs: Added enum that determines the type of the
native (version) resource. Added fields for holding the native
resource type and the version culture. The versioninfo_culture was
introduced to hold the original culture of the assembly, since
the AssemblyCultureAttribute should only affect the language of the
versioninfo block when not used in compiler context. Move constructin
of native version info to DefineVersionInfoResourceImpl to allow
attributes to affect the versioninfo after DefineVersionInfoResource
has been invoked. Allow ArgumentException for invalid culture string
to bubble up. In compiler context, use FileVersion as default value
for ProductionVersion.
* AssemblyBuilderTest.cs: Enabled DefineUnmanagedResource and
DefineVersionInfoResource tests for ArgumentException when native
resource is already defined. Added tests for not supported culture
in AssemblyCultureAttribute when definining versioninfo resource.

svn path=/trunk/mcs/; revision=99280

16 years agodriver.cs: Only define versioninfo resources if no win32 resource
Gert Driesen [Sat, 29 Mar 2008 12:34:18 +0000 (12:34 -0000)]
driver.cs: Only define versioninfo resources if no win32 resource
file was specified.

svn path=/trunk/mcs/; revision=99279

16 years ago2008-03-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 29 Mar 2008 04:39:27 +0000 (04:39 -0000)]
2008-03-29  Zoltan Varga  <vargaz@gmail.com>

* mono-logger.h: Move G_END_DECLS outside of an #ifdef. Fixes #375107.

svn path=/trunk/mono/; revision=99269

16 years ago2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 28 Mar 2008 23:07:20 +0000 (23:07 -0000)]
2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Add test for just added members in BindingSource.

svn path=/trunk/mcs/; revision=99258

16 years ago2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 28 Mar 2008 23:05:57 +0000 (23:05 -0000)]
2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Make one .ctor call the another, to avoid
duplicate code. Add the CurrencyManager property, and also for AddNew
throw the proper exceptions and show better error messages.

svn path=/trunk/mcs/; revision=99257

16 years ago2008-03-28 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 28 Mar 2008 22:51:16 +0000 (22:51 -0000)]
2008-03-28  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs: Fix multiple bugs.

svn path=/trunk/mcs/; revision=99253

16 years ago2008-03-28 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 28 Mar 2008 20:59:51 +0000 (20:59 -0000)]
2008-03-28  Ivan N. Zlatev  <contact@i-nz.net>

* IconConverter.cs: Convert null to "(none)".
* TestIconConverter.cs: Add a test.

svn path=/trunk/mcs/; revision=99244

16 years ago2008-03-28 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 28 Mar 2008 20:59:37 +0000 (20:59 -0000)]
2008-03-28  Jb Evain  <jbevain@novell.com>

* Mono.Linker/XApiReader.cs: deal better with complex names.

svn path=/trunk/mcs/; revision=99243

16 years ago2008-03-28 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 28 Mar 2008 20:59:02 +0000 (20:59 -0000)]
2008-03-28  Jb Evain  <jbevain@novell.com>

* Mono.Linker/LinkContext.cs: do not force the loading of
debug symbols if not asked.

svn path=/trunk/mcs/; revision=99242

16 years ago2008-03-28 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 28 Mar 2008 20:58:44 +0000 (20:58 -0000)]
2008-03-28  Ivan N. Zlatev  <contact@i-nz.net>

* CursorConverter.cs: Convert null to "(none)".

svn path=/trunk/mcs/; revision=99241

16 years ago2008-03-28 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 28 Mar 2008 19:34:43 +0000 (19:34 -0000)]
2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Only adjust selectedindex if Handle has been
created.  Fixes failing test.

svn path=/trunk/mcs/; revision=99238

16 years ago2008-03-28 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 28 Mar 2008 19:29:09 +0000 (19:29 -0000)]
2008-03-28  Ivan N. Zlatev  <contact@i-nz.net>

        * TypeDescriptor.cs: Do not return parent type properties, where the child
        has used "new" and also changed the property return type. The problem was that
        Type.GetProperties returns both the child and parent property in this case.
        * TypeDescriptorTests.cs: Add an unit test.
        [Fixes bug #374334]

svn path=/trunk/mcs/; revision=99235

16 years ago2008-03-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 28 Mar 2008 19:12:44 +0000 (19:12 -0000)]
2008-03-28  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFileTest.cs: Add test cases for creating directory
(bug #372377) and also getting delaing with subdirectories.

svn path=/trunk/mcs/; revision=99233

16 years ago2008-03-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 28 Mar 2008 19:11:25 +0000 (19:11 -0000)]
2008-03-28  Sebastien Pouliot  <sebastien@ximian.com>

* DirectoryTest.cs: Add test case when deleting a directory that does
not exists but where a file of the same name exists.

svn path=/trunk/mcs/; revision=99232

16 years ago2008-03-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 28 Mar 2008 19:09:25 +0000 (19:09 -0000)]
2008-03-28  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFile.cs: Don't show the full path on exception if a
directory can't be created (fix bug #354539). Also fix path/patterns when
looking for files (it behave differently than DirectoryInfo does).

svn path=/trunk/mcs/; revision=99231

16 years ago2008-03-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 28 Mar 2008 19:07:33 +0000 (19:07 -0000)]
2008-03-28  Sebastien Pouliot  <sebastien@ximian.com>

* Directory.cs: Exception differs when deleting a directory if it
does not exists or if a file of the same name exists. Also don't
include path in exception if Delete fails.

svn path=/trunk/mcs/; revision=99230

16 years agorevert r99172, which caused couple of XIM failures in test-swf.
Atsushi Eno [Fri, 28 Mar 2008 17:31:51 +0000 (17:31 -0000)]
revert r99172, which caused couple of XIM failures in test-swf.

svn path=/trunk/mcs/; revision=99225

16 years agoDisabled gtest-etree-03.cs
Marek Safar [Fri, 28 Mar 2008 17:20:27 +0000 (17:20 -0000)]
Disabled gtest-etree-03.cs

svn path=/trunk/mcs/; revision=99224

16 years ago2008-03-28 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 28 Mar 2008 17:11:04 +0000 (17:11 -0000)]
2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Adjust selectedindex if we insert a new item
above the current selectedindex in a sorted ComboBox.
[Fixes bug #374654]

2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Add test for bug #374654.

svn path=/trunk/mcs/; revision=99223

16 years ago2008-03-28 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 28 Mar 2008 17:02:09 +0000 (17:02 -0000)]
2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewTextBoxCellTest.cs: Mark 2 of the new tests
as font dependent.

svn path=/trunk/mcs/; revision=99222

16 years ago2008-03-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 28 Mar 2008 16:59:17 +0000 (16:59 -0000)]
2008-03-28  Marek Safar  <marek.safar@gmail.com>

A test for bug #372375

svn path=/trunk/mcs/; revision=99221

16 years ago2008-03-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 28 Mar 2008 16:58:56 +0000 (16:58 -0000)]
2008-03-28  Marek Safar  <marek.safar@gmail.com>

A fix for bug #372375
* convert.cs: Fixed boxing of nullable types.

svn path=/trunk/mcs/; revision=99220

16 years ago2008-03-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 28 Mar 2008 16:47:51 +0000 (16:47 -0000)]
2008-03-28  Marek Safar  <marek.safar@gmail.com>

* Nullable.cs (Box): Do things explicitly and not rely on broken gmcs
behaviour.

svn path=/trunk/mcs/; revision=99219

16 years agoremove langversion:linq as it is the default now
Jb Evain [Fri, 28 Mar 2008 16:24:09 +0000 (16:24 -0000)]
remove langversion:linq as it is the default now

svn path=/trunk/mono/; revision=99215

16 years ago2008-03-28 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 28 Mar 2008 15:46:59 +0000 (15:46 -0000)]
2008-03-28  Dick Porter  <dick@ximian.com>

* processes.c (GetExitCodeProcess): Check if a process has exited
and recorded it's exit code, before seeing if the process is
signalled.  Fixes bug 325463.

svn path=/trunk/mono/; revision=99213

16 years ago2008-03-28 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 28 Mar 2008 15:38:04 +0000 (15:38 -0000)]
2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
[Fixes bug #374712]

svn path=/trunk/mcs/; revision=99212

16 years ago2008-03-28 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 28 Mar 2008 15:03:09 +0000 (15:03 -0000)]
2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewTextBoxCell.cs: Implement stuffs.

2008-03-28  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewTextBoxCellTest.cs: Bunch of new tests.

svn path=/trunk/mcs/; revision=99211

16 years ago2008-03-28 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 28 Mar 2008 14:57:46 +0000 (14:57 -0000)]
2008-03-28  Dick Porter  <dick@ximian.com>

* process.c (process_get_fileversion): Use the first language ID
we see, rather than insisting on an invariant language.  Fixes bug
374600.

svn path=/trunk/mono/; revision=99210

16 years ago2008-03-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 28 Mar 2008 14:24:26 +0000 (14:24 -0000)]
2008-03-28  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs: Initialize InternalsVisibleTo as the very first optional
type.

svn path=/trunk/mcs/; revision=99208

16 years ago2008-03-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 28 Mar 2008 11:57:54 +0000 (11:57 -0000)]
2008-03-28  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (calc_section_size): Use add_stream_zero to align the size of
the streams to fix reading of invalid memory later.

* metadata.h (MonoType): Use 'MonoTypeEnum' instead of int for the 'type' field
to ease debugging.

2008-03-26  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (signature_dup): Use mono_metadata_signature_alloc ().
(cominterop_method_signature): Ditto. Fix the size passed to memcpy.

svn path=/trunk/mono/; revision=99188

16 years agotabs
Jb Evain [Fri, 28 Mar 2008 10:22:37 +0000 (10:22 -0000)]
tabs

svn path=/trunk/mcs/; revision=99175

16 years ago2008-03-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 28 Mar 2008 09:57:41 +0000 (09:57 -0000)]
2008-03-28  Marek Safar  <marek.safar@gmail.com>

A test for bug #374619

svn path=/trunk/mcs/; revision=99174

16 years ago2008-03-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 28 Mar 2008 09:57:09 +0000 (09:57 -0000)]
2008-03-28  Marek Safar  <marek.safar@gmail.com>

A fix for bug #374619
* nullable.cs: Fixed guarding of EmitBitwiseBoolean.

svn path=/trunk/mcs/; revision=99173

16 years ago2008-03-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 28 Mar 2008 09:14:00 +0000 (09:14 -0000)]
2008-03-28  Atsushi Enomoto  <atsushi@ximian.com>

        * X11Structs.cs : added couple of structs for XIM support.
        * X11Keyboard.cs : release XIM in case it failed to create XIC.
          Use consts for XNblah string.
          Add support for IM style customization and (not-yet-working)
          XIC creation for preedit-position and preedit-callback.
          Right now use MONO_WINFORMS_XIM_STYLE environment variable
          (list of: over-the-spot | on-the-spot | root). I'm still
          looking for the reason why those preedit modes don't work.

svn path=/trunk/mcs/; revision=99172

16 years ago2008-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 27 Mar 2008 23:22:04 +0000 (23:22 -0000)]
2008-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataBindingTests.cs: Mark as NotWorking some CurrencyManager tests by
now.

svn path=/trunk/mcs/; revision=99165

16 years agoAlso add this debugging feature
Miguel de Icaza [Thu, 27 Mar 2008 23:00:18 +0000 (23:00 -0000)]
Also add this debugging feature

svn path=/trunk/mcs/; revision=99162

16 years agoMore tests.
Marek Safar [Thu, 27 Mar 2008 21:52:27 +0000 (21:52 -0000)]
More tests.

svn path=/trunk/mcs/; revision=99157

16 years ago2008-03-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 27 Mar 2008 21:52:06 +0000 (21:52 -0000)]
2008-03-27  Marek Safar  <marek.safar@gmail.com>

* lambda.cs: Check return type only for invocation.

svn path=/trunk/mcs/; revision=99156

16 years agosome changes to the project file
Roei Erez [Thu, 27 Mar 2008 21:23:55 +0000 (21:23 -0000)]
some changes to the project file

svn path=/trunk/mcs/; revision=99151

16 years ago* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: Add
Andreia Gaita [Thu, 27 Mar 2008 19:37:02 +0000 (19:37 -0000)]
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: Add
  Initialized property so users can check whether everything loaded
  properly. Abstract the stream behind nice Render methods.
* Mono.Mozilla/AsciiString.cs, Mono.Mozilla/UniString.cs: Add missing
  field to the string container structure. Fix handle getter.
* Mono.Mozilla/Base.cs: Debug helper method change

2008-03-27  Andreia Gaita <avidigal@novell.com>

svn path=/trunk/mcs/; revision=99145

16 years ago2008-03-27 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 27 Mar 2008 16:26:51 +0000 (16:26 -0000)]
2008-03-27  Dick Porter  <dick@ximian.com>

* processes.c (match_procname_to_modulename): Check the whole
process name first, in case it is recorded as an absolute path.
Fixes bug 360348.

svn path=/trunk/mono/; revision=99139

16 years ago2008-03-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 27 Mar 2008 16:06:40 +0000 (16:06 -0000)]
2008-03-27  Jonathan Pobst  <monkey@jpobst.com>

* TreeView.cs: Create the scrollbars even earlier to be
double dog certain they are created before they are accessed.

svn path=/trunk/mcs/; revision=99137

16 years ago2008-03-27 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 27 Mar 2008 16:05:42 +0000 (16:05 -0000)]
2008-03-27  Dick Porter  <dick@ximian.com>

* processes.c (ShellExecuteEx): Grotty kludge to work around
unpleasant feature in g_shell_parse_argv() where it treats '#'
embedded in a filename as a comment marker, and throws away the
rest of the line.  When we're directly opening URLs quote the
filename, to avoid this.  Fixes bug 371567.

svn path=/trunk/mono/; revision=99136

16 years ago2008-03-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 27 Mar 2008 16:05:12 +0000 (16:05 -0000)]
2008-03-27  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIX11.cs: Remove a no-op line that csc was choking on.

svn path=/trunk/mcs/; revision=99135

16 years ago2008-03-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 27 Mar 2008 15:51:37 +0000 (15:51 -0000)]
2008-03-27  Jonathan Pobst  <monkey@jpobst.com>

* ScrollBar.cs: Create an internal safe Value setter so we
won't crash if we try to set a value outside the min and max.
* TextBoxBase.cs: Use safe value setter to guard against a
potential NRE that is being reported by Reflector.

svn path=/trunk/mcs/; revision=99133

16 years agoAdd some TARGET_JVM specific code.
Leonid Freydovich [Thu, 27 Mar 2008 15:44:08 +0000 (15:44 -0000)]
Add some TARGET_JVM specific code.

svn path=/trunk/mcs/; revision=99132

16 years ago2008-03-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 27 Mar 2008 15:22:56 +0000 (15:22 -0000)]
2008-03-27  Jonathan Pobst  <monkey@jpobst.com>

* TreeView.cs: Create the scrollbars earlier in the constructor
to attempt to guard against an NRE in SetTop in Reflector.

svn path=/trunk/mcs/; revision=99129

16 years ago2008-03-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 27 Mar 2008 15:03:02 +0000 (15:03 -0000)]
2008-03-27  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
DataGridViewRowCollection.cs: Do not scroll column and row headers,
show messagebox on data format error, use column display index
correctly, make sure HitTest supports new layout stuff,
make sure scrollbars support new layout stuff.

svn path=/trunk/mcs/; revision=99127

16 years agomono-profiler-oprofile.c: setup_user_options: set default log file name to the name...
Massimiliano Mantione [Thu, 27 Mar 2008 14:58:51 +0000 (14:58 -0000)]
mono-profiler-oprofile.c: setup_user_options: set default log file name to the name of the executed application.

svn path=/trunk/mono/; revision=99126

16 years agoNew test.
Marek Safar [Thu, 27 Mar 2008 14:19:06 +0000 (14:19 -0000)]
New test.

svn path=/trunk/mcs/; revision=99125

16 years ago2008-03-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 27 Mar 2008 14:18:34 +0000 (14:18 -0000)]
2008-03-27  Marek Safar  <marek.safar@gmail.com>

A fix for bug #374214
* ecore.cs: Correctly report argument type mismatch.

svn path=/trunk/mcs/; revision=99124

16 years ago2008-03-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 27 Mar 2008 13:50:26 +0000 (13:50 -0000)]
2008-03-27  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: AssertVirtualPathExists now queries the
VirtualPathProvider for path existence if physical path check
fails, before throwing the 404 exception.

2008-03-27  Marek Habersack  <mhabersack@novell.com>

* DefaultVirtualPathProvider.cs: support relative virtual paths in
all the methods.

* VirtualPathProvider.cs: FileExists should chain to the previous
handler, if present.

2008-03-27  Marek Habersack  <mhabersack@novell.com>

* Page.cs: added an implementation of the ClientQueryString
property.

2008-03-27  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: make UrlComponents internal.

* HttpContext.cs: added support for resource provider factories.

svn path=/trunk/mcs/; revision=99122

16 years ago2008-03-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 27 Mar 2008 13:39:16 +0000 (13:39 -0000)]
2008-03-27  Marek Safar  <marek.safar@gmail.com>

* convert.cs (ImplicitReferenceConversionCore): Correctly compare enum type
and not rely on broken IsEnum.

svn path=/trunk/mcs/; revision=99120

16 years ago2008-03-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 27 Mar 2008 12:45:05 +0000 (12:45 -0000)]
2008-03-27  Marek Safar  <marek.safar@gmail.com>

* nullable.cs: New file, extracted from generic.cs.

* generic.cs, generic-mcs.cs, *.csproj, *.sources: Updated.

svn path=/trunk/mcs/; revision=99118

16 years agoNew tests.
Marek Safar [Thu, 27 Mar 2008 12:33:21 +0000 (12:33 -0000)]
New tests.

svn path=/trunk/mcs/; revision=99117

16 years agoNew tests.
Marek Safar [Thu, 27 Mar 2008 12:31:50 +0000 (12:31 -0000)]
New tests.

svn path=/trunk/mcs/; revision=99116

16 years ago2008-03-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 27 Mar 2008 12:31:33 +0000 (12:31 -0000)]
2008-03-27  Marek Safar  <marek.safar@gmail.com>

* generic.cs, convert.cs, generic-mcs.cs, expression.cs: Added lifting of
predefined comparison operators and null literals.

* report.cs: New warning ID.

svn path=/trunk/mcs/; revision=99115

16 years agoFix previous commit
Kornél Pál [Thu, 27 Mar 2008 10:08:12 +0000 (10:08 -0000)]
Fix previous commit

svn path=/trunk/mcs/; revision=99106

16 years agoEncoding.cs: Fix possible integer overflow in argument validation.
Kornél Pál [Thu, 27 Mar 2008 08:44:58 +0000 (08:44 -0000)]
Encoding.cs: Fix possible integer overflow in argument validation.

svn path=/trunk/mcs/; revision=99097