mono.git
17 years ago<29/05/07 by:yoni yonik@mainsoft.com>
Yoni Klain [Tue, 29 May 2007 14:06:43 +0000 (14:06 -0000)]
<29/05/07 by:yoni  yonik@mainsoft.com>
add not working category to failed tests

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

17 years ago<29/05/07 by:yoni yonik@mainsoft.com>
Yoni Klain [Tue, 29 May 2007 13:40:09 +0000 (13:40 -0000)]
<29/05/07 by:yoni  yonik@mainsoft.com>
DataSourceChanged event tests added

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

17 years agoA correction to 78114
Marek Habersack [Tue, 29 May 2007 13:03:45 +0000 (13:03 -0000)]
A correction to 78114

2007-05-29  Marek Habersack  <mhabersack@novell.com>

* SiteMapProvider.cs: updated the node accessibility comments.
If Roles not null and user is not in at least one of the
specified roles, return false.
If there Url is null or empty, return false.

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

17 years ago2007-05-29 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 29 May 2007 12:45:31 +0000 (12:45 -0000)]
2007-05-29  Marek Habersack  <mhabersack@novell.com>

* ThemeDirectoryCompiler.cs: pass the skin file's
virtual path to the skin file parser as its first paramenter, and
not a physical path.

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

17 years ago2007-05-29 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 29 May 2007 12:42:46 +0000 (12:42 -0000)]
2007-05-29  Marek Habersack  <mhabersack@novell.com>

* SiteMapProvider.cs: updated the node accessibility comments.
If Roles not null and user is not in at least one of the
configured roles (or the collection is empty), return false.
If there Url is null or empty, return false.

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

17 years agoIn mcs:
Raja R Harinath [Tue, 29 May 2007 12:01:03 +0000 (12:01 -0000)]
In mcs:
* statement.cs (ToplevelBlock.container): Remove field.  It's
redundant with 'Parent'.
(ToplevelBlock.ContainerBlock): Remove accessor.
(ToplevelBlock..ctor): Update to changes.  Register anonymous
child with parent here, ...
* cs-parser.jay (end_anonymous): ... not here.  Don't modify
current_block.
(start_anonymous): Don't save current_block.
(top_current_block): Remove.

In gmcs:
* cs-parser.jay: Update to changes in ToplevelBlock.
(top_current_block): Remove.

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

17 years ago* statement.cs (Block.Flags): Remove IsExplicit and IsToplevel flags.
Raja R Harinath [Tue, 29 May 2007 09:47:14 +0000 (09:47 -0000)]
* statement.cs (Block.Flags): Remove IsExplicit and IsToplevel flags.
(Block.Resolve): Update to changes.
(Block..ctor): Move setting of "correct" 'Toplevel'
and 'Explicit' fields to ...
(ExplicitBlock..ctor, ToplevelBlock..ctor): ... here.

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

17 years agoInitial drop for System.Web.Extensions assembly
Igor Zelmanovich [Tue, 29 May 2007 09:33:23 +0000 (09:33 -0000)]
Initial drop for System.Web.Extensions assembly

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

17 years agoInitial drop for System.Web.Extensions assembly
Igor Zelmanovich [Tue, 29 May 2007 09:22:35 +0000 (09:22 -0000)]
Initial drop for System.Web.Extensions assembly

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

17 years ago2007-05-29 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 29 May 2007 08:47:34 +0000 (08:47 -0000)]
2007-05-29  Nagappan A  <anagappan@novell.com>

* SqlCommand.cs (Dispose): Command.Dispose closing
connection. Fixes bug # 81710. Thanks to AMC <amc1999@gmail.com>
for the fix.

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

17 years ago * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
Carlos Alberto Cortez [Tue, 29 May 2007 06:16:06 +0000 (06:16 -0000)]
* SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
IconSizeHorizontalSpacing.

2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

17 years ago2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 29 May 2007 05:56:05 +0000 (05:56 -0000)]
2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: The declaration of prev_tooltip_item should be inside
a NET_2_0 conditional (avoid a warning).

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

17 years ago2007-05-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 28 May 2007 22:32:07 +0000 (22:32 -0000)]
2007-05-29  Zoltan Varga  <vargaz@gmail.com>

* liveness.c (update_gen_kill_set): No need to set VOLATILE flags here, it is done
by the update_volatile () function.

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

