mono.git
19 years agoIn mcs:
Raja R Harinath [Fri, 1 Apr 2005 12:54:27 +0000 (12:54 -0000)]
In mcs:
* cs-tokenizer.cs (consume_identifier): Treat 'partial' as a
keyword in 'partial enum' too.
* cs-parser.jay (enum_declaration): Add CS0267 check ('partial enum'
is not allowed).
Report from Kamil Skalski <nazgul@omega.pl>.

Fix #74309.
* rootcontext.cs (ResolveTree): The 'root.Interfaces' list can
have partial containers too.

In tests:
* test-359.cs: New test from #74309.
In errors:
* cs0267.cs: New.  Mentioned in passing in #74309.

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

19 years ago * DataGridTextBoxColumn.cs: fixes signature
Jordi Mas i Hernandez [Fri, 1 Apr 2005 12:52:03 +0000 (12:52 -0000)]
* DataGridTextBoxColumn.cs: fixes signature
* DataGrid.cs: calls right constructor

2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>

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

19 years ago* ecore.cs (SimpleName.SimpleNameResolve): Move 'invariant meaning
Raja R Harinath [Fri, 1 Apr 2005 11:21:39 +0000 (11:21 -0000)]
* ecore.cs (SimpleName.SimpleNameResolve): Move 'invariant meaning
in block' checks to Block.CheckInvariantMeaningInBlock.
* statement.cs (Block.GetKnownVariableInfo): Make private.
(Block.IsVariableUsedInChildBlock): Remove.
(Block.IsVariableUsedInBlock): Likewise.
(Block.CheckInvariantMeaningInBlock): New.  Show location of
conflicting declaration.
(Block.AddVariable): Make error messages less long-winded and more
specific.  Show location of conflicting declaration.
* parameter.cs (Parameters.Location): New readonly property.

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

19 years agoNew test included for code coverage.
Raja R Harinath [Fri, 1 Apr 2005 10:30:04 +0000 (10:30 -0000)]
New test included for code coverage.

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

19 years agoAdd new classes to the build
Jordi Mas i Hernandez [Fri, 1 Apr 2005 08:34:47 +0000 (08:34 -0000)]
Add new classes to the build

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

19 years ago2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Fri, 1 Apr 2005 08:33:30 +0000 (08:33 -0000)]
2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>

* DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
* GridColumnStylesCollection.cs: implements GridColumnStylesCollection
* GridTableStylesCollection.cs: implements GridTableStylesCollection
* DataGridTableStyle.cs: implements DataGridTableStyle
* DataGridBoolColumn.cs: implements DataGridBoolColumn
* DataGridTextBox.cs: implements DataGridTextBox
* DataGridColumnStyle.cs: implements DataGridColumnStyle

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

19 years ago2005-04-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 31 Mar 2005 23:00:01 +0000 (23:00 -0000)]
2005-04-01  Zoltan Varga  <vargaz@freemail.hu>

* exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.

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

19 years ago2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 31 Mar 2005 21:44:57 +0000 (21:44 -0000)]
2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityExceptionCas.cs: Added new tests for GetObjectData.

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

19 years ago* SecurityException.cs: Added try/catch in GetObjectData because the PermissionState...
Sebastien Pouliot [Thu, 31 Mar 2005 21:43:29 +0000 (21:43 -0000)]
* SecurityException.cs: Added try/catch in GetObjectData because the PermissionState property is serialized only if both ControlEvidence and ControlPolicy are granted.

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

19 years ago2005-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 31 Mar 2005 21:39:52 +0000 (21:39 -0000)]
2005-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebRequestTest.cs: added cookie handling test.

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

19 years ago2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 31 Mar 2005 21:39:19 +0000 (21:39 -0000)]
2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>

* FileIOPermissionTest.cs: Added a test case for a filename starting
with the "file://" scheme (which isn't valid).

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

19 years ago2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
Alexander Olk [Thu, 31 Mar 2005 19:20:29 +0000 (19:20 -0000)]
2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>

* FileDialog.cs: Added simple PopupButton class for ButtonPanel

  - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
    returns a path that includes CompanyName, ProductName and
* TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,

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

19 years ago2005-03-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 31 Mar 2005 17:31:55 +0000 (17:31 -0000)]
2005-03-31  Atsushi Enomoto  <atsushi@ximian.com>

