mono.git
16 years agoNew test.
Marek Safar [Fri, 17 Aug 2007 15:15:03 +0000 (15:15 -0000)]
New test.

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

16 years agoAdd more tests.
Marek Safar [Fri, 17 Aug 2007 15:06:18 +0000 (15:06 -0000)]
Add more tests.

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

16 years ago2007-08-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 17 Aug 2007 15:05:05 +0000 (15:05 -0000)]
2007-08-17  Marek Safar  <marek.safar@gmail.com>

* cs-tokenizer.cs (GetKeyword): Handle from keyword in a different way.

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

16 years ago* System.Windows.Forms/X11Dnd.cs: Add a null check.
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 14:52:01 +0000 (14:52 -0000)]
* System.Windows.Forms/X11Dnd.cs: Add a null check.

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

16 years ago2007-08-17 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 17 Aug 2007 14:26:40 +0000 (14:26 -0000)]
2007-08-17  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStream.cs: Write cannot depend on buffer.Length (fix #82428)

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

16 years ago* System.Windows.Forms/X11Dnd.cs: MwfWindow: Try to load the control
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 14:16:48 +0000 (14:16 -0000)]
* System.Windows.Forms/X11Dnd.cs: MwfWindow: Try to load the control
  directly from the handle if nothing else succeeds. Fixes #82453.

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

16 years agoImplemented RightShift and LeftShift.
Federico Di Gregorio [Fri, 17 Aug 2007 14:12:08 +0000 (14:12 -0000)]
Implemented RightShift and LeftShift.

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

16 years ago* System.Windows.Forms/XplatUIWin32.cs: PaintEventStart: validate the
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 13:30:22 +0000 (13:30 -0000)]
* System.Windows.Forms/XplatUIWin32.cs: PaintEventStart: validate the
  entire source client rectangle if we're painting to another window
  than the one the paint message was generated on. Simplify the code
  somewhat, which makes PaintEventEnd also simpler.

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

16 years ago* System.Windows.Forms/Control.cs: When changing parent of a form, let
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 13:28:15 +0000 (13:28 -0000)]
* System.Windows.Forms/Control.cs: When changing parent of a form, let
  the form decide whether XplatUI.SetParent should be called or not.
* System.Windows.Forms/Form.cs: ChangingParent: only call
  XplatUI.SetParent if we're not recreating the handle. If the new
  parent's handle isn't created, don't recreate our handle, just
  destroy it. CreateParams: Check if the parent's handle is created
  before fetching it.

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

16 years agoFix the build :-(
Massimiliano Mantione [Fri, 17 Aug 2007 13:20:52 +0000 (13:20 -0000)]
Fix the build :-(

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

16 years agoNew errors + tiny update ;-)
Marek Safar [Fri, 17 Aug 2007 13:11:30 +0000 (13:11 -0000)]
New errors + tiny update ;-)

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

16 years ago2007-08-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 17 Aug 2007 13:10:29 +0000 (13:10 -0000)]
2007-08-17  Marek Safar  <marek.safar@gmail.com>

* linq.cs: MethodGroupExpr update.

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

16 years ago2007-08-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 17 Aug 2007 13:09:23 +0000 (13:09 -0000)]
2007-08-17  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs: MemberLookupFinal update.

* class.cs (ConstructorInitializer): Is expression based.

* delegate.cs: MethodGroupExpr update.

* ecore.cs  (Error_MemberLookupFailed): Improved to report better error
messages.
(Error_MemberLookupFailed): Customizable error override.
(MethodGroupExpr): Keep queried type for later usage.
(MethodGroupExpr.OverloadResolve): Catch errors related to overload
resolve.

* expression.cs: Error_MemberLookupFailed refactoring.
(New.DoResolve): Resolve as much as possible.
(ElementInitializer.Error_MemberLookupFailed): Object initializer
customization for invalid member types.

* statement.cs: MethodGroupExpr update.

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

16 years ago * loader.c (find_method, find_method_in_class): Fixed bug #81466,
Massimiliano Mantione [Fri, 17 Aug 2007 12:31:13 +0000 (12:31 -0000)]
* loader.c (find_method, find_method_in_class): Fixed bug #81466,
checking that only methods with matching qname or fqname are picked
from implemented interfaces.

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

