Martin Baulig [Wed, 27 Sep 2006 09:36:59 +0000 (09:36 -0000)]
2006-09-27 Martin Baulig <martin@ximian.com>
* report.cs
(InternalErrorException): Added overloaded ctor taking a params array.
svn path=/trunk/mcs/; revision=65952
Zoltan Varga [Wed, 27 Sep 2006 08:11:29 +0000 (08:11 -0000)]
2006-09-27 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_load_type_info): Fix a typo which caused an assert. Fixes
#79217.
svn path=/trunk/mono/; revision=65944
Marek Safar [Tue, 26 Sep 2006 23:13:31 +0000 (23:13 -0000)]
2006-09-26 Marek Safar <marek.safar@seznam.cz>
* class.cs, codegen.cs, const.cs, cs-tokenizer.cs, driver.cs, ecore.cs:
Fixed the cases when same error was reported twice.
* report.cs (SymbolRelatedToPreviousError): Simplified as all our messages
now report symbol information.
svn path=/trunk/mcs/; revision=65942
Chris Toshok [Tue, 26 Sep 2006 22:02:38 +0000 (22:02 -0000)]
* XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
and caption == "", we need to remove the resize handles as well as
the title bar.
* Control.cs (set_Text): turns out that setting Text on a form
should change the WM styles on the window, since if ControlBox ==
false, the only way to get a window border is to have a non-""
Text property. check winforms/forms/text.cs for an example. so,
call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
update both window styles and title. This fixes a lot of dialogs
(including the preferences dialog in MonoCalendar.)
2006-09-26 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=65941
Chris Toshok [Tue, 26 Sep 2006 21:58:25 +0000 (21:58 -0000)]
2006-09-26 Chris Toshok <toshok@ximian.com>
* XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
control isn't a Form), call Win32ShowWindow to hide the window,
but don't update the control Visible property. When we reparent
back to a parent control, call SetVisible in order for the
window's visibility to be reinstated.
* XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
the FosterParent.
* Control.cs (ControlCollection.Remove): remove that value.Hide()
call for good, since it breaks MonoCalendar (and other things I'm
sure.) Also, set all_controls to null *after* the owner calls,
which end up regenerating it.
(ChangeParent): allow new_parent to be == null, passing
IntPtr.Zero down to XplatUI.
this fixes #79294 the right way.
svn path=/trunk/mcs/; revision=65940
Mike Kestner [Tue, 26 Sep 2006 21:24:15 +0000 (21:24 -0000)]
2006-09-26 Mike Kestner <mkestner@novell.com>
* GridEntry.cs : internal SetParent method.
* PropertyGrid.cs : attach to property changed on the proper
target if we have a hierarchical grid with subobjects. Setup
GridItem.Parent for hierarchical items.
* PropertyGridView.cs : Set value on the correct target for
hierarchical grids. [Fixes #78903]
svn path=/trunk/mcs/; revision=65937
Marek Safar [Tue, 26 Sep 2006 20:56:40 +0000 (20:56 -0000)]
Updated.
svn path=/trunk/mcs/; revision=65934
Chris Toshok [Tue, 26 Sep 2006 20:08:30 +0000 (20:08 -0000)]
* Control.cs (ChildNeedsRecreating): this should return true if
either we're being recreated and the child is in our list, or our
parent is waiting for our recreation.
2006-09-26 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=65932
Chris Toshok [Tue, 26 Sep 2006 18:46:34 +0000 (18:46 -0000)]
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs (ControlCollection.Remove): reinstate the
value.Hide() call as suggested in bug #79294.
svn path=/trunk/mcs/; revision=65931
Sebastien Pouliot [Tue, 26 Sep 2006 18:33:13 +0000 (18:33 -0000)]
2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
* XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
coordinates (versus a relative move).
svn path=/trunk/mcs/; revision=65930
Chris Toshok [Tue, 26 Sep 2006 18:24:48 +0000 (18:24 -0000)]
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs: rework child recreation a little bit. It turns out
that we race between the DestroyNotify the WM_DESTROY message. If
the parent gets its DestroyNotify before the child gets the
WM_DESTROY message, the child ends up not recreating (since the
parent finishes its recreation on DestroyNotify, and the child
checks ParentIsRecreating.)
So, instead we store off a list of all the child controls which
need to be recreated when the parent control starts to recreate
itself. Then, when child controls get their WM_DESTROY message we
check to see if they're in the parent's pending recreation list,
and if so, we recreate. This removes all dependency on ordering
from the code and fixes the initial MonoCalendar upgrade dialog.
svn path=/trunk/mcs/; revision=65929
Jackson Harper [Tue, 26 Sep 2006 18:06:30 +0000 (18:06 -0000)]
* TextControl.cs: Use the Line to get the length of the line,
since soft line breaks can change the end line.
svn path=/trunk/mcs/; revision=65928
Chris Toshok [Tue, 26 Sep 2006 17:18:51 +0000 (17:18 -0000)]
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs (ControlCollection.AddImplicit): don't add the
control again if it's already in one of our lists. This keeps us
from adding controls over and over again for comboboxes when their
handle gets recreated (as the combobox adds implicit controls in
OnHandleCreated). Fixes the X11 errors in bug #79480.
svn path=/trunk/mcs/; revision=65927
Gonzalo Paniagua Javier [Tue, 26 Sep 2006 16:49:20 +0000 (16:49 -0000)]
2006-09-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* QueueManager.cs: if disposed, always return null for next request.
* HttpRuntime.cs: dispose the queue manager when shutting down the
domain. This will close pending requests with a 503.
* HttpApplication.cs: release the handler before marking the request
as completed. If in PipelineDone context is null, use
HttpContext.Current. Fixes some of those "Tick detected an unhandled
exception" errors printed out.
svn path=/trunk/mcs/; revision=65926
Atsushi Eno [Tue, 26 Sep 2006 15:52:09 +0000 (15:52 -0000)]
2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
* XmlDeclaration.cs :
Removed bogus return statement in Value. Fixed bug #79496.
* XmlDeclarationTests.cs : added bug #79496 case.
svn path=/trunk/mcs/; revision=65921
Zoltan Varga [Tue, 26 Sep 2006 14:59:27 +0000 (14:59 -0000)]
2006-09-26 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_delegate_invoke): Tweak the IL a little so better code
could be generated from it.
svn path=/trunk/mono/; revision=65920
Zoltan Varga [Tue, 26 Sep 2006 12:46:51 +0000 (12:46 -0000)]
2006-09-26 Zoltan Varga <vargaz@gmail.com>
* mini.h: Remove the comment too then.
svn path=/trunk/mono/; revision=65917
Paolo Molaro [Tue, 26 Sep 2006 12:11:19 +0000 (12:11 -0000)]
Tue Sep 26 14:02:58 CEST 2006 Paolo Molaro <lupus@ximian.com>
* mini.h: put back backend.data which is to be used shortly and
doesn't increase the size of MonoInst. If any 64 bit arch aligned
pointers on 4 byte boundaries it'd have much bigger issues running
and you can ifdef it out anyway.
svn path=/trunk/mono/; revision=65915
Yoni Klain [Tue, 26 Sep 2006 12:06:04 +0000 (12:06 -0000)]
Add new tests to CheckBoxTest.cs net_2_0 category
svn path=/trunk/mcs/; revision=65914
Nagappan Alagappan [Tue, 26 Sep 2006 11:30:56 +0000 (11:30 -0000)]
* DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
DataRow.cs: Implementation of Binary Serialization /
Deserialization.
svn path=/trunk/mcs/; revision=65913
Boris Kirzner [Tue, 26 Sep 2006 11:16:47 +0000 (11:16 -0000)]
Fix build for TARGET_JVM.
svn path=/trunk/mcs/; revision=65912
Nagappan Alagappan [Tue, 26 Sep 2006 11:11:17 +0000 (11:11 -0000)]
* DataTable.cs (RowsExist): Check rows based on version.
svn path=/trunk/mcs/; revision=65911
Zoltan Varga [Tue, 26 Sep 2006 10:26:28 +0000 (10:26 -0000)]
2006-09-26 Zoltan Varga <vargaz@gmail.com>
* mini.h (MonoInst): Remove backend.data field since it is unused and increases
MonoInst size by 4 bytes on 64 bit machines.
svn path=/trunk/mono/; revision=65910
Paolo Molaro [Tue, 26 Sep 2006 10:09:25 +0000 (10:09 -0000)]
Tue Sep 26 11:57:26 CEST 2006 Paolo Molaro <lupus@ximian.com>
* *.{c,h,brg}: long due removal of the unused field in MonoInst and
replacement with more meaningful field names. Arch maintainers, please
check the assigned names are good enough for your arch.
svn path=/trunk/mono/; revision=65909
Nagappan Alagappan [Tue, 26 Sep 2006 08:52:08 +0000 (08:52 -0000)]
* Tds70.cs : Fixed bug in FormatParameter() which caused
ArgumentOutOfRangeException when formatting 0-length varbinary values
under 1.0 profile.
svn path=/trunk/mcs/; revision=65905
Boris Kirzner [Tue, 26 Sep 2006 08:51:01 +0000 (08:51 -0000)]
Log files naming fix.
svn path=/trunk/mcs/; revision=65904
Nagappan Alagappan [Tue, 26 Sep 2006 08:50:59 +0000 (08:50 -0000)]
* SqlTest.cs: Added test for inserting zero-length varbinary.
svn path=/trunk/mcs/; revision=65903
Zoltan Varga [Tue, 26 Sep 2006 07:53:32 +0000 (07:53 -0000)]
2006-09-26 Zoltan Varga <vargaz@gmail.com>
* cpu-ia64.md mini-ia64.c inssel-ia64.brg mini-ops.h: Get rid of the
OP_IA64_FETCHADD opcodes, use OP_ATOMIC_ADD_IMM_NEW opcodes instead.
svn path=/trunk/mono/; revision=65901
Nagappan Alagappan [Tue, 26 Sep 2006 06:46:32 +0000 (06:46 -0000)]
* DataRow.cs: Raise exception same as MS.NET. Thanks to
Hubert FONGARNAND <informatique.internet@fiducial.fr> for
providing this patch.
svn path=/trunk/mcs/; revision=65899
Jackson Harper [Tue, 26 Sep 2006 05:27:49 +0000 (05:27 -0000)]
* TextControl.cs: When deleting characters make sure that any
orphaned zero lengthed tags get deleted.
- Fix ToString for zero lengthed tags.
svn path=/trunk/mcs/; revision=65897
Gert Driesen [Mon, 25 Sep 2006 21:20:53 +0000 (21:20 -0000)]
* SignedXmlTest.cs: Added tests for bug #79454 and #79483 (marked NotWorking).
Set eol-style to native.
svn path=/trunk/mcs/; revision=65894
Jackson Harper [Mon, 25 Sep 2006 20:59:34 +0000 (20:59 -0000)]
* TextControl.cs: When getting a tag at the location there can
* be
multiple tags at the same spot, these are 0-lengthed tags that
appear when extra formatting has been stuck in a location. We
need to pull out the last of these 0 lengthed tags.
svn path=/trunk/mcs/; revision=65893
Jackson Harper [Mon, 25 Sep 2006 20:07:48 +0000 (20:07 -0000)]
* TextBoxBase.cs: When text is set bail if we are setting to the
previous value.
svn path=/trunk/mcs/; revision=65891
Paolo Molaro [Mon, 25 Sep 2006 18:59:25 +0000 (18:59 -0000)]
Fix for last millennium compilers.
svn path=/trunk/mono/; revision=65889
Jackson Harper [Mon, 25 Sep 2006 16:56:35 +0000 (16:56 -0000)]
* TextControl.cs: Fix print out in debug method.
svn path=/trunk/mcs/; revision=65887
Martin Baulig [Mon, 25 Sep 2006 15:42:25 +0000 (15:42 -0000)]
2006-09-25 Martin Baulig <martin@ximian.com>
* class.cs: Completely unified with the gmcs version.
svn path=/trunk/mcs/; revision=65886
Martin Baulig [Mon, 25 Sep 2006 14:15:09 +0000 (14:15 -0000)]
2006-09-25 Martin Baulig <martin@ximian.com>
* typemanager.cs (TypeManager.IsNullableType): New public function.
(TypeManager.IsNullableTypeOf): Likewise.
(TypeManager.IsNullableValueType): Likewise.
* class.cs (MethodCore): Added the `GenericMethod' argument from
gmcs and also unified all classes derived from `MethodCore' with gmcs.
svn path=/trunk/mcs/; revision=65884
Andrew Skiba [Mon, 25 Sep 2006 13:52:28 +0000 (13:52 -0000)]
NunitWeb test suite - create separate versions of Web.config for mono and for .Net
svn path=/trunk/mcs/; revision=65882
Paolo Molaro [Mon, 25 Sep 2006 11:50:33 +0000 (11:50 -0000)]
Mon Sep 25 13:29:53 CEST 2006 Paolo Molaro <lupus@ximian.com>
* rand.c: fix read loop to correctly handle EINTR.
svn path=/trunk/mono/; revision=65881
Igor Zelmanovich [Mon, 25 Sep 2006 11:48:43 +0000 (11:48 -0000)]
2006-09-25 Igor Zelmanovich <igorz@mainsoft.com>
* DataBoundControl.cs: fixed: DataBind flow
GetData return "empty" DataSourceView when no DataSource and DataSourceID
was assigned to cause PerformDataBinding be called.
svn path=/trunk/mcs/; revision=65880
Igor Zelmanovich [Mon, 25 Sep 2006 11:26:45 +0000 (11:26 -0000)]
* Page.cs: fixed: Cross-page postback feature in ASP.NET 2.0
When page is invoked by cross-page posting, PreviousPage processed all live-cycle up to OnLoadComplite included.
IsPostBack, IsCallBack and IsCrossPagePostBack returns relevant values.
svn path=/trunk/mcs/; revision=65879
Paolo Molaro [Mon, 25 Sep 2006 09:40:16 +0000 (09:40 -0000)]
Documentation updates.
svn path=/trunk/mono/; revision=65878
Paolo Molaro [Mon, 25 Sep 2006 09:36:47 +0000 (09:36 -0000)]
Mon Sep 25 11:33:06 CEST 2006 Paolo Molaro <lupus@ximian.com>
* Makefile.am, icall-def.h, icall.c, verify.c: changed the way
internal calls are defined to keep methods closer to the declaring
type and allow a significant reduction in runtime relocations and
memory usage.
svn path=/trunk/mono/; revision=65877
Paolo Molaro [Mon, 25 Sep 2006 09:32:40 +0000 (09:32 -0000)]
Thu Sep 21 19:30:04 CEST 2006 Paolo Molaro <lupus@ximian.com>
* class.c, object.c, class-internals.h, reflection.c:
for arrays, store element_size inside MonoClass (speedup
for array object creation).
svn path=/trunk/mono/; revision=65876
Paolo Molaro [Mon, 25 Sep 2006 09:08:19 +0000 (09:08 -0000)]
Mon Sep 25 11:05:24 CEST 2006 Paolo Molaro <lupus@ximian.com>
* mini.h, driver.c, optflags-def.h, Makefile.am: reduce runtime
relocations and memory requirements, put the optimization flags
definitions in their own file.
svn path=/trunk/mono/; revision=65875
Raja R Harinath [Sun, 24 Sep 2006 18:40:53 +0000 (18:40 -0000)]
* mcs/convert.cs: Unify with gmcs version.
* gmcs/convert.cs: Remove after unification with mcs source.
svn path=/trunk/mcs/; revision=65870
Gonzalo Paniagua Javier [Sun, 24 Sep 2006 18:25:48 +0000 (18:25 -0000)]
remove writelines
svn path=/trunk/mcs/; revision=65869
Gonzalo Paniagua Javier [Sun, 24 Sep 2006 18:21:08 +0000 (18:21 -0000)]
2006-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* DataList.cs: use ExtractTemplateRows to determine if the style is
applied to the Table in a template or to its rows. Fixes bug #78058.
svn path=/trunk/mcs/; revision=65868
Raja R Harinath [Sun, 24 Sep 2006 17:41:15 +0000 (17:41 -0000)]
* FileInfoTest.cs (IsReadOnly): Fix compilation. Mark as NotWorking.
svn path=/trunk/mcs/; revision=65867
Zoltan Varga [Sun, 24 Sep 2006 17:11:12 +0000 (17:11 -0000)]
2006-09-24 Zoltan Varga <vargaz@gmail.com>
* jit-icalls.c (mono_helper_stelem_ref): Remove this unused helper function.
* mini.c (mini_init): Remove reference to mono_helper_stelem_ref.
svn path=/trunk/mono/; revision=65866
Marek Safar [Sun, 24 Sep 2006 16:09:59 +0000 (16:09 -0000)]
New tests.
svn path=/trunk/mcs/; revision=65863
Marek Safar [Sun, 24 Sep 2006 16:09:21 +0000 (16:09 -0000)]
2006-09-24 Marek Safar <marek.safar@seznam.cz>
* decl.cs (DeclSpace.VerifyClsCompliance): When type has type parameters
verify them as well.
* report.cs: New warning.
GMCS:
2006-09-24 Marek Safar <marek.safar@seznam.cz>
* class.cs (MemberBase.VerifyClsCompliance): When method has type
parameters verify them as well.
* generic.cs (Constraints.VerifyClsCompliance): Verify CLS-Compliance of
the type parameter constraints.
(Generics.VerifyClsCompliance): Ditto.
svn path=/trunk/mcs/; revision=65862
Joshua Tauberer [Sun, 24 Sep 2006 15:20:00 +0000 (15:20 -0000)]
Allow the Mono.CompilerServices.SymbolWriter.MonoSymbolFile class to be created without passing a System.Reflection.Assembly so that we can use this lib with Cecil.
svn path=/trunk/mcs/; revision=65859
Gonzalo Paniagua Javier [Sun, 24 Sep 2006 14:52:17 +0000 (14:52 -0000)]
2006-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileInfoTest.cs: improved IsReadOnly test case. Patch by Joel Reed.
svn path=/trunk/mcs/; revision=65854
Gonzalo Paniagua Javier [Sun, 24 Sep 2006 14:40:04 +0000 (14:40 -0000)]
revert my last patch. It broke a test
svn path=/trunk/mcs/; revision=65853
Marek Safar [Sun, 24 Sep 2006 13:03:14 +0000 (13:03 -0000)]
New tests.
svn path=/trunk/mcs/; revision=65851
Marek Safar [Sun, 24 Sep 2006 13:02:30 +0000 (13:02 -0000)]
2006-09-24 Marek Safar <marek.safar@seznam.cz>
* anonymous.cs (AnonymousMethod.Compatible): Cannot generate arguments
for anonymous block with out argument.
svn path=/trunk/mcs/; revision=65850
Alexander Olk [Sun, 24 Sep 2006 11:55:32 +0000 (11:55 -0000)]
Also, send the FontXXXTextBox mouse wheel event to the corresponding
FontXXXListBoxes to match ms.
svn path=/trunk/mcs/; revision=65846
Marek Safar [Sun, 24 Sep 2006 10:15:28 +0000 (10:15 -0000)]
New test based on #77754
svn path=/trunk/mcs/; revision=65845
Alexander Olk [Sun, 24 Sep 2006 09:54:29 +0000 (09:54 -0000)]
2006-09-24 Alexander Olk <alex.olk@googlemail.com>
* FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
It is now possible to change the selected index in a FontXXXListBox
with the up and down arrow keys from the FontXXXTextBoxes.
svn path=/trunk/mcs/; revision=65844
Marek Safar [Sat, 23 Sep 2006 23:25:33 +0000 (23:25 -0000)]
Add extra test.
svn path=/trunk/mcs/; revision=65843
Marek Safar [Sat, 23 Sep 2006 23:15:46 +0000 (23:15 -0000)]
New tests, update.
svn path=/trunk/mcs/; revision=65841
Marek Safar [Sat, 23 Sep 2006 23:15:13 +0000 (23:15 -0000)]
2006-09-24 Marek Safar <marek.safar@seznam.cz>
* class.cs (ClassOrStruct.VerifyMembers): Fixed to report correctly
not used private events only.
svn path=/trunk/mcs/; revision=65840
Marek Safar [Sat, 23 Sep 2006 18:43:01 +0000 (18:43 -0000)]
Warnings.
svn path=/trunk/mcs/; revision=65836
Marek Safar [Sat, 23 Sep 2006 18:41:27 +0000 (18:41 -0000)]
Updated.
svn path=/trunk/mcs/; revision=65835
Marek Safar [Sat, 23 Sep 2006 18:39:27 +0000 (18:39 -0000)]
New tests.
svn path=/trunk/mcs/; revision=65834
Marek Safar [Sat, 23 Sep 2006 18:37:59 +0000 (18:37 -0000)]
2006-09-23 Marek Safar <marek.safar@seznam.cz>
* cfold.cs (BinaryFold): On the guest to unify empty constant cast.
* const.cs (Const.Define): Check for constant type.
(Const.IsConstantTypeValid): Looks for valid constant types.
* convert.cs (ImplicitReferenceConversion): NullCast to EmptyConstantCast.
* ecore.cs (EmptyConstantCast): New common class for all constant based
EmptyCast(s).
* expression.cs (Is.DoResolve): Handle null constant especially.
(New.DoResolve): Check for new void().
(MemberAccess.DoResolve): Cope with all kind of nulls.
* literal.cs (NullConstant): Uses EmptyConstantCast.
(NullDefault): Based on EmptyConstantCast.
(NullLiteral): Uses EmptyConstantCast.
* statement.cs (Block.ResolveMeta): Check for constant type.
GMCS:
2006-09-23 Marek Safar <marek.safar@seznam.cz>
* convert.cs (ImplicitReferenceConversion): NullCast to EmptyConstantCast.
* cs-parser.jay: Parse correctly cast of default (T).
* generic.cs (DefaultValueExpression.DoResolve): Check for void type.
Store original type via EmptyConstantCast.
svn path=/trunk/mcs/; revision=65833
Sebastien Pouliot [Sat, 23 Sep 2006 00:23:00 +0000 (00:23 -0000)]
2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
* SystemInformationTest.cs: Add tests case for MenuFont.
svn path=/trunk/mcs/; revision=65831
Sebastien Pouliot [Sat, 23 Sep 2006 00:22:13 +0000 (00:22 -0000)]
2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
* SystemInformation.cs: Return a clone of the theme's MenuFont because
anyone can dispose it, anytime. All other properties returns enums,
structs or basic types so they don't need such tricks.
svn path=/trunk/mcs/; revision=65830
Zoltan Varga [Fri, 22 Sep 2006 18:00:01 +0000 (18:00 -0000)]
2006-09-22 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (add_valuetype): Fix an uninitialized memory issue.
svn path=/trunk/mono/; revision=65824
Gert Driesen [Fri, 22 Sep 2006 17:52:55 +0000 (17:52 -0000)]
* AssemblyInfo.cs: AssemblyConfiguration and AssemblyTrademark
attributes are 1.1 only. Added AssemblyFileVersion, Debuggable and
CompilationRelaxtations attribute for 2.0 profile.
* ServiceProcessInstaller.cs: Added missing ServiceProcessDescription
attribute.
* ServiceAccount.cs: Removed extra Serializable attribute.
* ServiceInstaller.cs: Added ServiceProcessDescriptions.
* ServiceBase.cs: Added descriptions for ServiceProcessDescription
as reported by class status. Modified return type of OnPowerEvent
from void to bool.
* ServiceController.cs: Added description for class-level
ServiceProcessDescription. Added TypeConverter for ServiceName.
* TimeoutException.cs: Added ctor introduced in 2.0 profile.
* System.ServiceProcess.dll.sources: Added ServiceNameConverter.cs.
* ServiceNameConverter.cs: Dummy implementation to fix class status.
svn path=/trunk/mcs/; revision=65823
Jackson Harper [Fri, 22 Sep 2006 17:30:08 +0000 (17:30 -0000)]
* XplatUI.cs:
* XplatUIWin32.cs:
* Clipboard.cs:
* DataFormats.cs:
* XplatUIDriver.cs: Update interface to add a primary selection
flag, so the driver can use the primary selection buffer if
needed.
* XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
* RichTextBox.cs: We need to supply the data object to paste now
(so we can choose to supply CLIPBOARD or PRIMARY).
* TextBoxBase.cs: Supply data object to paste (see above).
- Middle click uses the primary selection data object.
svn path=/trunk/mcs/; revision=65821
Martin Baulig [Fri, 22 Sep 2006 16:34:42 +0000 (16:34 -0000)]
2006-09-22 Martin Baulig <martin@ximian.com>
* delegate.cs, attribute.cs: Merged with the gmcs versions.
svn path=/trunk/mcs/; revision=65820
Sebastien Pouliot [Fri, 22 Sep 2006 14:18:55 +0000 (14:18 -0000)]
2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
* TestGraphics.cs: Added more test cases for MeasureCharacterRanges,
like handling bad ranges (start, length) and hotkey prefix handling.
svn path=/trunk/mcs/; revision=65819
Raja R Harinath [Fri, 22 Sep 2006 14:14:55 +0000 (14:14 -0000)]
* test-531.cs, test-531-lib.il: New test from #79451.
svn path=/trunk/mcs/; revision=65817
Raja R Harinath [Fri, 22 Sep 2006 14:09:55 +0000 (14:09 -0000)]
* literal.cs (NullDefault): The type of default(IFoo) is 'IFoo',
not the null type.
svn path=/trunk/mcs/; revision=65816
Raja R Harinath [Fri, 22 Sep 2006 13:54:51 +0000 (13:54 -0000)]
Fix part of #79451
* typemanager.cs (Closure.Filter): Consider PrivateScope attributes.
* decl.cs (DeclSpace.FindMemberToOverride): Likewise. Reorganize
code slightly.
svn path=/trunk/mcs/; revision=65815
Martin Baulig [Fri, 22 Sep 2006 13:46:09 +0000 (13:46 -0000)]
2006-09-22 Martin Baulig <martin@ximian.com>
Revert Paolo's change from r65776.
svn path=/trunk/mono/; revision=65814
Raja R Harinath [Fri, 22 Sep 2006 12:25:25 +0000 (12:25 -0000)]
Oops -- dim can be empty.
svn path=/trunk/mcs/; revision=65813
Martin Baulig [Fri, 22 Sep 2006 12:23:51 +0000 (12:23 -0000)]
2006-09-22 Martin Baulig <martin@ximian.com>
* ecore.cs: Merged with the gmcs version.
* generic.cs (ConstructedType): New dummy class.
(TypeArguments): Don't make this abstract.
* typemanager.cs
(TypeManager.IsGenericTypeDefinition): New method.
(TypeManager.GetGenericFieldDefinition): Moved here from gmcs.
svn path=/trunk/mcs/; revision=65812
Raja R Harinath [Fri, 22 Sep 2006 12:22:20 +0000 (12:22 -0000)]
* expression.cs (ComposedCast): Check for arrays of TypedReference
before creating the type, not after.
svn path=/trunk/mcs/; revision=65811
Miguel de Icaza [Fri, 22 Sep 2006 07:57:59 +0000 (07:57 -0000)]
Update
svn path=/trunk/mono/; revision=65809
Atsushi Eno [Fri, 22 Sep 2006 04:32:02 +0000 (04:32 -0000)]
2006-09-22 Atsushi Enomoto <atsushi@ximian.com>
* EncryptedXml.cs : use Padding member instead of const ISO10126 (though
I doubt it should be there). Use it in DecryptData().
* EncryptedXmlTest.cs, EncryptedXmlSample3.xml :
another decryption test for padding sanity.
* Makefile:
Added Test/S.S.C.Xml/EncryptedXmlSample3.xml to EXTRA_DISTFILES.
svn path=/trunk/mcs/; revision=65804
Atsushi Eno [Fri, 22 Sep 2006 03:21:03 +0000 (03:21 -0000)]
2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
* XmlNameEntryCache.cs : It should expand temporary buffer even at
initial state. Fixed bug #79468.
* XmlDocumentTests.cs : added bug #79468 case.
svn path=/trunk/mcs/; revision=65803
Gonzalo Paniagua Javier [Fri, 22 Sep 2006 02:54:31 +0000 (02:54 -0000)]
2006-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Test/System.IO/FileInfoTest.cs:
* System.IO/FileInfo.cs: added 2.0 IsReadOnly. Patch by Joel Reed.
svn path=/trunk/mcs/; revision=65802
Gonzalo Paniagua Javier [Fri, 22 Sep 2006 02:50:24 +0000 (02:50 -0000)]
2006-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileInfo.cs: eol-style.
svn path=/trunk/mcs/; revision=65801
Atsushi Eno [Fri, 22 Sep 2006 01:16:12 +0000 (01:16 -0000)]
2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
* EncryptedXml.cs : implement orthodox padding on encryption.
* EncryptedXmlTest.cs : added roundtrip sample i.e. encryption test.
svn path=/trunk/mcs/; revision=65800
Marek Safar [Thu, 21 Sep 2006 21:32:38 +0000 (21:32 -0000)]
New tests.
svn path=/trunk/mcs/; revision=65797
Marek Safar [Thu, 21 Sep 2006 21:25:50 +0000 (21:25 -0000)]
New tests.
svn path=/trunk/mcs/; revision=65796
Marek Safar [Thu, 21 Sep 2006 21:24:28 +0000 (21:24 -0000)]
2006-09-21 Marek Safar <marek.safar@seznam.cz>
* cfold.cs, const.cs, enum.cs, statement.cs: Updated
after ToType change.
* constant.cs (Constant.ImplicitConversionRequired): Designed to used
when constant must be implicitly convertible.
* convert.cs (ImplicitReferenceConversion): Reuse ToType.
* ecore.cs (NullCast): Derives from NullConstant.
* expression.cs (Is.DoResolve): Removed useless variables.
(Conditional.DoResolve): Quick hack for `Foo () ? null : null'.
(New.Constantify): Add enum support.
(MemberAccess.DoResolve): Add warning when accessing null constant or
variable.
* generic.cs (GenericConstraints.IsReferenceType): Another dummy
property.
* literal.cs (NullConstant): New abstract class with common
functionality for all null specializations.
(NullDefault): Represents default(X) when result can be
reduced to null.
(NullLiteral): Updated.
* report.cs: Add new warning.
GMCS:
2006-09-21 Marek Safar <marek.safar@seznam.cz>
* convert.cs (ImplicitReferenceConversion): Reuse ToType.
* ecore.cs (NullCast): Derives from NullConstant.
* generic.cs (DefaultValueExpression): Fixed to cope with the constant
results.
svn path=/trunk/mcs/; revision=65795
Gert Driesen [Thu, 21 Sep 2006 19:04:59 +0000 (19:04 -0000)]
* ArithmeticException.cs: Modified default message to match MS, to
ensure a local regression test passes on both Mono and .NET.
svn path=/trunk/mcs/; revision=65793
Gert Driesen [Thu, 21 Sep 2006 19:00:28 +0000 (19:00 -0000)]
* corlib_test.dll.sources: Added FileNotFoundExceptionTest.cs.
* Exception.cs: Marked message internal to allow derived classes to
access the raw message (without changing the public API).
* FileNotFoundException.cs: Changed message for default ctor to match
MS. Use internal message field of Exception to check whether Message
is null. On 2.0 profile, use file/assembly load failure message when
no message is set and a filename was specified. On 1.0 profile,
always use file/assembly load failure message when no message is set
(regardless of whether a filename was specified or not). Made some
cosmetic changes to ToString to have it match MS.
* FileNotFoundExceptionTest.cs: Added ctor tests.
svn path=/trunk/mcs/; revision=65792
Gert Driesen [Thu, 21 Sep 2006 18:56:18 +0000 (18:56 -0000)]
* appdomain.c: Pass NULL to mono_get_exception_file_not_found2 as
exception message to have FileNotFoundException use the default
assembly load error message. Fixes bug #79426.
* exception.c: Support NULL msg in mono_get_exception_file_not_found2.
svn path=/trunk/mono/; revision=65791
Sebastien Pouliot [Thu, 21 Sep 2006 18:34:21 +0000 (18:34 -0000)]
2006-09-21 Sebastien Pouliot <sebastien@ximian.com>
* GDIPlusTest.cs: Added test cases for GdipGetStringFormatTabStops and
GdipSetStringFormatTabStops functions.
* TestStringFormat.cs: Added a more complex test case for Clone.
svn path=/trunk/mcs/; revision=65790
Marek Safar [Thu, 21 Sep 2006 18:16:52 +0000 (18:16 -0000)]
Add generics.cs
svn path=/trunk/mcs/; revision=65788
Chris Toshok [Thu, 21 Sep 2006 18:15:53 +0000 (18:15 -0000)]
2006-09-21 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: first little cleanup of the StyleSet (...) block
of SetWMStyles. It's still a rat's nest and is largely
order-dependent which I dislike immensely. This also fixes the X
button disappearing from toplevel forms.
svn path=/trunk/mcs/; revision=65787
Gonzalo Paniagua Javier [Thu, 21 Sep 2006 18:05:09 +0000 (18:05 -0000)]
2006-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* threadpool.c: (start_thread_or_queue) use the root domain when
creating the thread instead of the async object one.
svn path=/trunk/mono/; revision=65786
Mike Kestner [Thu, 21 Sep 2006 17:56:01 +0000 (17:56 -0000)]
2006-09-21 Mike Kestner <mkestner@novell.com>
* ListBox.cs: move Jordi's click/dblclick raising code to the
mouse up handler.
svn path=/trunk/mcs/; revision=65785
Paolo Molaro [Thu, 21 Sep 2006 17:33:16 +0000 (17:33 -0000)]
Thu Sep 21 19:30:04 CEST 2006 Paolo Molaro <lupus@ximian.com>
* class.c, object.c, class-internals.h, reflection.c:
for arrays, store element_size inside MonoClass (speedup
for array object creation).
svn path=/trunk/mono/; revision=65776
Jordi Mas i Hernandez [Thu, 21 Sep 2006 17:12:37 +0000 (17:12 -0000)]
2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
* ListBox.cs: Fixes 79450
svn path=/trunk/mcs/; revision=65775