* MSXslScriptManager.cs : added TARGET_JVM switch (that does not
  support CodeDom). Use Guid.ToString("N").

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

19 years ago2005-03-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 31 Mar 2005 17:23:38 +0000 (17:23 -0000)]
2005-03-31  Atsushi Enomoto  <atsushi@ximian.com>

* Compiler.cs : removed extraneous using_directive.

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

19 years agoClean up semantics of invoking ResolveMemberAccess.
Raja R Harinath [Thu, 31 Mar 2005 14:40:40 +0000 (14:40 -0000)]
Clean up semantics of invoking ResolveMemberAccess.
* ecore.cs (SimpleName.DoSimpleNameResolve): If a MemberExpression
can have an instance, ensure that we pass in a non-TypeExpression
to ResolveMemberAccess.  Tighten up IdenticalNameAndTypeName checks.
(MemberExpr.DoSimpleNameResolve): Remove type_is_inferred
argument.  Update to changes and simplify.
(FieldExpr.Emitinstance): Remove CS0120 check.
(PropertyExpr.EmitInstance): Likewise.
* expression.cs (Argument.Resolve): Likewise.
(Invocation.DoResolve): Update to changes in semantics of
InstanceExpression.

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

19 years ago2005-03-31 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 31 Mar 2005 14:34:55 +0000 (14:34 -0000)]
2005-03-31  Marek Safar  <marek.safar@seznam.cz>

Fix #74241
* class.cs (AbstractPropertyEventMethod.EmitMethod): Enable emit method
customization.

* decl.cs (MemberCache.AddMethods): Fix infinite loop.

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

19 years agoremove already fixed testcase. The false negative was fixed by the
Raja R Harinath [Thu, 31 Mar 2005 14:25:57 +0000 (14:25 -0000)]
remove already fixed testcase.  The false negative was fixed by the
driver.cs fix.

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

19 years agoFix difference in behaviour with commandline invocation.
Raja R Harinath [Thu, 31 Mar 2005 14:24:25 +0000 (14:24 -0000)]
Fix difference in behaviour with commandline invocation.
* driver.cs (Driver.Reset): New.
(CompilerCallableEntryPoint): Call it.

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

19 years ago2005-03-31 Alp Toker <alp@atoker.com>
Alp Toker [Thu, 31 Mar 2005 14:13:44 +0000 (14:13 -0000)]
2005-03-31  Alp Toker  <alp@atoker.com>

        * GCHandle.cs: Clearer ArgumentException text in the case of a
        null-valued IntPtr argument.

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

19 years ago2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 31 Mar 2005 13:55:21 +0000 (13:55 -0000)]
2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>

* ExceptionTest.cs: Added check for ArgumentNullException on
GetObjectData method.

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

19 years ago2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 31 Mar 2005 13:47:55 +0000 (13:47 -0000)]
2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>
* Exception.cs: Added Assert for TypeInformation to GetObjectData and
ToString methods (not required for 2.0 as TypeInformation will be
deprecated). Added null check for GetObjectData.

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

19 years ago2005-03-31 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 31 Mar 2005 13:47:38 +0000 (13:47 -0000)]
2005-03-31  Zoltan Varga  <vargaz@freemail.hu>

* stack-overflow.cs: New tests, not yet enabled.

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

19 years ago2005-03-31 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 31 Mar 2005 13:46:51 +0000 (13:46 -0000)]
2005-03-31  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c: If sigaltstack support is enabled, perform win32 style
stack touching.

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

19 years ago2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 31 Mar 2005 13:44:03 +0000 (13:44 -0000)]
2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>

* ResourceReaderCas.cs: New. CAS unit tests for ResourceReader.
* ResourceReaderTest.cs: Changed filename to internal so the "normal"
tests case can be reused, with partial trust, by the CAS tests.
* ResourceSetCas.cs: : New. CAS unit tests for ResourceSet.

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

19 years ago2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 31 Mar 2005 13:40:08 +0000 (13:40 -0000)]
2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>

