mono.git
16 years ago2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 2 Apr 2008 21:48:22 +0000 (21:48 -0000)]
2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSourceTest.cs: New test for type instances as data sources.

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

16 years ago2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 2 Apr 2008 21:46:30 +0000 (21:46 -0000)]
2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Implement support for Type instances as
DataSource.

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

16 years ago2008-04-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 2 Apr 2008 21:29:36 +0000 (21:29 -0000)]
2008-04-02  Marek Habersack  <mhabersack@novell.com>

* HtmlFormTest.cs: added an indirect test for bug #376352
(HttpRequest.QueryStringRaw internal property) - Mono only.

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

* Page.cs: make SetContext internal (used from tests).

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

16 years ago* statement.cs (TryFinally.need_exc_block): Delete.
Raja R Harinath [Wed, 2 Apr 2008 20:37:13 +0000 (20:37 -0000)]
* statement.cs (TryFinally.need_exc_block): Delete.
(TryFinally): Update to changes.

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

16 years ago2008-04-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 2 Apr 2008 20:16:37 +0000 (20:16 -0000)]
2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Minor cleanups and call CellMouseUp.
* DataGridViewCell.cs: Make some painting routines internally virtual.
* DataGridViewButtonCell.cs: Implement.

2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewButtonCellTest.cs: Add.

2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms_test.dll.sources: Add DataGridViewButtonCellTest.cs.

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

16 years ago2008-04-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Apr 2008 20:01:31 +0000 (20:01 -0000)]
2008-04-02  Atsushi Enomoto <atsushi@ximian.com>

* XsdParticleValidationState.cs : a choice with only empty particle
  children is emptiable. Fixed bug #376395.

* XsdValidatingReaderTests.cs : added test for bug #376395.

* 376395.xml, 376395.xsd : new test files.

* Makefile : extra distfiles (376395.xml, 376395.xsd).

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

16 years agoNow all ExceptionStatements are unconditional
Raja R Harinath [Wed, 2 Apr 2008 19:49:55 +0000 (19:49 -0000)]
Now all ExceptionStatements are unconditional

* statement.cs (CollectionForeach.DisposableWrapper): New.
Extract out the try/finally code into a new wrapper.
(CollectionForeach.Resolve): Use it to simplify the code.

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

16 years agoStart at simplifying ExceptionStatement semantics a bit
Raja R Harinath [Wed, 2 Apr 2008 19:49:11 +0000 (19:49 -0000)]
Start at simplifying ExceptionStatement semantics a bit

* statement.cs (TryCatch, TryFinally): Split 'Try' into two pieces.
* cs-parser.jay (try_statement): Update to changes.
(opt_catch_clauses): Remove.
* flowanalysis.cs: Update to changes.
(FlowBranching.BranchingType.TryCatch): New.
(FlowBranchingTryCatch): New.

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

16 years agoMinor cleanups in flowanalysis.cs
Raja R Harinath [Wed, 2 Apr 2008 19:48:29 +0000 (19:48 -0000)]
Minor cleanups in flowanalysis.cs

* flowanalysis.cs (FlowBranching.BranchingType.SwitchSection): Kill.
(FlowBranching.CreateBranching): Update to changes.
(FlowBranchingBlock.AddSibling): Add sanity check.
* codegen.cs (EmitContext.StartFlowBranching) <Block variant>:
Update to changes.

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

16 years ago* iterators.cs (Iterator.MarkFinally): Remove.
Raja R Harinath [Wed, 2 Apr 2008 19:47:46 +0000 (19:47 -0000)]
* iterators.cs (Iterator.MarkFinally): Remove.
* statement.cs (ExceptionStatement): Update to changes.

This introduces a slight regression into already broken semantics.
This will be fixed properly when the final fix for #324708 is applied.

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

16 years agoAdd support for skipping over finally blocks at runtime. First
Raja R Harinath [Wed, 2 Apr 2008 19:47:07 +0000 (19:47 -0000)]
Add support for skipping over finally blocks at runtime.  First
in a series to fix #324708