17 years ago2007-05-28 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 28 May 2007 22:04:45 +0000 (22:04 -0000)]
2007-05-28  Andreia Gaita  <avidigal@novell.com>

* PageSetupDialog.cs: Implement PrintPreview control to display
the preview thumbnail. Change unit conversion to use
PrinterUnitConvert methods.

* Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
RectangleF.
* ControlPaint.cs: Add a DrawBorder internal method for RectangleF.

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

17 years ago2007-05-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 28 May 2007 20:34:26 +0000 (20:34 -0000)]
2007-05-28  Sebastien Pouliot  <sebastien@ximian.com>

* GDIPlusTest.cs: Add test cases for GdipDrawRectangles[I]
* TestGraphics.cs: Re-enable [Draw|Fill]Rectangles tests and remove
the saved bitmap (used for debugging).

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

17 years ago2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 28 May 2007 19:33:29 +0000 (19:33 -0000)]
2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs:
* ListViewItem.cs: Added 2.0 ListViewItem.ToolTipText tests.

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

17 years ago2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 28 May 2007 19:29:53 +0000 (19:29 -0000)]
2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs:
* ListViewItem.cs: Implement 2.0 ToolTipText support for listview
items.

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

17 years ago2007-05-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 28 May 2007 17:21:07 +0000 (17:21 -0000)]
2007-05-28  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Add test cases for [Draw|Fill]Rectangles (#81737)

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

17 years ago2007-05-28 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 28 May 2007 17:00:00 +0000 (17:00 -0000)]
2007-05-28  Andreia Gaita  <avidigal@novell.com>

* Charcode.cs: The "private" keyword is not allowed on 1.1 setters
on csc (blows up teh vs 2003 build)

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

17 years ago2007-05-28 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 28 May 2007 16:44:03 +0000 (16:44 -0000)]
2007-05-28  Andreia Gaita  <avidigal@novell.com>