*  ResourceReader.cs, ResourceSet.cs: Added a LinkDemand for
SerializationFormatter when using a Stream constructor (other ctors
have different security - e.g. FileIOPermission for opening a file).

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

19 years ago2005-03-31 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 31 Mar 2005 13:21:26 +0000 (13:21 -0000)]
2005-03-31  Zoltan Varga  <vargaz@freemail.hu>

* mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.

* mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.

* mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.

* mini-x86.h mini-x86.c exceptions-x86.c: Add support for
MONO_ARCH_USE_SIGACTION. Fixes #74252.

* mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.

* mini-x86.c: Fix up stack overflow handling.

* exceptions.cs: Add new regression test.

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

19 years ago* statement.cs (If.Resolve): Avoid spurious "uninitialized
Raja R Harinath [Thu, 31 Mar 2005 10:50:58 +0000 (10:50 -0000)]
* statement.cs (If.Resolve): Avoid spurious "uninitialized
variable" warnings if the boolean expression failed to resolve.

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

19 years agoAdded the new 'test-mbas.pl' scripts and 'test-mbas.make' files to the DISTFILES
Satya Sudha K [Thu, 31 Mar 2005 09:36:08 +0000 (09:36 -0000)]
Added the new 'test-mbas.pl' scripts and 'test-mbas.make' files to the DISTFILES

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

19 years agoTo fix make test failure
Manjula GHM [Thu, 31 Mar 2005 08:47:55 +0000 (08:47 -0000)]
To fix make test failure

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

19 years ago2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 31 Mar 2005 08:40:30 +0000 (08:40 -0000)]
2005-03-30  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializerTests.cs:
* XmlReflectionImporterTests.cs:
* DeserializeTests.cs:
* XmlSerializerTestClasses.cs: Added tests for serialization of choices.

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

19 years ago2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 31 Mar 2005 08:38:38 +0000 (08:38 -0000)]
2005-03-30  Lluis Sanchez Gual  <lluis@novell.com>

* SerializationCodeGenerator.cs:
* XmlSerializationReaderInterpreter.cs: If the element being read is
bound to a choice member, set the corresponding value.
* XmlTypeMapMember.cs: Added helper SetValue method.
* XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
since now stores the enum value.
* XmlReflectionImporter.cs: Properly import choice values.
* XmlTypeMapMemberElement.cs: Added setter for the choice.

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

19 years agoDirectoryEntry.cs :
Boris Kirzner [Thu, 31 Mar 2005 06:19:04 +0000 (06:19 -0000)]
DirectoryEntry.cs :
- Implemented UsePropertyCache.
- Refresh entry after Rename and MoveTo.
- CommitChanges : do not send request to server if no properties changed. Drop new flag after committing newly created entry.
- Disconnect only if connected in Close(). Clean up Dispose().
- Removed unnecessary console output.
PropertyCollection.cs : Hold reference to parent DirectoryEntry.
PropertyValueCollection.cs : Hold reference to parent DirectoryEntry. Call parent's CommitDeferred on collection changes.

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

19 years agoDirectorySearcher.cs :
Boris Kirzner [Thu, 31 Mar 2005 06:16:18 +0000 (06:16 -0000)]
DirectorySearcher.cs :
- Use common TimeSpan object to initialize properties default values.
- DoSearch uses SizeLimit and ServerTimeLimit. Do not throw if sie limit or time limit occurs on the server.
- Construct ADsPath property from resulting entry path.
- Implemented Dispose method.

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

19 years agoFixing a previous checkin
Satya Sudha K [Thu, 31 Mar 2005 04:44:54 +0000 (04:44 -0000)]
Fixing a previous checkin

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

19 years agoSupport declaration of decimal numbers with no digits before point
Manjula GHM [Thu, 31 Mar 2005 03:51:33 +0000 (03:51 -0000)]
Support declaration of decimal numbers with no digits before point

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

19 years ago2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 31 Mar 2005 02:32:49 +0000 (02:32 -0000)]
2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CookieContainer.cs: adding to a CookieCollection might not increment
the number of items if the cookie is replaced. Now Count works properly.
Fixed an array index exception (typo).

* CookieCollection.cs: also compare the version.

* HttpWebResponse.cs: when we have cookies, add them to the request
container.

* HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.

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