* iterators.cs (Iterator.SkipFinally): New LocalBuilder.
(Iterator.EmitMoveNext): Initialize it.
* statement.cs (ExceptionStatement.EmitFinally): Use it to emit a
branch over the body of the 'finally' clause.

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

16 years agoAvoid lopsided use of Foo/DoFoo names
Raja R Harinath [Wed, 2 Apr 2008 19:46:29 +0000 (19:46 -0000)]
Avoid lopsided use of Foo/DoFoo names

* statement.cs (ExpressionStatement.EmitFinallyBody):
Rename from EmitFinally.
(ExpressionStatement.EmitFinally): Rename from DoEmitFinally.
* iterator.cs: Update to changes.

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

16 years ago* String.cs (IndexOfOrdinalUnchecked): Fix crasher.
Raja R Harinath [Wed, 2 Apr 2008 17:53:55 +0000 (17:53 -0000)]
* String.cs (IndexOfOrdinalUnchecked): Fix crasher.

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

16 years ago2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Apr 2008 17:26:39 +0000 (17:26 -0000)]
2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>

* make_type_constraint_test.sh: New test generator for
constraints on generic type arguments.

* make_testS: Added tests using the new generator.

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

16 years ago2008-04-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 2 Apr 2008 17:18:10 +0000 (17:18 -0000)]
2008-04-02  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: make sure QueryStringRaw is always returned with
a leading '?' and that we return something meaningful even if the
url components weren't collected before. Fixes bug #376352

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:11:25 +0000 (17:11 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ProxyAttribute.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:10:51 +0000 (17:10 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ClientSponsor.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:10:19 +0000 (17:10 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IEnumVARIANT.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:09:39 +0000 (17:09 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* _EventInfo.cs
* _FieldInfo.cs
  * _MemberInfo.cs
* _MethodBase.cs
* _MethodInfo.cs
* _PropertyInfo.cs
* _Type.cs
* ArrayWithOffset.cs
* BestFitMappingAttribute.cs
* Marshal.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:07:49 +0000 (17:07 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ReliabilityContractAttribute.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:07:17 +0000 (17:07 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IndexerNameAttribute.cs
* MethodImplAttribute.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:06:33 +0000 (17:06 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IReflect.cs
* MethodInfo.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:05:37 +0000 (17:05 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* SymbolToken.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:04:59 +0000 (17:04 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* DebuggerTypeProxyAttribute.cs
* StackFrame.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:04:10 +0000 (17:04 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ReadOnlyCollection.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:02:20 +0000 (17:02 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* KeyNotFoundException.cs
* KeyValuePair.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:01:36 +0000 (17:01 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ArrayList.cs
* DictionaryBase.cs
* IEqualityComparer.cs
* Queue.cs
* SortedList.cs
* Stack.cs: Fix parameter names

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

16 years agoNew tests, msg updates.
Marek Safar [Wed, 2 Apr 2008 15:28:18 +0000 (15:28 -0000)]
New tests, msg updates.

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

16 years ago2008-04-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 2 Apr 2008 15:27:52 +0000 (15:27 -0000)]
2008-04-02  Marek Safar  <marek.safar@gmail.com>

* ecore.cs, expression.cs, nullable.cs: ConditionalLogicalOperator is now
based on UserOperatorCall. More binary nullable operators clean up.

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

16 years ago2008-04-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 2 Apr 2008 15:06:33 +0000 (15:06 -0000)]
2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: We always need to invalidate our children with
transparent backgrounds when we are invalidated.
[Fixes bug #376081]

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

16 years ago2008-04-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Apr 2008 14:40:32 +0000 (14:40 -0000)]
2008-04-02  Martin Baulig  <martin@ximian.com>

* *.cs: Remove the `#if !DISABLE_TERRANIA_CHANGES' conditionals.

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

16 years ago2008-04-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Apr 2008 14:40:20 +0000 (14:40 -0000)]
2008-04-02  Martin Baulig  <martin@ximian.com>

* symbolwriter.cs: Remove the `#if !DISABLE_TERRANIA_CHANGES' conditionals.

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

16 years agoAdded more tests.
Marek Safar [Wed, 2 Apr 2008 12:02:24 +0000 (12:02 -0000)]
Added more tests.

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

16 years ago2008-04-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 2 Apr 2008 11:55:43 +0000 (11:55 -0000)]
2008-04-02  Marek Safar  <marek.safar@gmail.com>

* nullable.cs: Merge user and empty conversions when lifting expression
trees.

* expression.cs (StringConcat): Implemented expression tree representation.

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

16 years ago2008-04-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Apr 2008 09:23:41 +0000 (09:23 -0000)]
2008-04-02  Atsushi Enomoto <atsushi@ximian.com>

* XPathEditableDocument.cs : it should not expect ParentNode for
  OwnerElement. Fixed bug #376210.

* XPathEditableNavigatorTests.cs : added test for bug #376210.

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 08:32:38 +0000 (08:32 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* StringComparer.cs
* String.cs: Fix parameter names

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

16 years ago2008-04-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Apr 2008 08:23:10 +0000 (08:23 -0000)]
2008-04-02  Atsushi Enomoto <atsushi@ximian.com>

* XPathNavigator.cs : fixed InnerXml to not give up with root node.
  Indent InnerXml. Fixed bug #376191.

* XPathNavigatorTests.cs : added test for bug #376191.

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 07:45:41 +0000 (07:45 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IFormatterConverter.cs
* SerializationException.cs
* StreamingContext.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 07:44:20 +0000 (07:44 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* VerificationException.cs
* SecurityElement.cs
* SecurityContext.cs
* NamedPermissionSet.cs
* HostProtectionException.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 07:43:42 +0000 (07:43 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* CompoundAce.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 07:33:03 +0000 (07:33 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* BinaryFormatter.cs: Fix parameter names

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

16 years ago2008-04-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Apr 2008 06:55:00 +0000 (06:55 -0000)]
2008-04-02  Atsushi Enomoto  <atsushi@ximian.com>

* SortKey.cs : check null arguments. Fixed bug #376171.

* SortKeyTest.cs : new test, for bug #376171.

* corlib_test.dll.sources : added SortKeyTest.cs.

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

16 years ago2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 2 Apr 2008 06:54:22 +0000 (06:54 -0000)]
2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSourceTest.cs: New test for ICancelAddNew support.
* CurrencyManagerTest.cs: Likewise.

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

16 years ago * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
Carlos Alberto Cortez [Wed, 2 Apr 2008 06:49:39 +0000 (06:49 -0000)]
* BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
and CancelCurrentEdit on CurrencyManager respectively. Implement
support for ICancelAddNew too.

2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-04-01 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 2 Apr 2008 02:27:49 +0000 (02:27 -0000)]
2008-04-01  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewTest.cs: Commit the rest of my test so the tests
compile.

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

16 years ago2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 1 Apr 2008 23:48:10 +0000 (23:48 -0000)]
2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
call EndNew/CancelNew if list is ICancelAddNew.

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

16 years ago2008-04-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 1 Apr 2008 22:53:49 +0000 (22:53 -0000)]
2008-04-01  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* Char.cs: Fix parameter names

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

16 years ago2008-04-01 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 1 Apr 2008 22:50:43 +0000 (22:50 -0000)]
2008-04-01  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Guard against an exception while painting
if there are no rows.

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

16 years ago2008-04-01 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 1 Apr 2008 22:26:21 +0000 (22:26 -0000)]
2008-04-01  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Implement a bunch of keyboard commands.

2008-04-01  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewTest.cs: Add tests for IsInputChar and IsInputKey.

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

16 years ago2008-04-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 1 Apr 2008 19:47:06 +0000 (19:47 -0000)]
2008-04-01  Marek Habersack  <mhabersack@novell.com>

* TemplateControl.cs: ParseControl implemented for the 2.0
profile.

* UserControlParser.cs: added support for compiling controls
without input file (e.g. from TemplateControl.ParseControl).

* TemplateParser.cs: implemented VirtualPathProvider support for
registering UserControls.
If there is no input file path provided, auto-generate the class
name in the ClassName property getter.

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

16 years ago2008-04-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 1 Apr 2008 19:42:34 +0000 (19:42 -0000)]
2008-04-01  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* String.cs: Update of String that moves all remaining non-culture-sensitive
  code to managed C# code. Improves performance for most cases and most methods
  allows code-optimizations tools to perform better optimizations by removing the
  internalcalls. Reduces the total number of lines of code used for String.
  Allows code duplication reduction in several other classes and the runtime.

* StringComparer.cs: Remove duplicate code and call relevant String methods.

* StringBuilder.cs: Use the new managed String functions.

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

16 years ago2008-04-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 1 Apr 2008 19:41:36 +0000 (19:41 -0000)]
2008-04-01  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* StringTest.cs: New tests for string to check for several corner-cases
  and parameter errors.

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

16 years agoNew test.
Marek Safar [Tue, 1 Apr 2008 18:45:59 +0000 (18:45 -0000)]
New test.

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

16 years ago2008-04-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 1 Apr 2008 18:45:34 +0000 (18:45 -0000)]
2008-04-01  Marek Safar  <marek.safar@gmail.com>

* nullable.cs: When lifting null literal and a user operator exists, no call
is made.

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

16 years ago2008-04-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 1 Apr 2008 17:33:08 +0000 (17:33 -0000)]
2008-04-01  Marek Habersack  <mhabersack@novell.com>