* X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
an IntPtr on csc (it builds fine on mcs, could it be a compiler
bug?), convert the ptr to Int32 first.

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 16:02:23 +0000 (16:02 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* ResourceWriter.cs : fix for runtime serialization type index.
  Fixed bug #81759.

* ResourceWriterTest.cs : new test, contains one for bug #81759.

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

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

17 years agoInitial drop for System.Web.Extensions assembly
Igor Zelmanovich [Mon, 28 May 2007 15:21:09 +0000 (15:21 -0000)]
Initial drop for System.Web.Extensions assembly

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

17 years ago * X11Dnd.cs: Add a timer, so after drop, if a finish is not
Jackson Harper [Mon, 28 May 2007 15:17:09 +0000 (15:17 -0000)]
    * X11Dnd.cs: Add a timer, so after drop, if a finish is not
        recieved, we will exit the dnd tracking loop.

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

17 years agoTARGET_J2EE: do not suggest viewing exception on local machines for portal
Konstantin Triger [Mon, 28 May 2007 14:50:35 +0000 (14:50 -0000)]
TARGET_J2EE: do not suggest viewing exception on local machines for portal

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

17 years ago * X11Dnd.cs: Keep tracking until the xdnd finished event is
Jackson Harper [Mon, 28 May 2007 14:48:44 +0000 (14:48 -0000)]
    * X11Dnd.cs: Keep tracking until the xdnd finished event is
        recieved. TODO: I should probably stick a timer on the dropped
        event, and finish the drag if the XDND Finished event never
shows
        (because some apps don't seem to send it).

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 14:34:26 +0000 (14:34 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* ResourceWriter.cs : temporarily disable 2.0 output until I get
  bug #81759 fixed.

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 14:25:13 +0000 (14:25 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SettingElementCollection.cs : fix build, cyclic build mess.

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

17 years ago2007-05-28 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Mon, 28 May 2007 13:25:39 +0000 (13:25 -0000)]
2007-05-28  Everaldo Canuto  <ecanuto@novell.com>

* ToolBar.cs: Fix toolbar default width for button with image. Fixes
#81733.

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

17 years agoInitial drop for System.Web.Extensions assembly
Igor Zelmanovich [Mon, 28 May 2007 13:14:34 +0000 (13:14 -0000)]
Initial drop for System.Web.Extensions assembly

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 13:10:18 +0000 (13:10 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SettingElementTest.cs : blame catch.

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

17 years agoInitial drop for System.Web.Extensions assembly
Igor Zelmanovich [Mon, 28 May 2007 13:03:30 +0000 (13:03 -0000)]
Initial drop for System.Web.Extensions assembly

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 12:55:15 +0000 (12:55 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SettingElement.cs : fix default value (null->"").
* SettingElementCollection.cs : implemented all.

* SettingElementTest.cs : new test.

* System_test.dll.sources : added SettingElementTest.cs.

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

17 years ago2007-05-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 28 May 2007 12:43:44 +0000 (12:43 -0000)]
2007-05-28  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_get_method_info): Handle loader errors. Fixes #81724.

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

17 years agoInitial drop for System.Web.Extensions assembly
Igor Zelmanovich [Mon, 28 May 2007 11:48:40 +0000 (11:48 -0000)]
Initial drop for System.Web.Extensions assembly

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

17 years ago* TextBoxTest.cs: Ignore a couple of font-dependent tests.
Rolf Bjarne Kvinge [Mon, 28 May 2007 11:01:21 +0000 (11:01 -0000)]
* TextBoxTest.cs: Ignore a couple of font-dependent tests.

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 10:31:33 +0000 (10:31 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SettingsProviderAttribute.cs :
  Return assembly qualified name. Check null args.
* ConfigXmlDocument.cs : it implements IConfigErrorInfo.

* ApplicationSettingsBaseTest.cs : enable working test.

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

17 years ago* MonthCalendar.cs: Only mark the keypresses we actually handle as
Rolf Bjarne Kvinge [Mon, 28 May 2007 10:20:23 +0000 (10:20 -0000)]
* MonthCalendar.cs: Only mark the keypresses we actually handle as
  handled.

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

17 years ago2007-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 28 May 2007 10:15:30 +0000 (10:15 -0000)]
2007-05-28  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: since Path is used from within
WebConfigurationManager, under some conditions it may lead to
endless recursion if the UrlComponents is not instantiated when
Path_get is called.

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

17 years ago* MonthCalendarTest.cs: Added InitialSizeTest.
Rolf Bjarne Kvinge [Mon, 28 May 2007 10:06:33 +0000 (10:06 -0000)]
* MonthCalendarTest.cs: Added InitialSizeTest.

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

17 years ago* MonthCalendar.cs: Set the size after initializing all the relevant
Rolf Bjarne Kvinge [Mon, 28 May 2007 09:43:41 +0000 (09:43 -0000)]
* MonthCalendar.cs: Set the size after initializing all the relevant
  variables. Fixes #81742.

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

17 years ago2007-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 28 May 2007 08:44:53 +0000 (08:44 -0000)]
2007-05-28  Marek Habersack  <mhabersack@novell.com>

* ResourceExpressionBuilder.cs: properly cast
GetGlobalResourceObject calls to the type of the property being
assigned to.

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

17 years ago* KeyEventArgs.cs: Fix typo.
Rolf Bjarne Kvinge [Mon, 28 May 2007 08:31:14 +0000 (08:31 -0000)]
* KeyEventArgs.cs: Fix typo.

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

17 years ago* FormTest.cs: Increase timeout value. Might prevent tests from failing
Rolf Bjarne Kvinge [Mon, 28 May 2007 08:26:18 +0000 (08:26 -0000)]
* FormTest.cs: Increase timeout value. Might prevent tests from failing
  on slower computers.

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 07:59:08 +0000 (07:59 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* StreamTest.ja.resources, StreamTest.resources :
  new resources for ResourceManagerTest.

  (ChangeLog was missing until today.)

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

17 years agoRemove stray '/'.
Raja R Harinath [Mon, 28 May 2007 05:06:18 +0000 (05:06 -0000)]
Remove stray '/'.

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

17 years agoKill Block.Implicit
Raja R Harinath [Mon, 28 May 2007 04:33:25 +0000 (04:33 -0000)]
Kill Block.Implicit

* statement.cs (Block.Implicit): Remove.
(Block): Update to changes.
* flowanalysis.cs: Likewise.

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

17 years ago2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 May 2007 03:35:21 +0000 (03:35 -0000)]
2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
  SatelliteContractVersionAttribute.cs ResourceManager.cs
  IResourceReader.cs ResourceSet.cs ResourceWriter.cs
  ResourceReader.cs UltimateResourceFallbackLocation.cs
  MissingManifestResourceException.cs :
  implemented 2.0 resource support (write, and remaining read bits)
  and GetStream(). Cosmetic attributes fixes.

* UnmanagedMemoryStream.cs : added Closed event for sys.Resources use.
* IntPtrStream.cs : added internal get_BaseAddress(), for the same.

* ResourceManagerTest.cs : added tests for GetStream() (including
  2.0 resource format tests).

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

17 years agoFixed dates in comments.
Gert Driesen [Sun, 27 May 2007 23:08:27 +0000 (23:08 -0000)]
Fixed dates in comments.

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

17 years ago* DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
Gert Driesen [Sun, 27 May 2007 23:04:45 +0000 (23:04 -0000)]
* DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
to match MS. Fixed MinDate to only accept value less than or equal
to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
Removed TODO's that are now verified by unit tests.
* DateTimePickerTest.cs: Added tests for MinDate and MaxDate.

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

17 years ago2007-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 27 May 2007 20:11:48 +0000 (20:11 -0000)]
2007-05-27  Zoltan Varga  <vargaz@gmail.com>

* driver.c (mono_main): Call g_thread_init () early since newer glib versions
require it.

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

17 years ago* DateTimePickerTest.cs: Avoid test failures on Windows system with
Gert Driesen [Sun, 27 May 2007 18:38:41 +0000 (18:38 -0000)]
* DateTimePickerTest.cs: Avoid test failures on Windows system with
non-us locale.

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

17 years ago2007-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 27 May 2007 15:25:11 +0000 (15:25 -0000)]
2007-05-27  Zoltan Varga  <vargaz@gmail.com>