19 years ago2005-03-30 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Thu, 31 Mar 2005 01:40:49 +0000 (01:40 -0000)]
2005-03-30  Cesar Lopez Nataren  <cnataren@novell.com>

* TypeOf.cs: take into account Objects.
* ArrayConstructor.cs: Implement CreateInstance.
* LateBinding.cs: Initial implementatio of CallValue and
SetIndexedPropertyValueStatic.
* JSFieldInfo.cs: Implement GetValue and SetValue.
* ArrayObject.cs: Implement length, add three ctrs.
* JScriptException.cs: Add error_number field. Implement
ctr. ErrorNumber, Message and StackTrace.
* ArrayPrototype.cs: Implement join and toString.
* JSObject.cs: Remove the ChainHash, we use a simple hashtable
now, the one inherited from ScriptObject.
* ScriptObject.cs: Add a Hashtable here.

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

19 years ago2005-03-30 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 31 Mar 2005 01:34:40 +0000 (01:34 -0000)]
2005-03-30  Miguel de Icaza  <miguel@novell.com>

* Cookie.cs: Compare using the InvariantCulture, to match the
behavior of CookieContainer that already did this.

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

19 years agoAdd MD2 mapping to machine.config to support old root certificates (like VeriSign)
Sebastien Pouliot [Wed, 30 Mar 2005 23:08:40 +0000 (23:08 -0000)]
Add MD2 mapping to machine.config to support old root certificates (like VeriSign)

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

19 years ago2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 30 Mar 2005 22:54:01 +0000 (22:54 -0000)]
2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStreamTest.cs: Added test case when when no padding is used.

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

19 years ago2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 30 Mar 2005 22:41:45 +0000 (22:41 -0000)]
2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* SymmetricTransform.cs: Fixed a padding bug affecting that can occurs
when no padding is used.

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

19 years ago2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 30 Mar 2005 22:40:44 +0000 (22:40 -0000)]
2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* SymmetricTransform.cs: Fixed a padding bug affecting that can occurs
when no padding is used.

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

19 years ago2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 30 Mar 2005 22:10:17 +0000 (22:10 -0000)]
2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebConnection.cs: we don't need to trigger the next queued request
until the response is closed.

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

19 years ago2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 30 Mar 2005 19:39:46 +0000 (19:39 -0000)]
2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* domain.c: removed g_assert for runtimesecurityframe_class. This is
only used with --security and hides the wrong corlib version error.

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

19 years ago2005-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 30 Mar 2005 19:11:06 +0000 (19:11 -0000)]
2005-03-30  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
mono_jit_thread_attach.

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

19 years ago2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 30 Mar 2005 19:07:50 +0000 (19:07 -0000)]
2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* attribute.cs: Fix the union of several permissions when some of them
are unrestricted (so the result isn't an unrestricted permission set).
Fix #74036.

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

19 years ago2005-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 30 Mar 2005 18:52:18 +0000 (18:52 -0000)]
2005-03-30  Zoltan Varga  <vargaz@freemail.hu>

* TypeTest.cs: Add new tests for bug #73972.

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

19 years ago2005-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 30 Mar 2005 18:51:23 +0000 (18:51 -0000)]
2005-03-30  Zoltan Varga  <vargaz@freemail.hu>

* Binder.cs (check_type): Fix byref support. Fixes #73972.

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

19 years agoupdate
Raja R Harinath [Wed, 30 Mar 2005 18:25:37 +0000 (18:25 -0000)]
update

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

19 years ago2005-03-30 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Wed, 30 Mar 2005 18:11:49 +0000 (18:11 -0000)]
2005-03-30  Geoff Norton  <gnorton@customerdna.com>

        * KeventWatcher.cs: Fix a file handle leak on raised events.

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

19 years ago2005-03-30 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Wed, 30 Mar 2005 15:51:34 +0000 (15:51 -0000)]
2005-03-30  Geoff Norton  <gnorton@customerdna.com>

        * LOADER: Handle names with " " in them.  Thanks to
          Edward J. Sabol (sabol@alderaan.gsfc.nasa.gov)

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

19 years ago2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Wed, 30 Mar 2005 15:41:59 +0000 (15:41 -0000)]
2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>

