Sebastien Pouliot [Fri, 18 May 2007 14:32:40 +0000 (14:32 -0000)]
2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
* TestBitmap.cs: Don't use IntPtr.ToInt32 as it may not represent the
pointer correctly in 64bits architectures. Thanks to Zoltan.
svn path=/trunk/mcs/; revision=77644
Jonathan Pobst [Fri, 18 May 2007 14:24:15 +0000 (14:24 -0000)]
2007-05-18 Jonathan Pobst <monkey@jpobst.com>
* KeysConverter.cs: Add CanConvertTo.
* LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
* LinkConverter.cs: Added.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* System.Windows.Forms_test.dll.sources: Add KeysConverterTest,
LinkConverterTest.cs.
* System.Windows.Forms.dll.sources: Add LinkConverter.cs.
2007-05-18 Jonathan Pobst <monkey@jpobst.com>
* KeysConverterTest.cs: Added.
* LinkConverterTest.cs: Added.
* LinkLabelTest.cs: Added tests for LinkLabel.Link.
svn path=/trunk/mcs/; revision=77642
Atsushi Eno [Fri, 18 May 2007 13:52:06 +0000 (13:52 -0000)]
2007-05-18 Atsushi Enomoto <atsushi@ximian.com>
* TraceSourceInfo.cs : new class for storing configuration data.
* TraceSource.cs : TraceEventCache arguments should be null (they are
nullable). Use TraceSourceInfo above.
* DiagnosticsConfigurationHandler.cs : removed hack to store listeners
in named sources, not traceimpl. Create TraceSource objects from
configuration data.
* System.dll.sources : added TraceSourceInfo.cs.
svn path=/trunk/mcs/; revision=77640
Everaldo Canuto [Fri, 18 May 2007 12:27:33 +0000 (12:27 -0000)]
* Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
it prevents error when file dont have write access. Fixes #81669 and #81667.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
svn path=/trunk/mcs/; revision=77635
Gert Driesen [Fri, 18 May 2007 12:26:21 +0000 (12:26 -0000)]
* HttpWebRequestTest.cs: Added test for exception thrown on read
timeout. Added tests for bug #81624 and #81671.
svn path=/trunk/mcs/; revision=77634
Gert Driesen [Fri, 18 May 2007 12:24:36 +0000 (12:24 -0000)]
* WebConnectionStream.cs: On read timeout, throw WebException with
status Timeout instead of IOException.
svn path=/trunk/mcs/; revision=77633
Sebastien Pouliot [Fri, 18 May 2007 12:04:11 +0000 (12:04 -0000)]
2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
* Icon.cs: Always open icon files as read only. Fix #81669.
svn path=/trunk/mcs/; revision=77632
Marek Safar [Fri, 18 May 2007 11:46:47 +0000 (11:46 -0000)]
2007-05-18 Marek Safar <marek.safar@gmail.com>
* flowanalysis.cs, statement.cs: Put back improved error handling.
svn path=/trunk/mcs/; revision=77631
Marek Safar [Fri, 18 May 2007 11:45:06 +0000 (11:45 -0000)]
Put back improved error handling.
svn path=/trunk/mcs/; revision=77630
Marek Safar [Fri, 18 May 2007 11:44:32 +0000 (11:44 -0000)]
2007-05-18 Marek Safar <marek.safar@gmail.com>
* flowanalysis.cs, statement.cs: Put back improved error handling.
svn path=/trunk/mcs/; revision=77629
Atsushi Eno [Fri, 18 May 2007 11:10:36 +0000 (11:10 -0000)]
2007-05-19 Atsushi Enomoto <atsushi@ximian.com>
* XmlWriterTraceListener.cs : open file in shared r/w mode.
* DiagnosticsConfigurationHandler.cs : process <sharedListeners>
elements first, so that named listeners work fine.
* EventLogTraceListener.cs : added 2.0 stubs.
* CorrelationManager.cs : removed todo.
svn path=/trunk/mcs/; revision=77625
Everaldo Canuto [Fri, 18 May 2007 11:06:35 +0000 (11:06 -0000)]
* ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
button text. Fixes #79640.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
svn path=/trunk/mcs/; revision=77624
Everaldo Canuto [Fri, 18 May 2007 11:03:39 +0000 (11:03 -0000)]
* Control.cs: According to MSDN controls created in the designer theres
keyboard accelerators visible by default. So included check for design
in ShowKeyboardCuesInternal.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
svn path=/trunk/mcs/; revision=77623
Rolf Bjarne Kvinge [Fri, 18 May 2007 10:25:28 +0000 (10:25 -0000)]
2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* CodeGeneratorFromExpressionTest.cs: Added EventReferenceTest and DelegateInvokeTest.
* CodeGeneratorFromTypeTest.cs: Added DelegateWithParameterTest.
svn path=/trunk/mcs/; revision=77621
Rolf Bjarne Kvinge [Fri, 18 May 2007 10:23:38 +0000 (10:23 -0000)]
* VBCodeGenerator.cs: Add support for delegates with parameters, and misc fixes for event handling to match MS.
2007-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
svn path=/trunk/mcs/; revision=77620
Everaldo Canuto [Fri, 18 May 2007 10:08:39 +0000 (10:08 -0000)]
* ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
text. Fixes #81621.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
svn path=/trunk/mcs/; revision=77619
Everaldo Canuto [Fri, 18 May 2007 10:03:48 +0000 (10:03 -0000)]
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
for 1.0, becuse ShowKeyboardCues is protected on 1.0.
svn path=/trunk/mcs/; revision=77618
Everaldo Canuto [Fri, 18 May 2007 09:37:50 +0000 (09:37 -0000)]
2007-05-17 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: Finish implementation of UI State using WmChangeUIState
to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
in some controls to check for show_keyboard_cues to draw accell keys "_".
svn path=/trunk/mcs/; revision=77615
Atsushi Eno [Fri, 18 May 2007 08:35:41 +0000 (08:35 -0000)]
2007-05-19 Atsushi Enomoto <atsushi@ximian.com>
* TraceListener.cs : in TraceTransfer(), use TraceEvent() (some
derived classes depend on this change).
* DelimitedListTraceListener.cs : implemented.
* DelimitedListTraceListenerTest.cs : new test.
* System_test.dll.sources : added DelimitedListTraceListenerTest.cs.
svn path=/trunk/mcs/; revision=77614
Atsushi Eno [Fri, 18 May 2007 05:41:00 +0000 (05:41 -0000)]
2007-05-18 Atsushi Enomoto <atsushi@ximian.com>
* EventLogPermissionAccess.cs ProcessPriorityClass.cs
ProcessWindowStyle.cs ThreadWaitReason.cs TraceImpl.cs
Trace.cs ThreadPriorityLevel.cs EventLogEntryType.cs
PerformanceCounterPermissionAccess.cs PerformanceCounterType.cs
TraceListener.cs ThreadState.cs : cosmetic API fixes.
* SwitchAttribute.cs : implemented GetAll().
svn path=/trunk/mcs/; revision=77613
Carlos Alberto Cortez [Thu, 17 May 2007 22:31:18 +0000 (22:31 -0000)]
* ListBox.cs: When calculating the horizontal scrollbar
in single column mode, don't use values less than 0 for
Maximum. Fixes #81474.
2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=77612
Carlos Alberto Cortez [Thu, 17 May 2007 22:21:09 +0000 (22:21 -0000)]
2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBoxTest.cs: New test for some exceptions in
ListBox.ObjectCollection methods.
svn path=/trunk/mcs/; revision=77610
Carlos Alberto Cortez [Thu, 17 May 2007 22:19:12 +0000 (22:19 -0000)]
2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Throw the some missing exceptions in
ListBox.ObjectCollection methods.
svn path=/trunk/mcs/; revision=77609
Jackson Harper [Thu, 17 May 2007 21:56:16 +0000 (21:56 -0000)]
* TextBoxBase.cs: Recalculate the document when the word wrap
value has changed. This fixes 81488.
svn path=/trunk/mcs/; revision=77608
Jb Evain [Thu, 17 May 2007 20:58:52 +0000 (20:58 -0000)]
2007-05-16 Jb Evain <jb@nurv.fr>
* class-internals.h (MonoDefaults): Add an attribute_class and
customattribute_data_class.
* domain.c (mono_init_internal): Populate them.
* reflection.c: Use them to remove duplicates. Make a vew
MonoClass variables `static'.
svn path=/trunk/mono/; revision=77606
Andreia Gaita [Thu, 17 May 2007 19:50:55 +0000 (19:50 -0000)]
sync up the csproj files some more (remove empty resource file entry)
svn path=/trunk/mcs/; revision=77601
Andreia Gaita [Thu, 17 May 2007 19:45:07 +0000 (19:45 -0000)]
remove extra lines at the end of the resources file, it messes up the csproj generation
2007-05-17 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=77600
Chris Toshok [Thu, 17 May 2007 19:27:45 +0000 (19:27 -0000)]
sync up the .csproj files
svn path=/trunk/mcs/; revision=77598
Chris Toshok [Thu, 17 May 2007 19:25:25 +0000 (19:25 -0000)]
run this file through dos2unix
svn path=/trunk/mcs/; revision=77597
Jonathan Pobst [Thu, 17 May 2007 19:16:40 +0000 (19:16 -0000)]
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* Clipboard.cs: Implement missing GetText overload.
svn path=/trunk/mcs/; revision=77596
Chris Toshok [Thu, 17 May 2007 19:03:49 +0000 (19:03 -0000)]
In Test/System.Windows.Forms:
2007-05-17 Chris Toshok <toshok@ximian.com>
* ControlBindingsCollectionTest.cs: new test file, move a test
from BindingTest here.
* BindingTest.cs (DuplicateBindingAdd): move the test to
ControlBindingsCollectionTest.
* BindingManagerBaseTest.cs (BindingsTest): enable this test.
passes now.
* DataBindingTests.cs: define #WITH_BINDINGS, since we now seem to
work with them.
(TestInsertRowBeforeCurrent): ignore this test on 2.0 though, as
we generate too many Binding.Format events.
(TestColumnAdd): ignore this test on 1.1, until System.Data
generates the proper (2) number of events causing us to emit
MetadataChanged.
* CurrencyManagerTest.cs (AddNew2): ignore this test for the time
being. it's hitting a System.Data exception which doesn't happen
on MS.
In System.Windows.Forms:
2007-05-17 Chris Toshok <toshok@ximian.com>
* Control.cs (CheckDataBindings): remove the binding_context arg
to binding.Check.
* CurrencyManager.cs (OnItemChanged): fix this now that
BindingManagerBase is fixed. also remove the comment telling where
the fix should go. We set transfering_data to true/false around
the call to PushData to keep UpdateIsBinding from being called.
(ListChangedHandler): remove the extra OnMetaDataChanged call for
PropertyDescriptorAdded in the 1.1 case. The extra call is
actually generated by System.Data generating 2 metadata changed
events of its own per column add. The fix should go there. Add a
comment to that affect in our test's Assert.Ignore.
* BindingManagerBase.cs: Rework PullData and PushData slightly.
we keep a boolean flag (transfering_data) that keeps us from
calling UpdateIsBinding multiple times if we re-enter either of
them.
* ControlBindingsCollection.cs (AddCore): remove the
binding_context arg to binding.Check.
* Binding.cs (IsBinding): don't check if we're binding here, just
return our cached value. we update it in UpdateIsBinding.
(Check): don't take the binding_context arg, we'll just use our
control's. Also, for some reason MS doesn't use the data member
field when getting the bindingmanager for this binding. it just
uses the datasource. Make this method callable multiple times,
and only do the is_null_desc stuff if manager.Position != -1 (so
we don't get an exception accessing manager.Current).
(UpdateIsBinding): move the code from IsBinding here.
(PositionChangedHandler): call Check here to we can initialize
things that require a non- -1 position.
svn path=/trunk/mcs/; revision=77594
Rolf Bjarne Kvinge [Thu, 17 May 2007 19:01:50 +0000 (19:01 -0000)]
* TextBoxTest.cs: BackColorTest: Fix it, we may get invalidates and
paints after a Form.Show ().
svn path=/trunk/mcs/; revision=77593
Sebastien Pouliot [Thu, 17 May 2007 18:58:31 +0000 (18:58 -0000)]
2007-05-17 Sebastien Pouliot <sebastien@ximian.com>
* MetafileTest.cs: Ignore test Measure if no fonts are available.
svn path=/trunk/mcs/; revision=77592
Andreia Gaita [Thu, 17 May 2007 17:55:14 +0000 (17:55 -0000)]
2007-05-17 Andreia Gaita <avidigal@novell.com>
* TabControlTest.cs: Ignore the enter/leave tests for a bit
svn path=/trunk/mcs/; revision=77587
Everaldo Canuto [Thu, 17 May 2007 17:23:30 +0000 (17:23 -0000)]
2007-05-17 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
control.
svn path=/trunk/mcs/; revision=77583
Atsushi Eno [Thu, 17 May 2007 17:10:25 +0000 (17:10 -0000)]
2007-05-17 Atsushi Enomoto <atsushi@ximian.com>
* TraceOptions.cs : new enum.
* TraceListener.cs : support TraceOutputOptions. Fixed missing
NET_2_0 condition in TARGET_JVM section.
* TraceSwitch.cs, BooleanSwitch.cs :
Added missing constructors and OnValueChanged().
* Trace.cs, TraceImpl.cs :
Added CorrelationManager and UseGlobalLock.
* TraceEventCache.cs : initialize property values at construction.
* Switch.cs : added XmlIgnore on Attributes.
* SwitchesTest.cs : added tests for BooleanSwitch Value.
* TraceListenerTest.cs : added test for TraceOutputOptions.
* System.dll.sources : added TraceOptions.cs.
svn path=/trunk/mcs/; revision=77581
Andreia Gaita [Thu, 17 May 2007 17:08:47 +0000 (17:08 -0000)]
* TabControl.cs: Add 2.0 methods and events, including
OnEnter / OnLeave and raises it for tabpages (fixes #79869)
* TabPage.cs: Add 2.0 methods
2007-05-17 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=77580
Atsushi Eno [Thu, 17 May 2007 16:47:59 +0000 (16:47 -0000)]
2007-05-17 Atsushi Enomoto <atsushi@ximian.com>
* DateTime.cs : added support for 'K'.
* DateTimeFormatInfo.cs : added roundtrip pattern (only in 2.0).
* DateTimeTest.cs : test for 'o' and 'K'.
svn path=/trunk/mcs/; revision=77579
Everaldo Canuto [Thu, 17 May 2007 16:42:34 +0000 (16:42 -0000)]
2007-05-17 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: Implement WmUpdateUIState, show_focus_cues and
keyboard_cues is properly handled by message method.
svn path=/trunk/mcs/; revision=77578
Gert Driesen [Thu, 17 May 2007 16:20:48 +0000 (16:20 -0000)]
Fixed bug number.
svn path=/trunk/mcs/; revision=77574
Gert Driesen [Thu, 17 May 2007 16:20:21 +0000 (16:20 -0000)]
* ThreadTest.cs: Use Assert instead of deprecated Assertion class.
Code formatting. Added test for bug #81568.
svn path=/trunk/mcs/; revision=77573
Jonathan Pobst [Thu, 17 May 2007 15:08:33 +0000 (15:08 -0000)]
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* TreeViewImageIndexConverter.cs: Add 2.0 methods.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* System.Windows.Forms_test.dll.sources: Add TreeViewImageIndexConverterTest.cs.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* TreeViewImageIndexConverterTest.cs: Added.
svn path=/trunk/mcs/; revision=77568
Rolf Bjarne Kvinge [Thu, 17 May 2007 14:59:01 +0000 (14:59 -0000)]
2007-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* CodeGeneratorFromExpressionTest.cs: Added EscapedIdentifierTest.
* CodeGeneratorFromStatementTest.cs: Added CodeAttachEventStatementKeywordTest.
svn path=/trunk/mcs/; revision=77567
Rolf Bjarne Kvinge [Thu, 17 May 2007 14:57:47 +0000 (14:57 -0000)]
* VBCodeGenerator.cs: Always create escaped identifiers if the
identifier matches a keyword.
svn path=/trunk/mcs/; revision=77566
Igor Zelmanovich [Thu, 17 May 2007 14:25:45 +0000 (14:25 -0000)]
2007-05-17 Igor Zelmanovich <igorz@mainsoft.com>
* Configuration.cs: FilePath implemented according to MSDN:
If the value for this FilePath property represents a merged view and
no actual file exists for the application, the path to the parent
configuration file is returned.
svn path=/trunk/mcs/; revision=77564
Jonathan Pobst [Thu, 17 May 2007 13:55:29 +0000 (13:55 -0000)]
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBoxTest.cs: Enable tests for auto complete and shortcuts
enabled stuff.
svn path=/trunk/mcs/; revision=77558
Konstantin Triger [Thu, 17 May 2007 13:01:14 +0000 (13:01 -0000)]
treat DefaultWsdlHelpGenerator.jvm.aspx as DefaultWsdlHelpGenerator.aspx; correctly handle resources
svn path=/trunk/mcs/; revision=77553
Everaldo Canuto [Thu, 17 May 2007 12:56:36 +0000 (12:56 -0000)]
2007-05-16 Everaldo Canuto <ecanuto@novell.com>
* Control.cs:
- WmUpdateUIState added to handle state changes, it make call to
OnChangeUICues event.
- Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
SystemInformation.
svn path=/trunk/mcs/; revision=77552
Sebastien Pouliot [Thu, 17 May 2007 12:53:49 +0000 (12:53 -0000)]
2007-05-17 Sebastien Pouliot <sebastien@ximian.com>
* MetafileTest.cs: Add a few test cases on what happens when recording
metafiles.
svn path=/trunk/mcs/; revision=77551
Raja R Harinath [Thu, 17 May 2007 12:49:26 +0000 (12:49 -0000)]
In mcs:
Revert r77431, and remove ChangeLog corruption introduced in
r77445
In errors:
Add new regression tests, and mark cs0158-5.cs as broken due
to the revert above.
I decided to break cs0158-5.cs and revert rather than fix the issues since
a correct fix will be very similar to what I'm planning to do for shadowed
variables (invariant meaning in a block).
svn path=/trunk/mcs/; revision=77549
Konstantin Triger [Thu, 17 May 2007 12:47:12 +0000 (12:47 -0000)]
Add debug outputs
svn path=/trunk/mcs/; revision=77548
Vladimir Krasnov [Thu, 17 May 2007 12:15:54 +0000 (12:15 -0000)]
* TemplateControl.jvm.cs: refactored key in CachedString method
svn path=/trunk/mcs/; revision=77544
Igor Zelmanovich [Thu, 17 May 2007 12:04:52 +0000 (12:04 -0000)]
2007-05-17 Igor Zelmanovich <igorz@mainsoft.com>
* WebConfigurationHost.cs: for TARGET_J2EE only:
prevent NullRefference Exception.
svn path=/trunk/mcs/; revision=77541
Marek Sieradzki [Thu, 17 May 2007 11:41:35 +0000 (11:41 -0000)]
2007-05-17 Marek Sieradzki <marek.sieradzki@gmail.com>
* ResolveAssemblyReference.cs
* AssemblyResolver.cs: Resolve HintPath properly.
svn path=/trunk/mcs/; revision=77538
Olivier Dufour [Thu, 17 May 2007 11:21:59 +0000 (11:21 -0000)]
2007-05-17 Olivier Dufour <olivier.duff@free.fr>
* DataGridViewLinkCell.cs: Add
* DataGridViewLinkColumn.cs: Add
* ColumnHeaderConverter.cs: Add
svn path=/trunk/mcs/; revision=77532
Vladimir Krasnov [Thu, 17 May 2007 08:00:36 +0000 (08:00 -0000)]
* SqlMembershipProvider.cs: fixed DeleteUser, fixed parameter name
svn path=/trunk/mcs/; revision=77523
Jonathan Pobst [Thu, 17 May 2007 00:45:26 +0000 (00:45 -0000)]
2007-05-16 Jonathan Pobst <monkey@jpobst.com>
* ImageKeyConverter.cs: Added.
* TreeViewImageKeyConverter.cs: Added.
2007-05-16 Jonathan Pobst <monkey@jpobst.com>
* System.Windows.Forms.dll.sources: Add ImageKeyConverter.cs,
TreeViewImageKeyConverter.cs.
* System.Windows.Forms_test.dll.sources: Add ImageKeyConverterTest.cs,
TreeViewImageKeyConverterTest.cs.
2007-05-16 Jonathan Pobst <monkey@jpobst.com>
* ImageKeyConverterTest.cs: Added.
* TreeViewImageKeyConverterTest.cs: Added.
svn path=/trunk/mcs/; revision=77520
Sebastien Pouliot [Wed, 16 May 2007 22:20:05 +0000 (22:20 -0000)]
2007-05-16 Sebastien Pouliot <sebastien@ximian.com>
* CryptoStreamTest.cs: Add test cases for WriteByte.
svn path=/trunk/mcs/; revision=77517
Sebastien Pouliot [Wed, 16 May 2007 22:19:45 +0000 (22:19 -0000)]
2007-05-16 Sebastien Pouliot <sebastien@ximian.com>
* CryptoStream.cs: Fix another problem that can occurs with WriteByte.
svn path=/trunk/mcs/; revision=77516
Scott Thomas [Wed, 16 May 2007 21:44:29 +0000 (21:44 -0000)]
errors/gcs0201.cs: Make sure that Linq syntax fails correctly when not
compiling for Linq.
gmcs/cs-parser.jay: Improved grammar for object and collection
initialization.
mcs/assing.cs:
mcs/expression.cs: Improved object and collection initialization.
tests/gtest-initialize-02.cs: Added an uber-test for object and
collection initialization.
svn path=/trunk/mcs/; revision=77514
Carlos Alberto Cortez [Wed, 16 May 2007 21:08:14 +0000 (21:08 -0000)]
2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolTips.cs: Update Text if SetToolTip is called for a control
already showing the tooltip, as well as restarting its timer; show
tooltip if we are inside the control bounds by the time of calling
SetToolTip. Inside ShowTooltip remove the check to not show the
tooltip again for the active control (it is allowed by .Net to
show the tooltip on the same control multiple times).
svn path=/trunk/mcs/; revision=77512
Gert Driesen [Wed, 16 May 2007 20:01:49 +0000 (20:01 -0000)]
* TypeBuilder.cs (GetField): Return MonoField instance if the type is
already created. Fixed other part of bug #81368.
* TypeBuilderTest.cs: Added GetFields test for bug #81368. Enabled
test for bug #81640.
svn path=/trunk/mcs/; revision=77508
Zoltan Varga [Wed, 16 May 2007 19:27:47 +0000 (19:27 -0000)]
2007-05-16 Zoltan Varga <vargaz@gmail.com>
* TypeBuilder.cs (GetFields): Return MonoField objects if the type is already
created.
* FieldBuilder.cs (SetValue): Make this not supported again.
svn path=/trunk/mcs/; revision=77505
Gert Driesen [Wed, 16 May 2007 19:22:11 +0000 (19:22 -0000)]
* XmlWriterTests.cs: Added tests for Close that verify closing of
underlying stream.
svn path=/trunk/mcs/; revision=77503
Rolf Bjarne Kvinge [Wed, 16 May 2007 18:35:36 +0000 (18:35 -0000)]
* MaskedTextBox.cs: Small fix for Text that fixes a broken test.
svn path=/trunk/mcs/; revision=77499
Gert Driesen [Wed, 16 May 2007 17:32:37 +0000 (17:32 -0000)]
* TypeBuilderTest.cs: Use Assert instead of deprecated Assertion
class. Number tests. Added tests for bug #81638 and #81640.
svn path=/trunk/mcs/; revision=77490
Andreia Gaita [Wed, 16 May 2007 17:12:52 +0000 (17:12 -0000)]
* ContainerControl.cs: only process tab key if there are no
modifier keys present, otherwise the control does the
tab processing, if it needs to. Fixes #81622
* TabControl.cs: Fixes calculation for which tab to select on
shift+ctrl+tab.
2007-05-16 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=77489
Gert Driesen [Wed, 16 May 2007 16:44:43 +0000 (16:44 -0000)]
* ThreadTest.cs: Fix build using csc 1.x.
svn path=/trunk/mcs/; revision=77488
Rolf Bjarne Kvinge [Wed, 16 May 2007 15:41:03 +0000 (15:41 -0000)]
* MaskedTextBox.cs: Small fix for Text that fixes a broken test.
svn path=/trunk/mcs/; revision=77485
Jonathan Pobst [Wed, 16 May 2007 15:38:04 +0000 (15:38 -0000)]
2007-05-15 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make IsInputCharInternal to allow controls to
override it and still match MS API.
* TextBoxBase.cs: Override IsInputCharInternal and always
return true.
[Fixes bug #81616]
2007-05-15 Jonathan Pobst <monkey@jpobst.com>
* TextBoxTest.cs: Add test for IsInputChar method.
svn path=/trunk/mcs/; revision=77484
Vladimir Krasnov [Wed, 16 May 2007 15:33:14 +0000 (15:33 -0000)]
* VirtualPathUtility.cs: Normalize method check more carefully if need to normalize, performance fix
svn path=/trunk/mcs/; revision=77483
Dick Porter [Wed, 16 May 2007 13:59:11 +0000 (13:59 -0000)]
2007-05-16 Dick Porter <dick@ximian.com>
* ISymbolBinder.cs:
* ISymbolBinder1.cs:
* ISymbolDocument.cs:
* ISymbolDocumentWriter.cs:
* ISymbolMethod.cs:
* ISymbolNamespace.cs:
* ISymbolReader.cs:
* ISymbolScope.cs:
* ISymbolVariable.cs:
* ISymbolWriter.cs:
* SymDocumentType.cs:
* SymLanguageType.cs:
* SymLanguageVendor.cs:
* SymbolToken.cs:
* SymAddressKind.cs: Update to 2.0 profile
svn path=/trunk/mcs/; revision=77480
Dick Porter [Wed, 16 May 2007 13:26:17 +0000 (13:26 -0000)]
2007-05-16 Dick Porter <dick@ximian.com>
* ConditionalAttribute.cs:
* DebuggableAttribute.cs:
* Debugger.cs:
* DebuggerBrowsableAttribute.cs:
* DebuggerDisplayAttribute.cs:
* DebuggerHiddenAttribute.cs:
* DebuggerNonUserCodeAttribute.cs:
* DebuggerStepperBoundaryAttribute.cs:
* DebuggerStepThroughAttribute.cs:
* DebuggerTypeProxyAttribute.cs:
* DebuggerVisualizerAttribute.cs:
* StackFrame.cs:
* StackTrace.cs:
* DebuggerBrowsableState.cs: Update to 2.0 profile
svn path=/trunk/mcs/; revision=77479
Zoltan Varga [Wed, 16 May 2007 12:54:35 +0000 (12:54 -0000)]
2007-05-16 Zoltan Varga <vargaz@gmail.com>
* FieldBuilder.cs: Support calling SetValue (). Fixes #81638.
svn path=/trunk/mcs/; revision=77476
Marek Habersack [Wed, 16 May 2007 12:35:00 +0000 (12:35 -0000)]
Revert 77463, since this commit introduces the correct fix for the problem.
2007-05-16 Marek Habersack <mhabersack@novell.com>
* webform.js: in WebForm_ClientCallback set the id of the
__EVENTVALIDATION element when creating it or otherwise
WebForm_getFormData will not ignore it as expected by
WebForm_DoCallback, which will result in the variable being
present twice in the POST request.
svn path=/trunk/mcs/; revision=77475
Adar Wesley [Wed, 16 May 2007 12:03:13 +0000 (12:03 -0000)]
2007-05-16 Adar Wesley <adarw@mainsoft.com>
* System20.csproj: added classes to compilation set IOControlCode.cs,
IPPacketInformation.cs
* CookieCollection.cs: added missing method strongly typed CopyTo.
* CredentialCache.cs: added missing methods Add, Remove, GetCredential
* HttpWebRequest.jvm.cs: added missing ClientCertificates getter.
* ServicePoint.cs: added missing method CloseConnectionGroup.
* WebClient.cs: added missing methods OnDownloadProgressChanged,
OnUploadProgressChanged, GetWebRequest, GetWebResponse
* WebHeaderCollection.cs: added missing methods IsRestricted, Add,
Remove, Set.
* WebProxy.cs: added missing method GetObjectData.
* Socket.jvm.cs: added missing methods EndDisconnect, IOControl,
Send 2.0 overloads, Receive 2.0 overloads, ReceiveMessageFrom,
BeginReceiveMessageFrom, EndReceiveMessageFrom,
EndAccept 2.0 overloads, BeginSend, EndSend, BeginReceive,
EndReceive, SendFile, BeginSendFile, EndSendFile, Disconnect,
DuplicateAndClose
svn path=/trunk/mcs/; revision=77472
Konstantin Triger [Wed, 16 May 2007 11:54:06 +0000 (11:54 -0000)]
correctly check for request locality
svn path=/trunk/mcs/; revision=77471
Marek Habersack [Wed, 16 May 2007 11:36:30 +0000 (11:36 -0000)]
2007-05-16 Marek Habersack <mhabersack@novell.com>
* WebUIValidation.js: ported ToCurrency and ToDate converters from
WebUIValidation_2.0.js.
2007-05-16 Marek Habersack <mhabersack@novell.com>
* CompareValidator.cs: formatting changes
svn path=/trunk/mcs/; revision=77470
Konstantin Triger [Wed, 16 May 2007 09:36:28 +0000 (09:36 -0000)]
Add forbidden handlers for derby files
svn path=/trunk/mono/; revision=77467
Vladimir Krasnov [Wed, 16 May 2007 09:28:24 +0000 (09:28 -0000)]
* HtmlTextWriter.cs: refactoring, created hashtables for tags, styles and attributes arrays, that gives performance improvement in GetTagKey, GetStyleKey and GetAttributeKey methods
svn path=/trunk/mcs/; revision=77465
Marek Habersack [Wed, 16 May 2007 09:13:48 +0000 (09:13 -0000)]
2007-05-16 Marek Habersack <mhabersack@novell.com>
* HttpRequest.cs: do not add duplicate fields to the form
collection. Unbreaks the TreeView populate on demand sample from
the XSP2 tests.
svn path=/trunk/mcs/; revision=77463
Konstantin Triger [Wed, 16 May 2007 08:45:04 +0000 (08:45 -0000)]
TARGET_JVM: make handler resolution case insensitive to comply with r77418
svn path=/trunk/mcs/; revision=77461
Igor Zelmanovich [Wed, 16 May 2007 08:20:55 +0000 (08:20 -0000)]
2007-05-16 Igor Zelmanovich <igorz@mainsoft.com>
* PageMapper.cs: prevent DOS attack:
dont cache MetaProvider for not valid resource.
svn path=/trunk/mcs/; revision=77458
Olivier Dufour [Wed, 16 May 2007 06:38:28 +0000 (06:38 -0000)]
svn path=/trunk/mcs/; revision=77456
Olivier Dufour [Wed, 16 May 2007 06:37:11 +0000 (06:37 -0000)]
initial commit for ColumnHeaderConverter !
svn path=/trunk/mcs/; revision=77455
Konstantin Triger [Wed, 16 May 2007 06:25:35 +0000 (06:25 -0000)]
Refactor Clone
svn path=/trunk/mcs/; revision=77454
Konstantin Triger [Wed, 16 May 2007 06:08:56 +0000 (06:08 -0000)]
undo r77416 since the issue is handled in Xml, r77450
svn path=/trunk/mcs/; revision=77451
Konstantin Triger [Wed, 16 May 2007 06:04:45 +0000 (06:04 -0000)]
ensure the file is closed in XmlWriter.Create(filename)
svn path=/trunk/mcs/; revision=77450
Konstantin Triger [Wed, 16 May 2007 06:01:20 +0000 (06:01 -0000)]
Refactor Clone
svn path=/trunk/mcs/; revision=77449
Marek Safar [Tue, 15 May 2007 22:38:45 +0000 (22:38 -0000)]
New test.
svn path=/trunk/mcs/; revision=77446
Marek Safar [Tue, 15 May 2007 22:37:41 +0000 (22:37 -0000)]
2007-05-15 Marek Safar <marek.safar@gmail.com>
A fix for bug #81380
* expression.cs (Is.DoResolve): Only value types have constant `isĀ“
behaviour.
svn path=/trunk/mcs/; revision=77445
Jackson Harper [Tue, 15 May 2007 22:17:37 +0000 (22:17 -0000)]
* TextBox.cs: Disable some of the menu options when using a
readonly textbox.
svn path=/trunk/mcs/; revision=77444
Marek Sieradzki [Tue, 15 May 2007 22:12:11 +0000 (22:12 -0000)]
2007-05-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* CommandLineBuilder.cs: Add quotes when there are needed.
svn path=/trunk/mcs/; revision=77443
Marek Sieradzki [Tue, 15 May 2007 22:10:53 +0000 (22:10 -0000)]
2007-05-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* CommandLineBuilderTest.cs: Added tests for filenames that contain
spaces.
svn path=/trunk/mcs/; revision=77442
Marek Habersack [Tue, 15 May 2007 21:18:50 +0000 (21:18 -0000)]
2007-05-15 Marek Habersack <mhabersack@novell.com>
* TemplateControl.cs: implemented the 3-parameter overloads of
GetLocalResourceObject and GetGlobalResourceObject.
svn path=/trunk/mcs/; revision=77440
Marek Habersack [Tue, 15 May 2007 20:48:57 +0000 (20:48 -0000)]
2007-05-15 Marek Habersack <mhabersack@novell.com>
* ResourceExpressionBuilder.cs: added a static method to generate
a GetLocalResourceObject call which properly handles types which
cannot be converted from strings.
* TemplateControlCompiler.cs: use code described above to generate
code for properties assigned from resources.
svn path=/trunk/mcs/; revision=77437
Sebastien Pouliot [Tue, 15 May 2007 20:16:00 +0000 (20:16 -0000)]
2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
* GDIPlusTest.cs: Add test cases for GdipDrawImage[I] (overflow) and
GdipDrawImageRectRect (GraphicsUnit).
* TestGraphics.cs: Add test cases for DrawImage, DrawImageUnscaled and
DrawImageUnscaledAndClipped (2.0).
* TestRectangle.cs: Add test cases for negative width/height. Fix some
test cases that were using RectangleF instead of Rectangle.
* TestRectangleF.cs: Add test cases for negative width/height.
svn path=/trunk/mcs/; revision=77436
Sebastien Pouliot [Tue, 15 May 2007 20:12:03 +0000 (20:12 -0000)]
2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
* Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
them.
* RectangleF.cs: A rectangle with a negative width or height is also
empty.
svn path=/trunk/mcs/; revision=77435
Massimiliano Mantione [Tue, 15 May 2007 19:35:18 +0000 (19:35 -0000)]
* class-internals.h: Added "MonoVTable.interface_bitmap" as a next
step in implementing IMT, so that all isinst checks now can go
through the bitmap.
This was needed because vtables for TransparentProxy need to look
like the vtable of the "target" class, so they need to point to
its interface bitmap directly.
* object.c: inside "mono_class_create_runtime_vtable" and
"mono_class_proxy_vtable", initialize "MonoVTable.interface_bitmap".
* inssel.brg: added "mini_emit_load_intf_bit_reg_vtable", and used it
inside "mini_emit_isninst_iface_cast" and "mini_emit_castclass_iface"
so that all isinst checks now use "interface_bitmap".
svn path=/trunk/mono/; revision=77433
Marek Safar [Tue, 15 May 2007 19:29:12 +0000 (19:29 -0000)]
New test, updates.
svn path=/trunk/mcs/; revision=77432