* abcremoval.c (mono_perform_abc_removal): Avoid using alloca.

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

17 years ago* NumericUpDownTest.cs: Avoid use of global identifier since csc 1.x
Gert Driesen [Sun, 27 May 2007 15:11:57 +0000 (15:11 -0000)]
* NumericUpDownTest.cs: Avoid use of global identifier since csc 1.x
does not support this.
* FormTest.cs: Avoid using anonymous methods. Allows our test to build
again using csc 1.x.

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

17 years ago* TreeNodeCollection.cs: Minor corrections to exceptions to match MS.
Gert Driesen [Sun, 27 May 2007 15:07:26 +0000 (15:07 -0000)]
* TreeNodeCollection.cs: Minor corrections to exceptions to match MS.
* TreeNodeCollectionTest.cs: Added tests for Add and AddRange. Fixed and
improved IList indexer.

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

17 years ago2007-05-27 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 27 May 2007 13:23:17 +0000 (13:23 -0000)]
2007-05-27 Igor Zelmanovich <igorz@mainsoft.com>

* ObjectDataSourceView.cs: fixed SelectMethod and SelectCountMethod properties:
when changed, DataSourceViewChanged event is raised.

* SqlDataSourceView: fixed SelectCommand property:
when changed, DataSourceViewChanged event is raised.

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

17 years agoFix .NET 1.1 compatability
Roei Erez [Sun, 27 May 2007 13:22:15 +0000 (13:22 -0000)]
Fix .NET 1.1 compatability

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

17 years agoBug fix for NameValueCollection constructors:
Roei Erez [Sun, 27 May 2007 13:02:10 +0000 (13:02 -0000)]
Bug fix for NameValueCollection constructors:
** NameValueCollection(IEqualityComparer) that gets null as an argument..
** NameValueCollection(NameValueCollection).
Two test cases added.

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

17 years agoMildly speed up CheckInvariantMeaningInBlock
Raja R Harinath [Sun, 27 May 2007 13:00:03 +0000 (13:00 -0000)]
Mildly speed up CheckInvariantMeaningInBlock

* statement.cs (ExplicitBlock.AddKnownVariable): Move here from Block.
Recursively call AddKnownVariable to all enclosing blocks.
(ExplicitBlock.GetKnownVariableInfo): Move here from Block.
Remove recursive calls.
(Block): Update to changes.

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

17 years agoNew ExplicitBlock invariants
Raja R Harinath [Sun, 27 May 2007 12:59:39 +0000 (12:59 -0000)]
New ExplicitBlock invariants

* mcs/statement.cs (Block.Explicit): New field.  It points to the
immediately enclosing non-implicit block.
(Block..ctor): Maintain the invariant.
* mcs/cs-parser.jay, gmcs/cs-parser.jay: Take advantage of invariant.

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

17 years agoIntroduce ExplicitBlock
Raja R Harinath [Sun, 27 May 2007 12:59:18 +0000 (12:59 -0000)]
Introduce ExplicitBlock