* Pen.cs: remove locks. They are done at gdiplus level
* Brush.cs: remove locks. They are done at gdiplus level
* Image.cs: remove locks. They are done at gdiplus level

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

19 years ago2005-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 30 Mar 2005 15:33:36 +0000 (15:33 -0000)]
2005-03-30  Zoltan Varga  <vargaz@freemail.hu>

* rules.make (INSTALL_DATA): Pass -c to install.

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

19 years ago2005-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 30 Mar 2005 15:11:37 +0000 (15:11 -0000)]
2005-03-30  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Verify called method is not abstract.

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

19 years ago2005-03-30 Joshua Tauberer <tauberer@for.net>
Joshua Tauberer [Wed, 30 Mar 2005 15:05:37 +0000 (15:05 -0000)]
2005-03-30  Joshua Tauberer  <tauberer@for.net>

    * class.c: Changed mono_class_name_from_token so that types
    outside of a namespace don't have an initial period.  Improved
    the g_warning message used in _mono_class_get when loading
    fails.
    * assembly.c: In mono_assembly_load_reference, when an assembly
    can't be found, "No such file or directory" is misleading and
    unhelpful because a few paths were checked for the presence of
    the assembly.  When that happens (ENOENT), display a nicer
    message indicating the directories that were searched.  In all
    cases, the warning is made easier to read for non-hackers.

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

19 years ago* ecore.cs (MemberExpr): New class. Convert from interface IMemberExpr.
Raja R Harinath [Wed, 30 Mar 2005 14:59:18 +0000 (14:59 -0000)]
* ecore.cs (MemberExpr): New class.  Convert from interface IMemberExpr.
(MemberExpr.ResolveMemberAccess): Refactor and move here from
MemberAccess.ResolveMemberAccess.  Tighten up pre-conditions and error checks.
(MethodGroupExpr, FieldExpr, PropertyExpr, EventExpr): Update.
(MethodGroupExpr.IsExplicitImpl): Remove.
(Expression.GetFieldFromEvent): Remove.
(SimpleName.MemberStaticCheck): Remove.
(SimpleName.DoSimpleNameResolve): Update to changes.
* expression.cs (MemberAccess.ResolveMemberAccess): Refactor.
(MemberAccess.IdenticalNameAndTypeName): Remove.
(MemberAccess.error176): Move to MemberExpr.
(MemberAccess.DoResolve): Update to changes.
(BaseAccess.DoResolve): Likewise.

First in set of patches that sets the stage for a fix for #73834.

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

19 years ago2005-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 30 Mar 2005 13:25:09 +0000 (13:25 -0000)]
2005-03-30  Zoltan Varga  <vargaz@freemail.hu>

* atomic.c (InterlockedIncrement): Fix fallback implementation of
InterlockedIncrement and InterlockedDecrement. Fixes #74228.

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

19 years ago2005-03-30 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 30 Mar 2005 12:51:01 +0000 (12:51 -0000)]
2005-03-30  Marek Safar <marek.safar@seznam.cz>

* cond-attr.cs.cs: Conditional attribute class test.

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

19 years agonew 2.0 test
Marek Safar [Wed, 30 Mar 2005 12:14:32 +0000 (12:14 -0000)]
new 2.0 test

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

19 years ago2005-03-30 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 30 Mar 2005 12:08:48 +0000 (12:08 -0000)]
2005-03-30  Marek Safar  <marek.safar@seznam.cz>

C# 2.0 Conditional attribute class implementation

* attribute.cs (AttributeTester.IsAttributeExcluded): New method.
Analyzes class whether it has attribute which has ConditionalAttribute
and its condition is not defined.

* class.cs (Class.ApplyAttributeBuilder): Add IsAttributeExcluded check.
(Class.IsExcluded): New method. Search for at least one defined
condition in ConditionalAttribute of attribute class.

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

19 years agoSome fixes to 'test-mbas.pl' script
Satya Sudha K [Wed, 30 Mar 2005 11:58:24 +0000 (11:58 -0000)]
Some fixes to 'test-mbas.pl' script

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