16 years ago2007-08-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 17 Aug 2007 12:06:22 +0000 (12:06 -0000)]
2007-08-17  Marek Habersack  <mhabersack@novell.com>

* CacheDependency.cs: use DependencyChanged as a list of events.
OnChanged now calls OnDependencyChanged, to notify
AggregateCacheDependency that it has changed. Fixes bug #82419.

2007-08-17  Marek Habersack  <mhabersack@novell.com>

* AggregateCacheDependencyTest.cs: dependency expiration
notification works correctly now.

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

16 years ago* AttributeTest.cs: Added test for IsDefined, GetCustomAttribute
Gert Driesen [Fri, 17 Aug 2007 12:05:15 +0000 (12:05 -0000)]
* AttributeTest.cs: Added test for IsDefined, GetCustomAttribute
and GetCustomAttributes. Added tests for bug #81797. Remove use of
deprecated Assertion class, code formatting.
* ParameterInfoTest.cs: Minor code formatting change.
* FieldInfoTest.cs: Added test for GetCustomAttributes. Modified test
for pseudo customattributes to work on 1.0 profile too.

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

16 years ago* System.Windows.Forms.X11Internal/X11Display.cs,
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 09:14:00 +0000 (09:14 -0000)]
* System.Windows.Forms.X11Internal/X11Display.cs,
  System.Windows.Forms.X11Internal/X11Hwnd.cs,
  System.Windows.Forms.X11Internal/XplatUIX11-new.cs,
  System.Windows.Forms/XplatUI.cs,
  System.Windows.Forms/XplatUIDriver.cs,
  System.Windows.Forms/XplatUIOSX.cs: Update PaintEventStart/End to
  take a Message argument.
* System.Windows.Forms/Control.cs, System.Windows.Forms/Form.cs,
  System.Windows.Forms/InternalWindowManager.cs,
  System.Windows.Forms/MainMenu.cs,
  System.Windows.Forms/MdiClient.cs: Update calls to
  PaintEventStart/End to take a Message argument.
* System.Windows.Forms/XplatUIWin32.cs,
  System.Windows.Forms/XplatUIX11.cs: Update PaintEventStart/End to
  take a Message argument, and handle the case where we don't paint
  to the window for which the paint message was generated.

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

16 years agoIn System.Reflection.Emit:
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 09:12:13 +0000 (09:12 -0000)]
In System.Reflection.Emit:
2007-08-17  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* ILGenerator.cs: Change BeginCatchBlock to end the current filter block if called with a null exceptionType. Added ILExceptionBlock.FILTER_START to be able to track if we're in a filter block or not. Renamed PatchLastClauseStart to PatchFilterClause to match better what it does, and make it update the handler's type to FILTER. Fixes #81431.

In Test/System.Reflection.Emit:
2007-08-17  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* ILGeneratorTest.cs: Added FilterAndCatchBlock (bug #81431), InvalidFilterBlock1, ValidFilterBlock1, ValidFilterBlock2.

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

16 years ago* System.Windows.Forms/XplatUIWin32.cs: Don't call Win32GetLastError
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 07:01:04 +0000 (07:01 -0000)]
* System.Windows.Forms/XplatUIWin32.cs: Don't call Win32GetLastError
  directly, use Marshal.GetLastWin32Error. Plug nasty memory leak in
  PaintEventStart/End, we were creating a DC we weren't releasing.

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