* mcs/statement.cs (ExplicitBlock): New.
(ToplevelBlock): Derive from it.
(Block.Flags.IsExplicit): Rename from '...Implicit' and invert sense of flag.
(Block.Implicit): Update to changes.
* mcs/cs-parser.jay, gmcs/cs-parser.jay: Update to changes.

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

17 years ago* TypeTranslator.cs:
Konstantin Triger [Sun, 27 May 2007 12:39:41 +0000 (12:39 -0000)]
* TypeTranslator.cs:
1. Fix the construction of TypeData for nullable types: it should not
be primitive since the primitive were loaded in static ctor.
2. Rename primitiveNullableTypes -> nullableTypes to reflect
correctly the field purpose.
3. Unify synchronization with synchronized hashtable.

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

17 years agoRemove unused field
Raja R Harinath [Sun, 27 May 2007 07:25:48 +0000 (07:25 -0000)]
Remove unused field
* codegen.cs (EmitContext.IsLastStatement): Remove.
* statement.cs (Block.DoEmit): Update to changes.

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

17 years ago* Makefile.am (am_CFLAGS): Look for config.h in top_builddir.
Raja R Harinath [Sun, 27 May 2007 06:49:10 +0000 (06:49 -0000)]
* Makefile.am (am_CFLAGS): Look for config.h in top_builddir.

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

17 years ago2007-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 26 May 2007 16:56:17 +0000 (16:56 -0000)]
2007-05-26  Zoltan Varga  <vargaz@gmail.com>

* delegate.cs: Add more delegate tests.

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

17 years ago* XmlWriterTests.cs: Added NotWorking Create_XmlWriter2 test.
Gert Driesen [Sat, 26 May 2007 08:43:56 +0000 (08:43 -0000)]
* XmlWriterTests.cs: Added NotWorking Create_XmlWriter2 test.

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

17 years ago* XmlWriterTests.cs: Renamed Close* tests to Create*, and improved
Gert Driesen [Sat, 26 May 2007 07:48:31 +0000 (07:48 -0000)]
* XmlWriterTests.cs: Renamed Close* tests to Create*, and improved
their coverage. Commented out newly introduced tests since they fail
on Mono.

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

17 years ago * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
Jackson Harper [Fri, 25 May 2007 21:24:02 +0000 (21:24 -0000)]
    * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
        it's own message loop.
        * XplatUIX11.cs: Remove some of the dnd hooks
        * X11Display.cs: Remove some of the dnd hooks.

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

17 years agoEnable this test too.
Gert Driesen [Fri, 25 May 2007 21:20:07 +0000 (21:20 -0000)]
Enable this test too.

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

17 years ago SelectedText will handle the event firing here.
Jackson Harper [Fri, 25 May 2007 21:17:27 +0000 (21:17 -0000)]
    SelectedText will handle the event firing here.

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

17 years ago* TextBoxTest.cs: Improve tests for Copy, Cut and Paste to also cover
Gert Driesen [Fri, 25 May 2007 21:16:33 +0000 (21:16 -0000)]
* TextBoxTest.cs: Improve tests for Copy, Cut and Paste to also cover
bug #81736.

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

17 years ago* XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
Gert Driesen [Fri, 25 May 2007 21:14:14 +0000 (21:14 -0000)]
* XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
instead of MinimizedWindowSize.

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

17 years ago2007-05-25 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 25 May 2007 20:55:14 +0000 (20:55 -0000)]
2007-05-25  Jonathan Chambers  <joncham@gmail.com>

       * marshal.c: Fix interface lookup loops for
       cominterop_get_com_slot_for_method and
       cominterop_get_method_interface. Only need to lookup
       if type is a class, else use interface type method is on.

       Code is contributed under MIT/X11 license.

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