19 years ago* ecore.cs (PropertyExpr): Derive from Expression, not ExpressionStatement.
Raja R Harinath [Wed, 30 Mar 2005 08:12:22 +0000 (08:12 -0000)]
* ecore.cs (PropertyExpr): Derive from Expression, not ExpressionStatement.
(PropertyExpr.EmitStatement): Remove.

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

19 years ago2005-03-30 Rogério Pereira Araújo <rogerio.araujo@gmail.com>
Peter Dennis Bartok [Wed, 30 Mar 2005 07:44:12 +0000 (07:44 -0000)]
2005-03-30  Rogério Pereira Araújo <rogerio.araujo@gmail.com>

* Icon.cs: Finished Icon(Type, String) ctor

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

19 years ago2005-03-29 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 30 Mar 2005 02:08:07 +0000 (02:08 -0000)]
2005-03-29  Miguel de Icaza  <miguel@novell.com>

* HttpWebResponse.cs: Handle quotations in the cookies values, per
the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
have quotations.

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

19 years ago2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 29 Mar 2005 23:49:13 +0000 (23:49 -0000)]
2005-03-30  Atsushi Enomoto <atsushi@ximian.com>

* XmlUrlResolver.cs : just return connected Stream instead of fully
  downloaded memory cache. Fix by Konstantin Triger.

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