16 years ago2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 17 Aug 2007 06:37:23 +0000 (06:37 -0000)]
2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Add Groups support in Details view. Also have a small
method to do the layout of the group header. Don't use a separate
method to do the groups calculation in Icons view, since our methods
are now a little simpler.
* ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
`Bounds'.
* ThemeWin32Classic.cs: Likewise.

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

16 years agoTypeAs now ok.
Federico Di Gregorio [Fri, 17 Aug 2007 00:23:38 +0000 (00:23 -0000)]
TypeAs now ok.

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

16 years agoTypeIs now ok.
Federico Di Gregorio [Fri, 17 Aug 2007 00:15:09 +0000 (00:15 -0000)]
TypeIs now ok.

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

16 years agoImplemented Subtract and SubtractChecked.
Federico Di Gregorio [Thu, 16 Aug 2007 23:28:53 +0000 (23:28 -0000)]
Implemented Subtract and SubtractChecked.

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

16 years ago2007-08-17 Michael Hutchinson <m.j.hutchinson@gmail.com>
Michael Hutchinson [Thu, 16 Aug 2007 23:27:14 +0000 (23:27 -0000)]
2007-08-17  Michael Hutchinson <m.j.hutchinson@gmail.com>

* Enumerable.cs: Fix Aggregate's counting code, and make it more
  efficient.

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

16 years agoImplemented Or and OrElse.
Federico Di Gregorio [Thu, 16 Aug 2007 23:03:15 +0000 (23:03 -0000)]
Implemented Or and OrElse.

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

16 years agoImplemented Call (except generics), Divide, Modulo, Multiply, MultiplyChecked.
Federico Di Gregorio [Thu, 16 Aug 2007 22:46:32 +0000 (22:46 -0000)]
Implemented Call (except generics), Divide, Modulo, Multiply, MultiplyChecked.

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 22:39:38 +0000 (22:39 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_newarr):added, do type verification of
newarr ops, push the right value on the eval stack.
* verify.c (mono_method_verify): use do_newarr

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 22:37:29 +0000 (22:37 -0000)]
2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>

* make_newarr_test.sh (added):  Generate newarr related tests.
* make_tests.sh: Addes tests for newarr.

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

16 years ago2007-08-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 16 Aug 2007 20:17:34 +0000 (20:17 -0000)]
2007-08-16  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Add FilterMessage method and rework our message loop
logic to use it.

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

16 years ago* MonoCustomAttrs.cs: In IsDefined, throw ArgumentNullException if
Gert Driesen [Thu, 16 Aug 2007 20:11:53 +0000 (20:11 -0000)]
* MonoCustomAttrs.cs: In IsDefined, throw ArgumentNullException if
attributeType is null to avoid a SIGSEGV (and match MS). Only partial
fix for bug #82431 on 1.0 profile; it fully fixes the problem for the
1.0 profile, but more changes (in the runtime) are required for the
2.0 profile. Added a FIXME explaining the problem.
* TypeTest.cs: Improved test for GetCustomAttributes, and avoid
dependency on order of attributes. Split IsDefined test and improved
part for bug #82431.
* AssemblyTest.cs: Added IsDefined test with null value for
attributeType argument.
* ModuleTest.cs: Same. Remove use of deprecated Assertion class, code
formatting and fixed line endings.
* ParameterInfoTest.cs: Same. Remove use of deprecated Assertion class
and code formatting.
* MethodInfoTest.cs: Same.
* EventInfoTest.cs: Same. Code formatting.
* FieldInfoTest.cs: Same. Code formatting.
* PropertyInfoTest.cs: Same. Improved coverage of GetAccessors.
Improved tests for GetCustomAttributes. Code formatting.
* TypeBuilderTest.cs: Added IsDefined test with null value for
attributeType argument.

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

16 years ago2007-08-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 16 Aug 2007 19:44:11 +0000 (19:44 -0000)]
2007-08-16  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Add some methods and stub a few methods that are
pretty much never used.

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 19:24:07 +0000 (19:24 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_ldobj_value, do_unbox_value and do_box_value):
factored the common code into get_boxable_mono_type, which
is now using mono_type_get_full, this fixed byref related tests.

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

16 years ago2007-08-16 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 16 Aug 2007 18:51:03 +0000 (18:51 -0000)]
2007-08-16  Jb Evain  <jbevain@novell.com>

* Makefile: re-install in the GAC the tuned assemblies.

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

16 years ago2007-08-16 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 16 Aug 2007 17:56:11 +0000 (17:56 -0000)]
2007-08-16  Jb Evain  <jbevain@novell.com>

* Mono.Linker/Driver.cs
  Mono.Linker/LinkContext.cs:
Add a way to specify parameters to the context.

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 17:23:41 +0000 (17:23 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* ldtoken_with_byref_typespec.2.il: Test for (in pseudo c#) "typeof (int&)" expression
* Makefile.am: ldtoken_with_byref_typespec.2.il

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 17:20:35 +0000 (17:20 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c: added mono_type_get_full, this function has the same
behavior of mono_class_get_full but the returned MonoType has
all metadata of the associated token in case of a typespec token.
* class.c: added mono_type_retrieve_from_typespec, used by
mono_type_get_full to retrieve the token type.
* class.c (mono_class_create_from_typespec): changed to use
mono_type_retrieve_from_typespec.
* class.c (mono_ldtoken): changed to use mono_type_get_full
for MONO_TOKEN_TYPE_(DEF|REF|SPEC).
* class-internals.h: exported mono_type_get_full for internal use.

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

16 years agoNew test.
Marek Safar [Thu, 16 Aug 2007 13:36:50 +0000 (13:36 -0000)]
New test.

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 13:36:32 +0000 (13:36 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

* modifier.cs (Check): Check all modifiers and not only accessibility
ones.

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

16 years ago2007-08-16 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 16 Aug 2007 13:28:37 +0000 (13:28 -0000)]
2007-08-16  Jb Evain  <jbevain@novell.com>

* domain.c (supported_runtimes): add entry for
the 'moonlight' runtime version.

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

16 years ago2007-08-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Aug 2007 12:20:55 +0000 (12:20 -0000)]
2007-08-16  Sebastien Pouliot  <sebastien@ximian.com>

* RecordProtocol.cs, SslStreamBase.cs: Ensure nothing (even the same
thread) can confuse the record decoding code. Fix bug #82145 (LDAP)
which uses several thread over a single SslClientStream instance.

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

16 years agoNew test.
Marek Safar [Thu, 16 Aug 2007 12:10:49 +0000 (12:10 -0000)]
New test.

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 12:09:53 +0000 (12:09 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

* ecore.cs (Expression.Error_ValueCannotBeConverted): Report always a
type and not an expression.

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

16 years agoonly reference 2.0 stuff to compile smcs.exe
Jb Evain [Thu, 16 Aug 2007 12:02:16 +0000 (12:02 -0000)]
only reference 2.0 stuff to compile smcs.exe

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

16 years agoprotect completely assembly builder
Jb Evain [Thu, 16 Aug 2007 11:44:21 +0000 (11:44 -0000)]
protect completely assembly builder

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

16 years agoAdd new test
Marek Safar [Thu, 16 Aug 2007 11:42:49 +0000 (11:42 -0000)]
Add new test

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 11:42:08 +0000 (11:42 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

* statement.cs (Catch.Clone): Type and variable can be null.

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

16 years agoChangeLog
Marek Safar [Thu, 16 Aug 2007 10:36:34 +0000 (10:36 -0000)]
ChangeLog

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

16 years agoA test for bug #81979
Marek Safar [Thu, 16 Aug 2007 10:35:33 +0000 (10:35 -0000)]
A test for bug #81979

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 10:34:46 +0000 (10:34 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

A fix for bug #81979
* assign.cs (Assign.Emit): Prepare arguments for string concatenation.
I am really not sure whether this is the best fix.

* expression.cs (VariableReference.EmitAssign): Do prepare_load test
only once.

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

16 years agoFix Java compilation
Noam Lampert [Thu, 16 Aug 2007 06:14:24 +0000 (06:14 -0000)]
Fix Java compilation

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

16 years ago * verify.c (mono_method_verify): small typo sliped in.
Rodrigo Kumpera [Thu, 16 Aug 2007 02:43:54 +0000 (02:43 -0000)]
* verify.c (mono_method_verify): small typo sliped in.

2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

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

16 years ago * verify.c (do_unbox_value): added, do type verification of
Rodrigo Kumpera [Wed, 15 Aug 2007 22:26:16 +0000 (22:26 -0000)]
* verify.c (do_unbox_value): added, do type verification of
unboxing ops
* verify.c (mono_method_verify): use do_unbox_value

2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

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

16 years ago2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Aug 2007 22:25:17 +0000 (22:25 -0000)]
2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (dump_stack_value): fixed typo, was printing string
instead of object on stack.
* verify.c (do_box_value): moved the byref check up as it leads
to invalid code and should be done earlier.
* verify.c: improved error messages for and ldobj

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

16 years ago2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Aug 2007 21:45:35 +0000 (21:45 -0000)]
2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
* make_unbox_test.sh (added):  Generate unbox related tests.
* make_tests.sh: Addes tests for unbox.

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

16 years agomost useful check-in *ever*
Jb Evain [Wed, 15 Aug 2007 19:59:49 +0000 (19:59 -0000)]
most useful check-in *ever*

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

16 years ago2007-08-15 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 15 Aug 2007 19:57:46 +0000 (19:57 -0000)]
2007-08-15  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/TypeReference.cs
  Mono.Cecil/TypeSpecification.cs:
TypeSpecification.Module return the module of the elemen
type now.

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

16 years agorevert after 2.1 corlib fix
Jb Evain [Wed, 15 Aug 2007 19:26:11 +0000 (19:26 -0000)]
revert after 2.1 corlib fix

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

16 years ago2007-08-15 William Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 15 Aug 2007 19:25:49 +0000 (19:25 -0000)]
2007-08-15  William Holmes  <billholmes54@gmail.com>

* marshal.c (emit_marshal_custom): Omit the call to
  marshal_native_to_managed when calling native to managed
  and the argument is specified as an out argument.

Code is contributed under MIT/X11 license.

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

16 years ago2007-08-15 Jb Evain <jbveain@novell.com>
Jb Evain [Wed, 15 Aug 2007 19:25:27 +0000 (19:25 -0000)]
2007-08-15  Jb Evain  <jbveain@novell.com>

* StringBuilder: hide non 2.1 AppendFormat on 2.1 so that
the compile picks up the adequate method when AppendFormat
is used in 2.1 platform code.

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

16 years ago2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Aug 2007 18:50:32 +0000 (18:50 -0000)]
2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>

* make_ldobj_test.sh (added):  Generate ldobj related tests.
* make_tests.sh: Addes tests for ldobj.

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

16 years ago2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Aug 2007 18:49:06 +0000 (18:49 -0000)]
2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: fixed the type checks for generics, function pointers and vectors.
Added type verification for ldobj and ldtoken. The verifier
would segfault if header or signature of a method contained references
to non-existant types.

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

16 years agouse only 2.1 available AppendFormat method
Jb Evain [Wed, 15 Aug 2007 17:03:03 +0000 (17:03 -0000)]
use only 2.1 available AppendFormat method

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

16 years ago* SocketTest.cs: Improved EndConnect test. Added test for bug #82446,
Gert Driesen [Wed, 15 Aug 2007 15:52:09 +0000 (15:52 -0000)]
* SocketTest.cs: Improved EndConnect test. Added test for bug #82446,
and marked it NotWorking for 2.0 profile.

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

16 years ago2007-08-15 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 15 Aug 2007 15:29:52 +0000 (15:29 -0000)]
2007-08-15  Mark Probst  <mark.probst@gmail.com>

* RemotingServices.cs: Make sure InternalExecute doesn't get
called with a null method, because that makes it crash.  Throw a
NullReferenceException instead.  Doesn't fix bug #82302, but
prevents the crash.

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

16 years agoAdapt for TARGET_JVM
Eyal Alalouf [Wed, 15 Aug 2007 14:39:51 +0000 (14:39 -0000)]
Adapt for TARGET_JVM

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

16 years ago2007-08-15 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 15 Aug 2007 14:35:31 +0000 (14:35 -0000)]
2007-08-15  Jonathan Chambers  <joncham@gmail.com>

* marshal.c (cominterop_get_ccw): Patch from
Bill Holmes to no walk up interface hierarchy.
All parent methods should be present in the interface for COM.

Code is contributed under MIT/X11 license.

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

16 years ago2007-08-15 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 15 Aug 2007 14:13:10 +0000 (14:13 -0000)]
2007-08-15  Jonathan Chambers  <joncham@gmail.com>

* marshal.c (emit_marshal_com_interface): Patch from
Bill Holmes to handle COM Interfaces as return values
for native->managed calls.

Code is contributed under MIT/X11 license.

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

16 years ago2007-08-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 15 Aug 2007 14:09:31 +0000 (14:09 -0000)]
2007-08-15  Jonathan Pobst  <monkey@jpobst.com>

* TreeNode.cs: Add some serialization methods.

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

16 years agoImplemented Expression.Bind() method.
Federico Di Gregorio [Wed, 15 Aug 2007 12:24:00 +0000 (12:24 -0000)]
Implemented Expression.Bind() method.

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

16 years ago2007-08-15 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Wed, 15 Aug 2007 10:49:27 +0000 (10:49 -0000)]
2007-08-15  Ivan N. Zlatev  <contact@i-nz.net>

        * ImageIndexEditor.cs: empty class to prevent propertygrid crash.

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

16 years agoadded new Mainsoft.Configuration module
Igor Zelmanovich [Wed, 15 Aug 2007 10:46:38 +0000 (10:46 -0000)]
added new Mainsoft.Configuration module

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

16 years ago* TypeTest.cs: Added IsDefined tests for bug #82431. Added tests for
Gert Driesen [Wed, 15 Aug 2007 08:04:42 +0000 (08:04 -0000)]
* TypeTest.cs: Added IsDefined tests for bug #82431. Added tests for
GetCustomAttributes.
* MonoCustomAttrs.cs: In IsDefined, only walk inheritance chain if
both AttributeUsage.Inherited and inherit are true. Fixed bug #82431.

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

16 years ago2007-08-15 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Wed, 15 Aug 2007 07:16:26 +0000 (07:16 -0000)]
2007-08-15 Igor Zelmanovich <igorz@mainsoft.com>

* Page.cs: fixed:
- avoid NullRefferenceException from Title property
when Page does not have <head runat="server>,
- scriptManager.ResetEventValidationState () is called from Render.
It allows multiply calling of RenderControl returns the same output.

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

16 years agoavoid Exception when request contents header "X-MicrosoftAjax",
Igor Zelmanovich [Wed, 15 Aug 2007 07:06:16 +0000 (07:06 -0000)]
avoid Exception when request contents header "X-MicrosoftAjax",
but is handled not by Page contents SctiptManager.

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

16 years agoa set of cosmetic part of 2.0 remoting API fixes.
Atsushi Eno [Wed, 15 Aug 2007 05:47:35 +0000 (05:47 -0000)]
a set of cosmetic part of 2.0 remoting API fixes.

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

16 years ago2007-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 15 Aug 2007 05:15:42 +0000 (05:15 -0000)]
2007-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewCollectionsTest.cs: New tests for ListViewItemCollection
when used with ListViewGroup.
* ListViewGroupCollectionTest.cs: Likewise.
* ListViewItemTest.cs: Likewise.

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

16 years ago2007-08-14 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 15 Aug 2007 02:08:34 +0000 (02:08 -0000)]
2007-08-14  Jonathan Chambers  <joncham@gmail.com>

* PhysicalAddress.cs : Test only in 2.0 profile.
Fix build.

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

16 years ago2007-08-14 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 15 Aug 2007 01:58:10 +0000 (01:58 -0000)]
2007-08-14  Jonathan Chambers  <joncham@gmail.com>

* marshal.c (cominterop_get_idispatch_for_object): Implement
for runtime callable wrappers.

Code is contributed under MIT/X11 license.

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

16 years ago2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 14 Aug 2007 23:48:22 +0000 (23:48 -0000)]
2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: In ListViewItemCollection have a
'is_main_collection' field to not modify ListViewItem.ListView
when using it as ListViewGroup.Items (and not ListView.Items)
and also don't modify selection state (.Net behaviour).
Instead, set group for items contained in a ListViewGroup.Items collection.
* ListViewItem.cs: Simplify some code in Group setter.
* ListViewGroup.cs: use the new .ctor to pass the current instance
to the ItemsCollection.
* ListViewGroup.cs: Set the ListView property for ListViewGroup
instances when adding/removing. Also make Remove use RemoveAt, which
should perform better.

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

16 years agoMethodCallExpression complete. Added ArrayIndex and ArrayLength.
Federico Di Gregorio [Tue, 14 Aug 2007 22:12:39 +0000 (22:12 -0000)]
MethodCallExpression complete. Added ArrayIndex and ArrayLength.

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

16 years agoagain
Jb Evain [Tue, 14 Aug 2007 21:02:02 +0000 (21:02 -0000)]
again

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

16 years agoprotect some more internals
Jb Evain [Tue, 14 Aug 2007 20:44:16 +0000 (20:44 -0000)]
protect some more internals

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

16 years ago2007-08-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 14 Aug 2007 20:12:08 +0000 (20:12 -0000)]
2007-08-14  Jonathan Pobst  <monkey@jpobst.com>

* Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
that crept into the 1.1 profile.

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

16 years ago2007-08-14 Wade Berrier <wberrier@novell.com>
Wade Berrier [Tue, 14 Aug 2007 19:38:11 +0000 (19:38 -0000)]
2007-08-14  Wade Berrier  <wberrier@novell.com>

       * serial.c: include sys/time.h for mac osx 10.3 for timeval

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

16 years ago2007-08-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 14 Aug 2007 18:41:15 +0000 (18:41 -0000)]
2007-08-14  Jonathan Pobst  <monkey@jpobst.com>

* ToolBarButton.cs: Implement ImageKey.

2007-08-14  Jonathan Pobst  <monkey@jpobst.com>

* ToolBarButtonTest.cs: Add test showing how ImageIndex and ImageKey interact.

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

16 years agoSet eol-style.
Gert Driesen [Tue, 14 Aug 2007 18:27:40 +0000 (18:27 -0000)]
Set eol-style.

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

16 years ago* AggregateCacheDependencyTest.cs: Added test for bug #82419.
Gert Driesen [Tue, 14 Aug 2007 18:04:25 +0000 (18:04 -0000)]
* AggregateCacheDependencyTest.cs: Added test for bug #82419.
* System.Web_test.dll.sources: Added AggregateCacheDependencyTest.cs.

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

16 years ago2007-08-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Aug 2007 17:29:49 +0000 (17:29 -0000)]
2007-08-13  Rodrigo Kumpera  <rkumpera@novell.com>

* pedump.c (main): changed from mono_init to mono_init_from_assembly
so 2.0 types are accessible

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

16 years ago2007-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 14 Aug 2007 17:13:01 +0000 (17:13 -0000)]
2007-08-14  Marek Safar  <marek.safar@gmail.com>

** C# 3.0 Object and collection initializers

* cs-parser.jay: Grammar update.

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

16 years agoFix infinite recursion
Miguel de Icaza [Tue, 14 Aug 2007 16:26:49 +0000 (16:26 -0000)]
Fix infinite recursion

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

16 years agoTARGET_JVM: Environment.GetFolderPath is not supported.
Konstantin Triger [Tue, 14 Aug 2007 16:16:50 +0000 (16:16 -0000)]
TARGET_JVM: Environment.GetFolderPath is not supported.

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

16 years agoTARGET_JVM: ServicePoint.BindIPEndPointDelegate is not supported
Konstantin Triger [Tue, 14 Aug 2007 16:16:18 +0000 (16:16 -0000)]
TARGET_JVM: ServicePoint.BindIPEndPointDelegate is not supported

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

16 years agoNew tests.
Marek Safar [Tue, 14 Aug 2007 15:43:54 +0000 (15:43 -0000)]
New tests.

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

16 years agoMore tests.
Marek Safar [Tue, 14 Aug 2007 15:43:19 +0000 (15:43 -0000)]
More tests.

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

16 years ago2007-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 14 Aug 2007 15:42:24 +0000 (15:42 -0000)]
2007-08-14  Marek Safar  <marek.safar@gmail.com>

** C# 3.0 Object and collection initializers (major re-write)

* assign.cs (DoResolve): Initializers are not assign related.

* codegen.cs (EmitContext.CurrentInitializerVariable): Holds a varible
used during collection or object initialization.

* expression.cs (Error_InvalidArguments): Add initializers specific
messages. More will come later because it requires some general
refactoring.
(New.DoResolve): Better error handling for unsafe types.
(EmptyExpressionStatement): New class.
(ElementInitializer): An object initializer expression.
(CollectionElementInitializer): A collection initializer expression.
(CollectionOrObjectInitializers): A block of object or collection
initializers.
(NewInitialize): New expression with element/object initializers.

* statement.cs: Reverted object/collection initializer hacks.

* typemanager.cs (CSharpName): Filter __arglist type.

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

16 years ago2007-08-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 14 Aug 2007 15:41:12 +0000 (15:41 -0000)]
2007-08-14  Jonathan Pobst  <monkey@jpobst.com>

* ToolBar.cs: Implement ScaleControl/ScaleCore.

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

16 years agoTARGET_JVM: exclude not working tests
Konstantin Triger [Tue, 14 Aug 2007 15:26:49 +0000 (15:26 -0000)]
TARGET_JVM: exclude not working tests

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

16 years agoUpdate after System.Core refresh
Marek Safar [Tue, 14 Aug 2007 15:01:20 +0000 (15:01 -0000)]
Update after System.Core refresh

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

16 years agofix the 2.1 build
Jb Evain [Tue, 14 Aug 2007 14:30:39 +0000 (14:30 -0000)]
fix the 2.1 build

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

16 years agoAdd
Miguel de Icaza [Tue, 14 Aug 2007 14:26:53 +0000 (14:26 -0000)]
Add

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