17 years ago* UnmanagedMemoryStream.cs: In Read and ReadByte, use Marshal.ReadByte
Gert Driesen [Fri, 25 May 2007 20:22:40 +0000 (20:22 -0000)]
* UnmanagedMemoryStream.cs: In Read and ReadByte, use Marshal.ReadByte
to read bytes as this allows us to start reading from the current
position. In Read, return 0 when reading beyond the end of the stream
and only read bytes until the end of the stream (not capacity).
In ReadByte, return -1 when reading beyond the end of the stream.
In SetLength: changed argument validation (and reported exceptions) to
match MS, removed duplicate access check and changed the current
position if length is less than position. In Write: throw
NotSupportedException when attempting to write beyond capacity, use
Marshal.WriteByte since that allows us to start writing from the
current position. Adjust length when position moves beyond length
in both Write and WriteByte. Allow position to be moved beyond
capacity of stream. Fixed position using Seek (=+ typo). Changed
CanRead to ignore current position. Allow Position to be used to move
beyond capacity of stream.
* UnmanagedMemoryStreamTest.cs: Added tests for CanRead, CanSeek,
CanWrite, Seek, Write. Improved existing tests for SetLength,
Position. Enabled tests that were previously failing.

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

17 years ago2007-05-25 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 25 May 2007 20:21:45 +0000 (20:21 -0000)]
2007-05-25  Jonathan Chambers  <joncham@gmail.com>

Add overload to GetInterface to allow
not throwing exceptions. Fixes as and is operators for COM objects.

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

17 years ago * TextBoxBase.cs: Raise textchanged when cutting and pasting
Jackson Harper [Fri, 25 May 2007 18:33:29 +0000 (18:33 -0000)]
    * TextBoxBase.cs: Raise textchanged when cutting and pasting
        * text.

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

17 years ago2007-05-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 25 May 2007 18:32:05 +0000 (18:32 -0000)]
2007-05-25  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Avoid calling ImageAttributes.SetThreshold in test
cases as it's not supported in libgdiplus.

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

17 years ago2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 May 2007 18:06:13 +0000 (18:06 -0000)]
2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>

* XQueryConvert.cs : removed unused methods. They will prevent
  System.Xml.Core.dll implementation.

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

17 years ago2007-05-25 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 25 May 2007 17:27:14 +0000 (17:27 -0000)]
2007-05-25  Jonathan Chambers  <joncham@gmail.com>

* monoburg.y: Add configure check for unistd.h.
* wparser.c: Update for monoburg.y changes.
* Makefile.am: Add top_srcdir to include path for config.h.

    Code is contributed under MIT/X11 license.

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

17 years ago2007-05-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 25 May 2007 17:06:44 +0000 (17:06 -0000)]
2007-05-25  Marek Habersack  <mhabersack@novell.com>

* ObjectDataSourceView.cs: CreateDataObject must pay attention to
TypeConverter attributes on the property being converted.

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

17 years ago2007-05-25 Marek Habersack <mhabersack@novell.com>
Rolf Bjarne Kvinge [Fri, 25 May 2007 16:32:58 +0000 (16:32 -0000)]
2007-05-25  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: Changed a few incorrect
ObjectCreationExpression to the correct DelegateCreationExpression.
Fixes #81706.

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

17 years ago* mcs/cs-parser.jay: Use 'start_block' and 'end_block' rather than
Raja R Harinath [Fri, 25 May 2007 14:51:06 +0000 (14:51 -0000)]
* mcs/cs-parser.jay: Use 'start_block' and 'end_block' rather than
modifying current_block directly.
* gmcs/cs-parser.jay: Likewise.

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

17 years ago2007-05-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 25 May 2007 13:34:32 +0000 (13:34 -0000)]
2007-05-25  Sebastien Pouliot  <sebastien@ximian.com>

* reflection.c: HasSecurity can be present even if no specially
encoded (CAS) attributes are available (e.g. SuppressUnmanagedCode
SecurityAttribute). Fix CAS regression tests on buildbot.

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

17 years agoforgot this one.
Atsushi Eno [Fri, 25 May 2007 13:26:01 +0000 (13:26 -0000)]
forgot this one.

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

17 years ago2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 May 2007 13:24:10 +0000 (13:24 -0000)]
2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>

* IdnMapping.cs : new 2.0 class.

* IdnMappingTest.cs : new test.

* corlib.dll.sources : added MissingSatelliteAssemblyException.cs
  and IdnMapping.cs. Removed obsolete 2.0 NotCancelableException.cs.
* corlib_test.dll.sources : added IdnMappingTest.cs.

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

17 years ago2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 May 2007 13:18:08 +0000 (13:18 -0000)]
2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>

* MissingSatelliteAssemblyException.cs : new file.

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

17 years ago2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 25 May 2007 11:46:17 +0000 (11:46 -0000)]
2007-05-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* System.Windows.Forms_test.dll.sources: Added KeyEventArgsTest.cs

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