19 years ago2005-03-29 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 29 Mar 2005 22:10:44 +0000 (22:10 -0000)]
2005-03-29  Peter Bartok  <pbartok@novell.com>
* Application.cs:
  - Properly implemented CompanyName property
  - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
    returns a path that includes CompanyName, ProductName and
    Version (fixes bug #70330)

2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>

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

19 years ago2005-03-18 Stefan Buehler <sbuehler@gmx.ch>
Peter Dennis Bartok [Tue, 29 Mar 2005 21:57:35 +0000 (21:57 -0000)]
2005-03-18  Stefan Buehler  <sbuehler@gmx.ch>

* TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
  fixes bug #72588.

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 29 Mar 2005 21:27:09 +0000 (21:27 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* os_dep.c: Add ability to fall back to mmap-ing memory when sbrk
fails.

* include/private/gcconfig.h: Enable FALLBACK_TO_MMAP on amd64. Fixes
#73882.

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 29 Mar 2005 20:53:12 +0000 (20:53 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
avoid calling constructors using callvirt.

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 29 Mar 2005 20:47:46 +0000 (20:47 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* inssel.brg: Fix #74073.

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

19 years agoAllow compilation using VS.NET
Sebastien Pouliot [Tue, 29 Mar 2005 18:35:21 +0000 (18:35 -0000)]
Allow compilation using VS.NET

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:34:21 +0000 (18:34 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* assembly.c: Set MONO_ASSEMBLIES to NULL when compiling from a VS.NET
project/solution.
* appdomain.h|domain.c: Removed inline from functions.
* appdomain.c: Reduced warnings when compiling on windows.
* icall.c: Fixed output_debug declaration to gunichar2*.
* mono-config.c: Reduced warnings when compiling on windows.
* rand.c: Added missing "windows.h". Added missing return value.
* rawbuffer.c: Added missing winsock2.h for windows.
* sysmath.h: Added mono-compiler.h header to allow/ease
compilation with non-GCC compilers.
* threads.c: Fixed declarations to compile with VS.NET C compiler.
Removed cast warnings.

Adapted from the work of J Lothian (for VC6).

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:25:37 +0000 (18:25 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
* aot.c, mini.h: Added mono-compiler.h header to allow/ease
compilation with non-GCC compilers.
* mini-exceptions.c, mini-x86.c|h: Patches to make compilation of mono
possible using VS.NET. Adapted from the work of J Lothian (for VC6).

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:16:10 +0000 (18:16 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* monograph.c: Add mono-compiler.h header to allow/ease compilation
with non-GCC compilers. Fix default loading of mscorlib.dll.

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:13:42 +0000 (18:13 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* dis-cil.c, dump.c: Add mono-compiler.h header to allow/ease
compilation with non-GCC compilers.

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:11:59 +0000 (18:11 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* gc_wrapper.h: Add required winsock2.h header for compiling with
VS.NET and let the project file defines GC_GCJ_SUPPORT (to avoid
tons of warnings).

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:09:05 +0000 (18:09 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* io-layer.h: Add required header files for compiling with VS.NET.

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

19 years ago2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 29 Mar 2005 18:07:21 +0000 (18:07 -0000)]
2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* mono-compiler.h: Added defines to make it easier to compile mono and
it's unmanaged tools using the Microsoft C compiler (VS.NET 2005).

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

19 years ago2005-03-29 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Tue, 29 Mar 2005 17:55:39 +0000 (17:55 -0000)]
2005-03-29  Cesar Lopez Nataren  <cnataren@novell.com>

* GlobalScope.cs: Set parent and engine in ctr. Return 'this' for
GetDefaultThisObject.
* ScriptObject.cs: Added protected 'parent' field of type
GlobalScope.

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

19 years ago2005-03-29 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Tue, 29 Mar 2005 17:55:01 +0000 (17:55 -0000)]
2005-03-29  Cesar Lopez Nataren  <cnataren@novell.com>

* VsaEngine.cs: Return top of the stack casted to a ScriptObject.

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 29 Mar 2005 16:46:16 +0000 (16:46 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* assembly.c (mono_assembly_load_corlib): Do not try loading corlib
from default_path.

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

19 years agoAccording to RFC 2251 newSuperior should be sent as context-specific 0 type rather...
Boris Kirzner [Tue, 29 Mar 2005 13:27:20 +0000 (13:27 -0000)]
According to RFC 2251 newSuperior should be sent as context-specific 0 type rather than octet string.

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

19 years ago* DirectoryServicesDirectoryEntryTest.cs:
Boris Kirzner [Tue, 29 Mar 2005 13:25:03 +0000 (13:25 -0000)]
* DirectoryServicesDirectoryEntryTest.cs:
- Fixed SetUp method.
- More test cases and test fixes.
* DirectoryServicesDirectorySearcherTest.cs:
- Fixed SetUp method.
- More test cases and test fixes.
* DirectoryServicesSearchResultTest.cs:
- Fixed SetUp method.
- Fixed test case (the filter feature is checked in DirectorySearcherTest).

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

19 years agoFix #74060.
Raja R Harinath [Tue, 29 Mar 2005 12:51:22 +0000 (12:51 -0000)]
Fix #74060.
* expression.cs (MemberAccess.ResolveMemberAccess): Allow the
internal field "value__" of an enum be private.  The examples for
"value__" that I found on MSDN all used FieldAttributes.Private.

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

19 years agoHopefully, third time's the charm.
Raja R Harinath [Tue, 29 Mar 2005 12:38:55 +0000 (12:38 -0000)]
Hopefully, third time's the charm.

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 29 Mar 2005 12:36:14 +0000 (12:36 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* config.guess config.sub ltmain.sh: Update these files with more
up-to-date versions. Fixes #74071.

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

19 years ago* decl.cs (MemberCache.AddMethods): Use C# terminology in warning.
Raja R Harinath [Tue, 29 Mar 2005 12:35:20 +0000 (12:35 -0000)]
* decl.cs (MemberCache.AddMethods): Use C# terminology in warning.
Don't mention IL method attribute names.

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

19 years agoIn mcs:
Raja R Harinath [Tue, 29 Mar 2005 12:27:05 +0000 (12:27 -0000)]
In mcs:
Fix #47991.  Remove a TODO.
* statement.cs (Block.Toplevel): Make into a field.
(Block.Parameters): Move into ToplevelBlock.
(Block.known_variables): Rename from child_variable_names.
(Block.Block): Remove variants that take Parameters.  Initialize
'Toplevel' with the immediately surrounding toplevel block.
(Block.AddKnownVariable): Rename from AddChildVariableName.  Add a
LocalInfo parameter.
(Block.GetKnownVariableInfo): New.
(Block.IsVariableNameUsedInChildBlock): Update.
(Block.IsVariableNameUsedInBlock): New.  Checks if a name is used in
the block, even though it may not be in scope.
(Block.AddVariable): Remove Parameters parameter.  Use
Toplevel.Parameters instead.
(Block.AddConstant): Remove Parameters parameter.
(Block.GetParameterReference): Update to use Toplevel.Parameters.
(Block.IsParamaterReference): Likewise.
(Block.IsLocalParameter): Likewise.  Simplify a lot.
(ToplevelBlock.Parameters): New.  Moved from Block.
(ToplevelBlock.ToplevelBlock): Update to changes.  Always
initialize Parameters to a non-null value.
* cs-parser.jay: Update to changes.
* ecore.cs (SimpleName.SimpleNameResolve): Emit cs0136 error for
simple names that mean different things in the same block.  Use
Block.IsVariableNameUsedInBlock.

In errors:
* cs0136-3.cs, cs0136-4.cs: New tests from #47991.

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

19 years ago2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 29 Mar 2005 11:42:18 +0000 (11:42 -0000)]
2005-03-29  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializerTests.cs:
* DeserializeTests.cs:
* XmlSerializerTestClasses.cs: Added some tests for xml node serialization.

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

19 years ago2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 29 Mar 2005 11:41:57 +0000 (11:41 -0000)]
2005-03-29  Lluis Sanchez Gual  <lluis@novell.com>

* XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
This fixes bug #73901 and should fix #70384.
* XmlSerializationReader.cs: When reading an object element, return
an Object instance if the element has no children. This fixes bug #73974.
* XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
type (it is written as an element with those nodes as children).

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

19 years agoTue Mar 29 11:47:19 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 29 Mar 2005 09:20:57 +0000 (09:20 -0000)]
Tue Mar 29 11:47:19 CEST 2005 Paolo Molaro <lupus@ximian.com>

* Delegate.cs: allow IronPython 0.7 to compile.

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

19 years agoTue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 29 Mar 2005 09:18:15 +0000 (09:18 -0000)]
Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>

* inssel.brg, arrays.cs: fix long stabding 64 bit issue in access to
klass->interface_offsets (will likely fix bug#74073).

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

19 years ago Disallow New Date assignment with types other than date and object type
Manjula GHM [Tue, 29 Mar 2005 07:55:38 +0000 (07:55 -0000)]
 Disallow New Date assignment with types other than date and object type

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

19 years agoTestcases for Array Creation expressions - by Sudharsan V
Satya Sudha K [Tue, 29 Mar 2005 04:15:58 +0000 (04:15 -0000)]
Testcases for Array Creation expressions - by Sudharsan V

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Mar 2005 22:02:09 +0000 (22:02 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.

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

19 years ago2005-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Mar 2005 21:10:26 +0000 (21:10 -0000)]
2005-03-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
to amd64_div_reg_size ().

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

19 years ago2005-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Mar 2005 21:09:11 +0000 (21:09 -0000)]
2005-03-28  Zoltan Varga  <vargaz@freemail.hu>

* amd64/amd64-codegen.h: Avoid emitting a rex in some places.

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

19 years ago* Information.cs(RGB): Change colour ordering, its BGR not RGB
Jambunathan K [Mon, 28 Mar 2005 19:33:34 +0000 (19:33 -0000)]
* Information.cs(RGB): Change colour ordering, its BGR not RGB

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

19 years ago * Mono.Posix_test.dll.sources: Added Test/Mono.Unix/StdioFileStreamTest.cs.
Jonathan Pryor [Mon, 28 Mar 2005 17:28:54 +0000 (17:28 -0000)]
  * Mono.Posix_test.dll.sources: Added Test/Mono.Unix/StdioFileStreamTest.cs.
  * Mono.Unix/UnixConvert.cs: Add ToFopenMode() methods, which convert
    FileMode/FileAccess into an fopen(3) mode string.  ToOpenFlags() should
    throw ArgumentOutOfRangeException for argument violations.
  * Mono.Unix/StdioFileStream.cs: Add constructor overloads accepting filename
    and FileMode/FileAccess overloads; Compatibility fixes with regression tests;
    remove IDisposable implementation since System.IO.Stream already
    implements it (which calls Close() for us).
  * Test/Mono.Unix/StdioFileStreamTest.cs: Added; based on
    MonoTests.System.IO.FileStreamTest.

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

19 years ago * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
Alexander Olk [Mon, 28 Mar 2005 16:46:23 +0000 (16:46 -0000)]
* FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:

  - Added ReadOnly CheckBox
  - Further refactoring: moved some code from Open-/SaveFileDialog
    to FileDialog

2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>

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