Boris Kirzner [Thu, 23 Mar 2006 10:02:48 +0000 (10:02 -0000)]
merge -r 58060:58217
svn path=/branches/mainsoft/gh1.7/mcs/; revision=58349
Boris Kirzner [Thu, 23 Mar 2006 09:57:23 +0000 (09:57 -0000)]
merge -r 58185:58216
svn path=/branches/mainsoft/gh1.7/mcs/; revision=58347
Boris Kirzner [Tue, 21 Mar 2006 13:41:40 +0000 (13:41 -0000)]
Added OracleProvider implementation for TARGET_JVM
svn path=/trunk/mcs/; revision=58217
Boris Kirzner [Tue, 21 Mar 2006 13:40:02 +0000 (13:40 -0000)]
Expand OleDbOracleProvider with ResultSet wrappers
svn path=/trunk/mcs/; revision=58216
Kornél Pál [Tue, 21 Mar 2006 02:59:24 +0000 (02:59 -0000)]
* String.cs: Make memcpy4 private as it is a helper method. Make memcpy internal to can be used from UnicodeEncoding.; * UnicodeEncoding.cs: Use unsafe code for copying characters to speed up conversion.
svn path=/trunk/mcs/; revision=58213
Sebastien Pouliot [Tue, 21 Mar 2006 02:09:46 +0000 (02:09 -0000)]
make TextureWrapModes.cs works
svn path=/trunk/mcs/; revision=58212
Atsushi Eno [Tue, 21 Mar 2006 01:49:24 +0000 (01:49 -0000)]
2006-03-21 Atsushi Enomoto <atsushi@ximian.com>
* HebrewCalrndar.cs : simply use CCHebrewCalendar.last_day_of_month().
Patch by Yaacov Akiba Slama. Fixed bug #76252.
* CalendarTest.cs : added test for bug #76252.
svn path=/trunk/mcs/; revision=58211
Atsushi Eno [Tue, 21 Mar 2006 01:28:32 +0000 (01:28 -0000)]
2006-03-21 Atsushi Enomoto <atsushi@ximian.com>
* UnicodeEncodingTest.cs : added some zero-length tests.
svn path=/trunk/mcs/; revision=58210
Atsushi Eno [Tue, 21 Mar 2006 01:04:35 +0000 (01:04 -0000)]
2006-03-21 Atsushi Enomoto <atsushi@ximian.com>
* doc-bootstrap.cs : fix build.
svn path=/trunk/mcs/; revision=58209
Gonzalo Paniagua Javier [Mon, 20 Mar 2006 21:58:43 +0000 (21:58 -0000)]
2006-03-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRequest.cs:
(CheckString): style and don't index the string twice per iteration.
svn path=/trunk/mcs/; revision=58207
Marek Safar [Mon, 20 Mar 2006 21:53:54 +0000 (21:53 -0000)]
manually synchronized with 56802
svn path=/trunk/mcs/; revision=58206
Sebastien Pouliot [Mon, 20 Mar 2006 21:08:02 +0000 (21:08 -0000)]
2006-03-20 Sebastien Pouliot <sebastien@ximian.com>
* Brush.cs: Allow Dispose to free the unmanaged memory for the brush
in every case. This has been known (in the past) to cause crashes
in Cairo. If still true then we need to find out why!
svn path=/trunk/mcs/; revision=58204
Miguel de Icaza [Mon, 20 Mar 2006 20:45:14 +0000 (20:45 -0000)]
Some methods we need for Opendental
svn path=/trunk/mcs/; revision=58202
Miguel de Icaza [Mon, 20 Mar 2006 20:44:00 +0000 (20:44 -0000)]
Some methods we need for Opendental
svn path=/trunk/mcs/; revision=58201
Marek Safar [Mon, 20 Mar 2006 20:05:56 +0000 (20:05 -0000)]
2006-03-20 Marek Safar <marek.safar@seznam.cz>
* expression.cs (StringConcat.Append): Issue a warning when empty string
is going to append.
svn path=/trunk/mcs/; revision=58199
Miguel de Icaza [Mon, 20 Mar 2006 20:01:37 +0000 (20:01 -0000)]
2006-03-20 Miguel de Icaza <miguel@novell.com>
* CsprojInfo.cs: Handle spaces and () in filenames
svn path=/trunk/mcs/; revision=58197
Marek Safar [Mon, 20 Mar 2006 19:15:27 +0000 (19:15 -0000)]
2006-03-20 Marek Safar <marek.safar@seznam.cz>
* assign.cs (CompoundAssign.ResolveSource): Removed.
* attribute.cs (ResolvePossibleAttributeType): Updated after MemberAccess
clean up.
* class.cs (TypeContainer.FindMethods): Removed.
(TypeContainer.CheckMemberUsage): Made static.
* codegen.cs (GetAssemblyName): Uses Length for empty string test.
* constant.cs (CheckRange): Removed unused type argument.
(CheckUnsigned): Removed unused type argument.
* cs-parser.jay: Updated after MemberAccess clean up.
Uses Length for empty string test.
* cs-tokenizer.cs: Uses Length for empty string test.
(IsCastToken): Made static.
(is_hex): Made static.
(real_type_suffix): Made static.
* decl.cs (SetupCache): Made static.
(OnGenerateDocComment): Removed unused ds argument.
* delegate.cs (VerifyDelegate): Removed unused argument.
* doc.cs: Uses Length for empty string test.
* driver.cs: Uses Length for empty string test.
* enum.cs (IsValidEnumType): Made static
* expression.cs (EnumLiftUp): Removed unused argument.
(ResolveMethodGroup): Ditto.
(BetterConversion): Ditto.
(GetVarargsTypes): Ditto.
(UpdateIndices): Ditto.
(ValidateInitializers): Ditto.
(MemberAccess.ctor): Ditto.
(GetIndexersForType): Ditto.
* flowanalysis.cs: (MergeFinally): Removed unused argument.
* iterators.cs: Updated after MemberAccess clean up.
* location.cs: Uses Length for empty string test.
* namespace.cs: Uses Length for empty string test.
* report.cs (CheckWarningCode): Made static.
* statement.cs (LabeledStatement): Removed unused argument.
* typemanager.cs (FilterNone): Removed.
svn path=/trunk/mcs/; revision=58196
Paolo Molaro [Mon, 20 Mar 2006 17:56:52 +0000 (17:56 -0000)]
Mon Mar 20 18:56:21 CET 2006 Paolo Molaro <lupus@ximian.com>
* include/gc.h: enable pthread redirection on darwin, too.
svn path=/trunk/mono/; revision=58193
Gonzalo Paniagua Javier [Mon, 20 Mar 2006 17:23:44 +0000 (17:23 -0000)]
rename method
svn path=/trunk/mcs/; revision=58192
Raja R Harinath [Mon, 20 Mar 2006 14:56:09 +0000 (14:56 -0000)]
* gtest-260.cs: New test based on #77852.
svn path=/trunk/mcs/; revision=58188
Raja R Harinath [Mon, 20 Mar 2006 14:33:34 +0000 (14:33 -0000)]
Fix #77852
* generic.cs (Constraints.Resolve): Change argument to IResolveContext.
(TypeParameter.Resolve): Update to change.
(ConstraintChecker.CheckConstraints): Resolve type-argument
constraints before use.
svn path=/trunk/mcs/; revision=58187
Senganal T [Mon, 20 Mar 2006 14:18:25 +0000 (14:18 -0000)]
2006-03-20 Senganal T <tsenganal@novell.com>
* System.Data.Common/DataAdapter.cs :
- Ctor () : Set Default Values for DataAdapter members
* System.Data.Common/DbDataAdapter.cs :
- Update () : Call row.AcceptChanges only if AcceptChangesDuringUpdate
is true. Fixes bug #77776
svn path=/trunk/mcs/; revision=58185
Konstantin Triger [Mon, 20 Mar 2006 14:04:29 +0000 (14:04 -0000)]
Associate the AppDoamin with current thread
svn path=/trunk/mcs/; revision=58184
Zoltan Varga [Mon, 20 Mar 2006 14:01:27 +0000 (14:01 -0000)]
2006-03-20 Zoltan Varga <vargaz@gmail.com>
* libmono.vcproj: Add some newly added source files.
svn path=/trunk/mono/; revision=58183
Paolo Molaro [Mon, 20 Mar 2006 13:51:09 +0000 (13:51 -0000)]
Mon Mar 20 14:50:35 CET 2006 Paolo Molaro <lupus@ximian.com>
* monobitset.c, monobitset.h: added mono_bitset_find_first_unset ().
svn path=/trunk/mono/; revision=58181
Konstantin Triger [Mon, 20 Mar 2006 13:37:55 +0000 (13:37 -0000)]
merge -r 53370:58178
svn path=/branches/mainsoft/gh1.7/mcs/; revision=58180
Konstantin Triger [Mon, 20 Mar 2006 13:31:41 +0000 (13:31 -0000)]
merge -r 53370:58178
svn path=/branches/mainsoft/gh1.7/mcs/; revision=58179
Raja R Harinath [Mon, 20 Mar 2006 10:04:34 +0000 (10:04 -0000)]
* icall.c (ves_icall_Type_GetInterfaces): Avoid 'max_interface_id' field
of MonoClasses representing open generic types.
svn path=/trunk/mono/; revision=58178
Senganal T [Mon, 20 Mar 2006 10:01:09 +0000 (10:01 -0000)]
2006-03-20 Senganal T <tsenganal@novell.com>
* Test/System.Data/DataSetTest2.cs
- Added testcases for issues in Merge,Copy
* Test/System.Data/ConstraintCollectionTest2.cs
- Added testcases for issues in Add , IndexOf
* System.Data/DataSet.cs :
- CopyRelations () : When copying the relation, do not add constraints
automatically for the relation.
- OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
then throw DataException
* System.Data/ConstraintCollection.cs :
- Add () : Check if a constraint already exists on the Columns that are being
constrained.
- IndexOf () : Do not check for equivalent constraints, check for the exact instance.
* System.Data/MergeManager.cs ():
- AdjustSchema () :
- Handle the MissingSchemaAction.Error case,
- Do not create constraints when mergin the DataRelation
- Follow the semantics for schema merge/validation when constraints are already present
in the target DataSet.
- AdjustPrimaryKeys () :
- Code cleanup
- Verify Order of Columns in the PrimaryKey when merging.
- ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
- CompareColumnArrays, CompareColumnArrays : Helper funtions.
svn path=/trunk/mcs/; revision=58177
Raja R Harinath [Mon, 20 Mar 2006 09:30:47 +0000 (09:30 -0000)]
* icall.c (ves_icall_Type_GetInterfaces): Avoid using
'interface_id' field of open generic types.
svn path=/trunk/mono/; revision=58176
Raja R Harinath [Mon, 20 Mar 2006 09:29:44 +0000 (09:29 -0000)]
update
svn path=/trunk/mcs/; revision=58175
Boris Kirzner [Mon, 20 Mar 2006 07:49:05 +0000 (07:49 -0000)]
Fix spelling
svn path=/trunk/mcs/; revision=58174
Atsushi Eno [Mon, 20 Mar 2006 06:56:57 +0000 (06:56 -0000)]
2006-03-20 Atsushi Enomoto <atsushi@ximian.com>
* HebrewCalrndar.cs : removed commented obsolete code.
svn path=/trunk/mcs/; revision=58173
Gonzalo Paniagua Javier [Sun, 19 Mar 2006 23:18:01 +0000 (23:18 -0000)]
add requestLengthDiskThreshold to <httpRuntime>
svn path=/trunk/mono/; revision=58171
Gonzalo Paniagua Javier [Sun, 19 Mar 2006 23:16:17 +0000 (23:16 -0000)]
2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web/TempFileStream.cs: a FileStream that removes the file once
it is disposed.
* System.Web/HttpRequest.cs: support for writing request data to on-disk
files if the request is longer than the threshold specified in the
configuration files. In mono this will work for 1.x and 2.0, while with
MS this only works for 2.0.
* System.Web.dll.sources: add TempFileStream.cs
* System.Web.Configuration/HttpRuntimeConfigurationHandler.cs: removed
a bunch of useless stuff for 1.x.
svn path=/trunk/mcs/; revision=58170
Marek Safar [Sun, 19 Mar 2006 22:04:20 +0000 (22:04 -0000)]
manually synchronized with 56802
svn path=/trunk/mcs/; revision=58169
Miguel de Icaza [Sun, 19 Mar 2006 20:09:27 +0000 (20:09 -0000)]
Add README
svn path=/trunk/mono/; revision=58168
Zoltan Varga [Sun, 19 Mar 2006 19:28:22 +0000 (19:28 -0000)]
2006-03-19 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
(can_access_internals): Fix a warning.
svn path=/trunk/mono/; revision=58167
Zoltan Varga [Sun, 19 Mar 2006 19:01:46 +0000 (19:01 -0000)]
2006-03-19 Zoltan Varga <vargaz@gmail.com>
* mini.c (print_method_from_ip): Rename this to
mono_print_method_from_ip so it gets exported.
svn path=/trunk/mono/; revision=58165
Vladimir Krasnov [Sun, 19 Mar 2006 17:16:09 +0000 (17:16 -0000)]
* HtmlAnchor.cs: fixed RenderAttributes, if target attribute is empty it shouldn't be rendered
* HtmlForm.cs: fixed Method, default method "post" should be added if its value null or empty string
* HtmlInputImage.cs: fixed SetAtt, it removes attributes if it has null value, the fix is to remove attributes with empty string value too
svn path=/trunk/mcs/; revision=58162
Zoltan Varga [Sun, 19 Mar 2006 17:14:08 +0000 (17:14 -0000)]
2006-03-19 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
fixes #77787.
svn path=/trunk/mono/; revision=58161
Marek Safar [Sun, 19 Mar 2006 16:37:21 +0000 (16:37 -0000)]
New test.
svn path=/trunk/mcs/; revision=58159
Marek Safar [Sun, 19 Mar 2006 16:33:09 +0000 (16:33 -0000)]
manually synchronized with 56802
svn path=/trunk/mcs/; revision=58158
Boris Kirzner [Sun, 19 Mar 2006 16:32:53 +0000 (16:32 -0000)]
Ifdef code that is not supposed to pass in TARGET_JVM by now
svn path=/trunk/mcs/; revision=58157
Boris Kirzner [Sun, 19 Mar 2006 16:00:47 +0000 (16:00 -0000)]
Fixes to nunit results xslt transform
svn path=/trunk/mcs/; revision=58156
Robert Jordan [Sun, 19 Mar 2006 15:15:15 +0000 (15:15 -0000)]
2006-03-18 Robert Jordan <robertj@gmx.net>
* OutputCacheModule.cs: invoke the validation callbacks of
HttpCachePolicy. Fixes bug #77825.
svn path=/trunk/mcs/; revision=58153
Robert Jordan [Sun, 19 Mar 2006 15:14:47 +0000 (15:14 -0000)]
2006-03-18 Robert Jordan <robertj@gmx.net>
* HttpCachePolicy.cs: expose the validation callbacks.
Fixes bug #77825.
svn path=/trunk/mcs/; revision=58152
Marek Safar [Sun, 19 Mar 2006 13:21:16 +0000 (13:21 -0000)]
2006-03-19 Marek Safar <marek.safar@seznam.cz>
* Nullable.cs (Compare, Equals): Added constrain as gmcs now correctly
reports an error here.
svn path=/trunk/mcs/; revision=58151
Marek Sieradzki [Sun, 19 Mar 2006 09:21:18 +0000 (09:21 -0000)]
2006-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildPropertyGroup.cs, Expression.cs: Coding style fixed.
svn path=/trunk/mcs/; revision=58150
Gonzalo Paniagua Javier [Sat, 18 Mar 2006 21:34:32 +0000 (21:34 -0000)]
2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpApplication.cs: fix upper bound when iterating through the module
collection.
svn path=/trunk/mcs/; revision=58147
Marek Safar [Sat, 18 Mar 2006 21:21:14 +0000 (21:21 -0000)]
2006-03-18 Marek Safar <marek.safar@seznam.cz>
* codegen.cs (EmitContext.TestObsoleteMethodUsage): Removed as it become
obsolete.
* class.cs: Updated.
svn path=/trunk/mcs/; revision=58146
Marek Safar [Sat, 18 Mar 2006 17:10:43 +0000 (17:10 -0000)]
2006-03-18 Marek Safar <marek.safar@seznam.cz>
* cs-parser.jay.cs: __arglist is not allowed for delegates.
svn path=/trunk/mcs/; revision=58145
Marek Safar [Sat, 18 Mar 2006 15:50:35 +0000 (15:50 -0000)]
2006-03-18 Marek Safar <marek.safar@seznam.cz>
A fix for #77822.
* expression.cs(VerifyArgumentsCompat): Reverted to double error
reporting, it's more tricky than I thought.
svn path=/trunk/mcs/; revision=58144
Marek Safar [Sat, 18 Mar 2006 15:25:20 +0000 (15:25 -0000)]
2006-03-18 Marek Safar <marek.safar@seznam.cz>
A fix for #77816.
* anonymous.cs.cs (AnonymousMethod): Add host to allow access to
host container.
(AnonymousMethod.ImplicitStandardConversionExists): New method.
(AnonymousMethod.Compatible): Moved parameter resolving to DoResolve.
Add more error reporting; Fixed issue with params.
* convert.cs (ImplicitStandardConversionExists): Returned conversion check.
* cs-parser.jay: AnonymousMethod requires host container.
* delegate.cs (NewDelegate.DoResolve): Updated after Compatible changes.
svn path=/trunk/mcs/; revision=58142
Marek Sieradzki [Sat, 18 Mar 2006 12:34:32 +0000 (12:34 -0000)]
Fixed a typo.
svn path=/trunk/mcs/; revision=58141
Marek Sieradzki [Sat, 18 Mar 2006 12:20:57 +0000 (12:20 -0000)]
2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* InternalLoggerExceptionTest.cs, InvalidProjectFileExceptionTest.cs,
EngineTest.cs, ProjectTest.cs: Added new tests.
* BuildItemTest.cs: Added.
* Microsoft.Build.Engine.Test.sln, Microsoft.Build.Engine.Test.csproj:
Added VS 2005/SD2 solution.
svn path=/trunk/mcs/; revision=58140
Marek Sieradzki [Sat, 18 Mar 2006 12:07:38 +0000 (12:07 -0000)]
2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallersAttribute.
svn path=/trunk/mcs/; revision=58139
Marek Sieradzki [Sat, 18 Mar 2006 12:07:04 +0000 (12:07 -0000)]
2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* ManagedCompiler.cs: Fixed a typo.
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallersAttribute.
svn path=/trunk/mcs/; revision=58138
Marek Sieradzki [Sat, 18 Mar 2006 12:05:27 +0000 (12:05 -0000)]
2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallersAttribute.
svn path=/trunk/mcs/; revision=58137
Marek Sieradzki [Sat, 18 Mar 2006 12:03:52 +0000 (12:03 -0000)]
2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* Engine.cs: API cleanup.
svn path=/trunk/mcs/; revision=58136
Marek Sieradzki [Sat, 18 Mar 2006 12:03:06 +0000 (12:03 -0000)]
2006-03-18 Crestez Leonard <cdleonard@gmail.com>
* Project.cs: Cleaned up add.
* Expression.cs: Hacked to transform \ and / to path separators.
* BuildPropertyGroup.cs: Small cleanup.
* BuildTask.cs, TaskEngine.cs: Fix TaskEngine not getting a Project
reference.
svn path=/trunk/mcs/; revision=58135
Marek Sieradzki [Sat, 18 Mar 2006 12:01:44 +0000 (12:01 -0000)]
2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* Project.cs: Added new tests.
svn path=/trunk/mcs/; revision=58134
Raja R Harinath [Sat, 18 Mar 2006 07:07:50 +0000 (07:07 -0000)]
* class.cs: Change 'TypeContainer ds' constructor argument to
'DeclSpace parent'. Some classes were missed below due to
different naming convention.
svn path=/trunk/mcs/; revision=58133
Gert Driesen [Sat, 18 Mar 2006 06:30:13 +0000 (06:30 -0000)]
* XmlSchemaExporterTests.cs: Enabled tests for bug #77111.
* XmlSchemaExporter.cs: Import namespace of schema generated for
non-xsd primitive. Do not set zero-length TargetNamespace to avoid
emitting empty targetNamespace attribute in generated schema.
* XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
primitives.
svn path=/trunk/mcs/; revision=58132
Peter Dennis Bartok [Sat, 18 Mar 2006 01:17:27 +0000 (01:17 -0000)]
2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
* CreateParams.cs: Added internal menu field
* Control.cs:
- Switched call order for UpdateBounds; now we always call
the one that also takes ClientSize, and we're calculating the
client size via driver method in the others. The previous
method of tracking client size by difference wasn't working
for forms where even the starting client size wouldn't match
the overall form size (due to borders) (Part of fix for #77729)
- CreateParams(): Do not use parent.Handle unless the handle is
already created. Causes havoc with Nexxia and throws off our
creation of controls
* XplatUIX11.cs:
- Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
- Switched handling of ConfigureNotify over to new PerformNCCalc
method (consolidates code)
- Changed RequestNCRecalc to use new PerformNCCalc method
- Added calls to RequestNCRecalc when menus and borders are changed
to allow app to set NC size. (Part of fix for #77729) This matches
when MS send a WM_NCRECALC on Win32 windows.
- Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
(Part of fix for #77729). This matches what MS does, they also
send that message when the form is made visible.
- XException.GetMessage: Improved usability of X errors by including
a translation of the window into Hwnd and Control class
- Improved debug info for window creation, reparenting and destruction
- Created helper method WindowIsMapped() [Currently not used]
* XplatUIWin32.cs: Added ToString() debug helper to RECT structure
* Form.cs:
- CreateParams: Now setting our menu on the new internal menu field
- SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
avoid calculating the same property twice
* Hwnd.cs:
- Improved usability of ToString() for debugging purposes
- GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
determine the height of the menu, instead of just the font. This
required to also create a graphics context and to keep a bmp
around (for performance reasons)
svn path=/trunk/mcs/; revision=58131
Raja R Harinath [Fri, 17 Mar 2006 20:44:49 +0000 (20:44 -0000)]
* class.cs (MemberCore.Parent): Delete. This makes the
ParentContainer changes below enforceable by the compiler.
Of course, this was the my first change, and the previous patches in the
series were the fallout. However, I applied the changes in reverse order
to make the re-factoring clearer.
svn path=/trunk/mcs/; revision=58129
Raja R Harinath [Fri, 17 Mar 2006 20:36:03 +0000 (20:36 -0000)]
Treat pointers to enclosing declaration space as 'DeclSpace', not
'TypeContainer'.
* class.cs, const.cs, delegate.cs, enum.cs, iterator.cs: Change
'TypeContainer parent' constructor argument to 'DeclSpace parent'.
svn path=/trunk/mcs/; revision=58128
Raja R Harinath [Fri, 17 Mar 2006 20:11:14 +0000 (20:11 -0000)]
* statement.cs (LocalInfo..ctor): Use DeclSpace argument instead
of TypeContainer.
(Block.AddThisVariable): Likewise.
* class.cs (MethodData.Define, MethodData.Emit): Likewise.
(AbstractPropertyEventMethod.Emit): Likewise.
(AbstractPropertyEventMethod.EmitMethod): Likewise.
(GetMethod.Define, SetMethod.Define): Likewise.
(PropertyMethod.Define, DelegateMethod.Define): Likewise.
(DelegateMethod.EmitMethod): Likewise.
svn path=/trunk/mcs/; revision=58126
Raja R Harinath [Fri, 17 Mar 2006 19:50:00 +0000 (19:50 -0000)]
In mcs:
Fix regression test-partial-13.cs.
Rationalize use of PartialContainer. Ensure that the partial
class semantics can be tied to type-correctness, i.e., any
violation will cause a compile error.
* class.cs, const.cs: Access all fields that belong to class
TypeContainer via ParentContainer. Arguments of EmitContexts and
Resolve()-like functions still use 'Parent'.
In tests:
* test-partial-13.cs: New test for partial classes.
svn path=/trunk/mcs/; revision=58124
Peter Dennis Bartok [Fri, 17 Mar 2006 19:39:59 +0000 (19:39 -0000)]
2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs: Added OnMouseUp method
* Form.cs:
- Now remembering the requested client size, avoids size errors
- WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
instead of base if the menu is active. This is required due to
control now capturing and releasing on down/up and it would
prematurely release our menu capture
svn path=/trunk/mcs/; revision=58122
Raja R Harinath [Fri, 17 Mar 2006 19:14:19 +0000 (19:14 -0000)]
* class.cs (SourceMethod): Use DeclSpace, not TypeContainer.
(*.CreateEmitContext): Change TypeContainer argument to DeclSpace.
(PropertyMethod.CheckModifiers): Remove unused argument.
* codegen.cs (EmitContext..ctor): Change TypeContainer argument to DeclSpace.
svn path=/trunk/mcs/; revision=58118
Raja R Harinath [Fri, 17 Mar 2006 18:49:25 +0000 (18:49 -0000)]
Make semantics of PartialContainer simpler.
* decl.cs (DeclSpace.IsPartial): Remove.
* class.cs (TypeContainer.IsPartial): Likewise.
(TypeContainer..ctor): Set PartialContainer to point to self.
(TypeContainer.GetClsCompliantAttributeValue): Don't use IsPartial.
(TypeContainer.FindNestedType): Likewise.
(MemberCore.ParentContainer): Simplify. Remove deprecation.
svn path=/trunk/mcs/; revision=58117
Marek Safar [Fri, 17 Mar 2006 18:42:37 +0000 (18:42 -0000)]
2006-03-17 Marek Safar <marek.safar@seznam.cz>
* typemanager.cs.cs (GetInterfaces): Don't recreate 0-sized arrays.
svn path=/trunk/mcs/; revision=58115
Raja R Harinath [Fri, 17 Mar 2006 18:39:42 +0000 (18:39 -0000)]
Re-enable tests
svn path=/trunk/mcs/; revision=58114
Paolo Molaro [Fri, 17 Mar 2006 17:10:06 +0000 (17:10 -0000)]
Fri Mar 17 18:06:06 CET 2006 Paolo Molaro <lupus@ximian.com>
* object.h, object.c, icall.c: added functions to deal with
storing valuetypes that contain references in managed objects.
* reflection.c, string-icalls.c, threads.c, marshal.c: small
fixes and comments around uses of mono_array_addr ().
svn path=/trunk/mono/; revision=58113
Paolo Molaro [Fri, 17 Mar 2006 16:43:39 +0000 (16:43 -0000)]
Added sample valgrind suppression file.
svn path=/trunk/mono/; revision=58112
Sebastien Pouliot [Fri, 17 Mar 2006 16:03:55 +0000 (16:03 -0000)]
Matrix.cs: Add missing checks to methods (and fix unit tests).
svn path=/trunk/mcs/; revision=58111
Sebastien Pouliot [Fri, 17 Mar 2006 14:58:04 +0000 (14:58 -0000)]
fix build
svn path=/trunk/mcs/; revision=58110
Zoltan Varga [Fri, 17 Mar 2006 14:51:32 +0000 (14:51 -0000)]
2006-03-17 Zoltan Varga <vargaz@gmail.com>
* libmono.vcproj: Remove os/win32/util.h.
svn path=/trunk/mono/; revision=58109
Jackson Harper [Fri, 17 Mar 2006 13:45:57 +0000 (13:45 -0000)]
* KeyboardLayouts.cs: Add the czech layouts.
svn path=/trunk/mcs/; revision=58107
Raja R Harinath [Fri, 17 Mar 2006 13:32:26 +0000 (13:32 -0000)]
* ProjectData.cs (Finalize): Change into a destructor.
svn path=/trunk/mcs/; revision=58106
Jackson Harper [Fri, 17 Mar 2006 07:44:59 +0000 (07:44 -0000)]
- Use Implicit scrollbars on the datagrid so they arent
selectable.
svn path=/trunk/mcs/; revision=58103
Jackson Harper [Fri, 17 Mar 2006 07:33:22 +0000 (07:33 -0000)]
* DataGrid.cs: Bind the cached_currencymgr_events to the
* real data
source, otherwise when rows are added they are added to the
'fake'
datasource and we will crash when trying to set the position in
those rows.
svn path=/trunk/mcs/; revision=58102
Jackson Harper [Fri, 17 Mar 2006 06:58:19 +0000 (06:58 -0000)]
* BindingContext.cs: Cleanup to use the DataSourceEntrys instead
of ManagerEntrys.
- Handle creating BindingManagers for null data sources.
svn path=/trunk/mcs/; revision=58101
Jackson Harper [Fri, 17 Mar 2006 00:55:03 +0000 (00:55 -0000)]
* Control.cs: Use the viewport space when sizing not the
* controls
client size, so things like ScrollableControl that effect the
viewport size (when scrollbars are added) are computed
correctly.
svn path=/trunk/mcs/; revision=58096
Gonzalo Paniagua Javier [Thu, 16 Mar 2006 23:57:21 +0000 (23:57 -0000)]
2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRequest.cs: use the provided content encoding to decode the file
name. Fixes bug #77714.
svn path=/trunk/mcs/; revision=58094
Jackson Harper [Thu, 16 Mar 2006 23:49:40 +0000 (23:49 -0000)]
* Binding.cs:
* InternalWindowManager.cs:
* MdiWindowManager.cs:
* X11Keyboard.cs: I really want Mike to love me again (fix
compiler warnings).
svn path=/trunk/mcs/; revision=58093
Peter Dennis Bartok [Thu, 16 Mar 2006 23:39:26 +0000 (23:39 -0000)]
2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
* DataGrid.cs:
- OnMouseDown: Switch to editing mode when clicking on the cell
even if we're clicking on the cell that's currently
selected
- ProcessGridKey: Left/Right now wrap like MS.Net does
- ProcessGridKey: Tab now knows to add a new row when tab is
pressed in the cell of the last column of the
last row
- ProcessGridKey: Enter now adds another row if pressed in the last
row and selectes the new row, same column cell
- ProcessGridKey: Home/End navigate columns, not rows, like
originally implemented
- Broke ProcessKeyPreview code out into an extra Internal method
so it can be called from the edit code
* DataGridTextBox.cs (ProcessKeyMessage):
- Switched to accept Tab keypresses
- Added F2 handling to allow jumping to the end of the edited cell
- Added logic to allow moving caret left/right inside edited cell
and making the edited cell jump when the caret hits cell borders
- Tab and Enter are now passed to the datagrid after being handled
* TextBoxBase.cs:
- Removed capture code now that Control handles it
- set_SelectionStart now ensures caret is visible
svn path=/trunk/mcs/; revision=58092
Jackson Harper [Thu, 16 Mar 2006 23:35:44 +0000 (23:35 -0000)]
* TrackBar.cs: Debackwards the increment/decrement for handling
mouse clicks on the bar with vertical trackbars.
* ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
bottom to match MS.
svn path=/trunk/mcs/; revision=58091
Mike Kestner [Thu, 16 Mar 2006 23:20:35 +0000 (23:20 -0000)]
2006-03-16 Mike Kestner <mkestner@novell.com>
* ListView.cs: make shift/ctrl keyboard and mouse selection
consistent with the MS control. Fix a bug in
SelectedListViewItemCollection.Clear that was pissing me off for the
better part of a day because the collection was being altered
underneath us as we walked the list.
svn path=/trunk/mcs/; revision=58090
Atsushi Eno [Thu, 16 Mar 2006 22:45:30 +0000 (22:45 -0000)]
2006-03-16 Atsushi Enomoto <atsushi@ximian.com>
* TextInfo.cs : (ToUpper/ToLower) use InternalAllocateStr() and
pointers rather than StringBuilder.
svn path=/trunk/mcs/; revision=58089
Neale Ferguson [Thu, 16 Mar 2006 20:04:53 +0000 (20:04 -0000)]
* mini-s390.c: Remove OP_X86_TEST_NULL.
svn path=/trunk/mono/; revision=58087
Peter Dennis Bartok [Thu, 16 Mar 2006 19:33:34 +0000 (19:33 -0000)]
2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Not sure how we could miss this so long, but it seems
that MS.Net has Capture set all the way from before calling
OnMouseDown through sending the mouse events until after
OnMouseUp. This will fix DataGrid's selection being set to end
at the location of the MouseUp.
svn path=/trunk/mcs/; revision=58086
Gonzalo Paniagua Javier [Thu, 16 Mar 2006 19:26:03 +0000 (19:26 -0000)]
2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
zero.
svn path=/trunk/mcs/; revision=58084
Zoltan Varga [Thu, 16 Mar 2006 19:03:15 +0000 (19:03 -0000)]
2006-03-16 Zoltan Varga <vargaz@gmail.com>
* monobitset.c: Guard inline asm with #ifdef __GNUC__.
* monobitset.c (mono_bitset_find_first): Turn a g_return_val_if_fail
into an assert.
svn path=/trunk/mono/; revision=58080
Boris Kirzner [Thu, 16 Mar 2006 18:17:07 +0000 (18:17 -0000)]
Added SqlClient automated tests for TARGET_JVM
svn path=/trunk/mcs/; revision=58074
Martin Baulig [Thu, 16 Mar 2006 17:26:23 +0000 (17:26 -0000)]
New test.
svn path=/trunk/mcs/; revision=58072
Martin Baulig [Thu, 16 Mar 2006 17:18:05 +0000 (17:18 -0000)]
2006-03-16 Martin Baulig <martin@ximian.com>
* generic.cs
(ConstraintChecker.HasDefaultConstructor): If we're a TypeBuilder
and don't have any instance constructors, also lookup in the base class.
(TypeManager.IsNullableValueType): New public method.
* typemanager.cs (TypeManager.MemberLookup_FindMembers): Clear the
`BindingFlags.DeclaredOnly' flag and set `used_cache'.
(TypeManager.TryGetBaseDefinition): Use DropGenericMethodArguments().
* expression.cs (Unary.DoResolve): Use TypeManager.IsNullableValueType()
instead of just TypeManager.IsNullableType() to determine whether
a lifted operator exists.
(UnaryMutator.DoResolve): Likewise.
(Conditional.DoResolve): Likewise.
(Binary.DoResolve): A lifted operator only exists if both operands
are valuetypes and at least one of them is a nullable type.
svn path=/trunk/mcs/; revision=58071
Ankit Jain [Thu, 16 Mar 2006 17:04:44 +0000 (17:04 -0000)]
In class/corlib/System.Collections.Generic:
* List.cs (CheckIndex): Check for -ve indices and allow index == size.
(Insert): Use CheckIndex.
In class/corlib/Test/System.Collections.Generic:
* ListTest.cs: Add some tests for InsertRange.
svn path=/trunk/mcs/; revision=58069
Atsushi Eno [Thu, 16 Mar 2006 17:02:45 +0000 (17:02 -0000)]
2006-03-16 Atsushi Enomoto <atsushi@ximian.com>
* Double.cs : (Parse) reject String.Empty.
* DoubleTest.cs : added ParseEmptyString().
svn path=/trunk/mcs/; revision=58068