17 years ago* KeyEventArgsTest.cs: Added.
Rolf Bjarne Kvinge [Fri, 25 May 2007 11:44:42 +0000 (11:44 -0000)]
* KeyEventArgsTest.cs: Added.

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

17 years ago* KeyEventArgs.cs: Added SuppressKeyPress.
Rolf Bjarne Kvinge [Fri, 25 May 2007 11:43:05 +0000 (11:43 -0000)]
* KeyEventArgs.cs: Added SuppressKeyPress.
* Control.cs: Added support for SuppressKeyPress.

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

17 years ago2007-05-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 25 May 2007 09:14:01 +0000 (09:14 -0000)]
2007-05-25  Nagappan A  <anagappan@novell.com>

* OdbcDataReader.cs (GetValue): Sybase returns the fraction values
in nano seconds, but DateTime expects the value in milliseconds,
so the conversion.

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

17 years ago* NumericUpDown.cs: Refactor code to fix regressions on #79950 and
Andreia Gaita [Fri, 25 May 2007 04:12:03 +0000 (04:12 -0000)]
* NumericUpDown.cs: Refactor code to fix regressions on #79950 and
problems with PieChart. suppress_validation should not be a counter,
if there are several BeginInit calls, the first EndInit will
activate validation. Fix exceptions thrown by set_Value.

* UpDownBase.cs: ValidateText only if it's the user editing it.

Test/System.Windows.Forms/NumericUpDownTest.cs: Added 1.1 and
2.0 tests.

2007-05-24  Andreia Gaita  <avidigal@novell.com>

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

17 years ago2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 24 May 2007 23:16:23 +0000 (23:16 -0000)]
2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControlTest.cs:
* CheckedListBoxTest.cs: Move the GetItemText test
to ListControl, since the method it's part of it. Also
add a FilterItemOnProperty test.

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

17 years ago2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 24 May 2007 23:09:08 +0000 (23:09 -0000)]
2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControl.cs: FilterItemOnProperty should return the filtered
item proeprty even if DataSource is null. The same applies for
GetItemText. Fixes #80427.

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

17 years ago2007-05-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 24 May 2007 21:26:30 +0000 (21:26 -0000)]
2007-05-24  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: If a control doesn't have a parent when it's Dock is
set, but it has children, it needs to do a layout.  Fixes some nested
controls issues.  [Fixes bug #81199]

2007-05-24  Jonathan Pobst  <monkey@jpobst.com>

* DefaultLayoutTest.cs: Add test for bug 81199. (nested controls)

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

17 years ago2007-05-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 May 2007 21:07:44 +0000 (21:07 -0000)]
2007-05-24  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Add test cases for DrawImage overloads accepting
Point or PointF arrays as destination points.

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

17 years ago* ComboBox.cs: If there are few items in the drop down list, make it
Rolf Bjarne Kvinge [Thu, 24 May 2007 19:34:26 +0000 (19:34 -0000)]
* ComboBox.cs: If there are few items in the drop down list, make it
  the exact size the items need, no bigger. Fixes #81612.

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

17 years ago * TextControl.cs: Handle tabs in non multiline mode a little
Jackson Harper [Thu, 24 May 2007 19:20:30 +0000 (19:20 -0000)]
    * TextControl.cs: Handle tabs in non multiline mode a little
        differently.

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

17 years ago2007-05-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 24 May 2007 19:18:00 +0000 (19:18 -0000)]
2007-05-24  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: When we have captured the keyboard for a menu,
check for mouse down events in case we need to close the menu.
* Control.cs, Form.cs: Remove mouse down checks for menus.

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

17 years ago * TextControl.cs: We need to manually break apart tabbed text
Jackson Harper [Thu, 24 May 2007 18:57:31 +0000 (18:57 -0000)]
    * TextControl.cs: We need to manually break apart tabbed text
        * and
        move the tabs, since the system.drawing tabbing mechanism relies
        on tab stops.
        * TextBoxBase.cs: Move the caret properly when the user enters a
        tab.

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

17 years agoFix ChangeLog.
Jonathan Chambers [Thu, 24 May 2007 17:35:16 +0000 (17:35 -0000)]
Fix ChangeLog.

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

17 years ago2007-05-24 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Thu, 24 May 2007 17:28:21 +0000 (17:28 -0000)]
2007-05-24  Jonathan Chambers  <joncham@gmail.com>

Add configure checks for header files.

Code is contributed under MIT/X11 license.

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