* SqlParameter.cs: ConvertToFrameworkType must handle empty
strings gracefully - a DBNull.Value must be returned in this
case.

* SqlCommand.cs: DeriveParameters should split the stored
procedure name into the schema name and procedure name before
querying its parameters.

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

16 years agoNew test.
Marek Safar [Tue, 1 Apr 2008 17:24:10 +0000 (17:24 -0000)]
New test.

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

16 years ago2008-04-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 1 Apr 2008 17:23:56 +0000 (17:23 -0000)]
2008-04-01  Marek Safar  <marek.safar@gmail.com>

* nullable.cs, ecore.cs, expression.cs: Convert null arithmetic to lifted
null.

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

16 years ago2008-04-01 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 1 Apr 2008 16:39:15 +0000 (16:39 -0000)]
2008-04-01  Dick Porter  <dick@ximian.com>

* versioninfo.c (get_string_block): Refine the fix for bug 354856
(r93661) so that it also fixes the new part of bug 374600.

2008-04-01  Dick Porter  <dick@ximian.com>

* process.c (process_get_fileversion): If there's no string block,
set the file language to en_US.  Fixes the other new part of bug
374600.

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

16 years ago2008-04-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 1 Apr 2008 16:16:17 +0000 (16:16 -0000)]
2008-04-01  Marek Safar  <marek.safar@gmail.com>

* nullable.cs, expression.cs: Use namespace instead heavily nested
monster abstract class.

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

16 years agoFixed.
Marek Safar [Tue, 1 Apr 2008 16:04:49 +0000 (16:04 -0000)]
Fixed.

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

16 years agoNew test + update.
Marek Safar [Tue, 1 Apr 2008 16:00:51 +0000 (16:00 -0000)]
New test + update.

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

16 years ago2008-04-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 1 Apr 2008 16:00:02 +0000 (16:00 -0000)]
2008-04-01  Marek Safar  <marek.safar@gmail.com>

* ecore.cs, convert.cs, constant.cs, nullable.cs, expression.cs: Implemented
lifting of null literal and user operators. Clean up of some temporary
nullable hacks.

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

16 years ago2008-04-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 1 Apr 2008 15:59:42 +0000 (15:59 -0000)]
2008-04-01  Marek Habersack  <mhabersack@novell.com>

* HttpApplication.cs: set context.Handler to the detected handler
object before firing application events. Fixes bug #372897

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

16 years ago* System.Xml.Serialization/XmlSerializerTestClasses.cs,
Lluis Sanchez [Tue, 1 Apr 2008 14:26:05 +0000 (14:26 -0000)]
* System.Xml.Serialization/XmlSerializerTestClasses.cs,
  System.Xml.Serialization/XmlSerializerTests.cs: Test nullable
  enums.

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

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