Marek Habersack [Wed, 9 May 2007 12:14:58 +0000 (12:14 -0000)]
More TreeView rendering fixes
2007-05-09 Marek Habersack <mhabersack@novell.com>
* TreeNodeStyleCollection.cs: do not set font's underline flag to
false, set it to its own value instead.
* TreeView.cs: if level style exists and has ChildNodesPadding
set, it takes precedence over the node style setting (if any).
svn path=/trunk/mcs/; revision=77002
Igor Zelmanovich [Wed, 9 May 2007 11:57:30 +0000 (11:57 -0000)]
eol-style property set to native
svn path=/trunk/mcs/; revision=77001
Zoltan Varga [Wed, 9 May 2007 11:15:39 +0000 (11:15 -0000)]
2007-05-09 Zoltan Varga <vargaz@gmail.com>
* mini.h (MonoCompile): Add 'args' field.
* mini.c (mono_compile_create_vars): Store variables representing the arguments
into cfg->args.
* mini-<ARCH>.c: Use cfg->args for accessing the method arguments.
svn path=/trunk/mono/; revision=76997
Igor Zelmanovich [Wed, 9 May 2007 11:15:35 +0000 (11:15 -0000)]
2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
* Win32Exception.cs:
added MonoNotSupported attribute for TARGATE_JVM.
* NetworkStream.cs:
* TcpClient.cs:
* TcpListener.cs:
* UdpClient.cs:
added MonoNotSupported attribute for TARGATE_JVM.
svn path=/trunk/mcs/; revision=76996
Marek Habersack [Wed, 9 May 2007 11:03:08 +0000 (11:03 -0000)]
2007-05-09 Marek Habersack <mhabersack@novell.com>
* CollectionBuilder.cs: formatting changes
* ControlBuilder.cs: if a control enables children as properties,
has a default property and parser encounters a child tag/container
with the default property name, discard the default property
builder in order to avoid invalid sub builder invocation. An
example is: <asp:DropDownList><Items></Items></asp:DropDownList>
Formatting changes.
When checking for empty string, use Length not comparison with ""
svn path=/trunk/mcs/; revision=76995
Igor Zelmanovich [Wed, 9 May 2007 09:51:07 +0000 (09:51 -0000)]
refactoring:
fixing line endings, no changes.
svn path=/trunk/mcs/; revision=76994
Igor Zelmanovich [Wed, 9 May 2007 09:21:07 +0000 (09:21 -0000)]
2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
* ConfigurationManager.cs:
added MonoLimitation attribute for TARGATE_JVM.
svn path=/trunk/mcs/; revision=76992
Igor Zelmanovich [Wed, 9 May 2007 08:29:29 +0000 (08:29 -0000)]
2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
* FontConverter.cs: for TARGET_JVM destructor is not used.
* AdjustableArrowCap.jvm.cs:
* CustomLineCap.jvm.cs:
* GraphicsPath.jvm.cs:
added MonoNotSupported attributes.
* EncoderParameter.jvm.cs: removed destructor,
Dispose doesn't throw exception.
svn path=/trunk/mcs/; revision=76989
Igor Zelmanovich [Wed, 9 May 2007 07:54:32 +0000 (07:54 -0000)]
2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
* SqlConnectionStringBuilder.cs: added MonoNotSupported attribute.
svn path=/trunk/mcs/; revision=76987
Atsushi Eno [Wed, 9 May 2007 07:21:47 +0000 (07:21 -0000)]
2007-05-08 Atsushi Enomoto <atsushi@ximian.com>
* SoapServerMethod.cs : Some refactoring. simply use GetMethod() in
type stub. WsiClaims could be retrieved from type stub.
* SoapServerType.cs : store server methods and implement GetMethod().
* SoapServerTypeTest.cs : added some more tests related to server
methods.
svn path=/trunk/mcs/; revision=76986
Carlos Alberto Cortez [Wed, 9 May 2007 06:11:59 +0000 (06:11 -0000)]
2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs: Add InternalContains focus property, which hast the same
functionality of ContainsFocus, but also including implicit controls.
* ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
since we need to know if the focus is contained in our implicit
ItemControl when calculating Layout. Fixes part of #80888.
svn path=/trunk/mcs/; revision=76984
Scott Thomas [Wed, 9 May 2007 03:58:56 +0000 (03:58 -0000)]
These new error tests make sure that Linq syntax fails correctly when
not compiling for Linq
svn path=/trunk/mcs/; revision=76983
Jonathan Chambers [Wed, 9 May 2007 03:00:16 +0000 (03:00 -0000)]
2007-05-08 Jonathan Chambers <joncham@gmail.com>
* class.c: Fix windows build.
* class-internals.h: Fix windows build.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=76982
Sebastien Pouliot [Wed, 9 May 2007 02:47:31 +0000 (02:47 -0000)]
2007-05-08 Randolph Chung <tausq@debian.org>
* DSACryptoServiceProviderTest.cs: Remove "NotWorking" annotation
for the blob tests that should now pass.
svn path=/trunk/mcs/; revision=76981
Sebastien Pouliot [Wed, 9 May 2007 02:47:15 +0000 (02:47 -0000)]
2007-05-08 Randolph Chung <tausq@debian.org>
* DSACryptoServiceProvider.cs: Implement the ImportCspBlob and
ExportCspBlob methods by calling into CryptoConvert.
svn path=/trunk/mcs/; revision=76980
Sebastien Pouliot [Wed, 9 May 2007 02:35:39 +0000 (02:35 -0000)]
2007-05-08 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvert.cs: Sync with Mono.Security version - mostly the patch
from Randolph Chung to add DSA CAPI BLOB support.
svn path=/trunk/mcs/; revision=76979
Sebastien Pouliot [Wed, 9 May 2007 02:34:05 +0000 (02:34 -0000)]
2007-05-08 Randolph Chung <tausq@debian.org>
* CryptoConvertTest.cs: Add tests for DSA conversion functions.
svn path=/trunk/mcs/; revision=76978
Sebastien Pouliot [Wed, 9 May 2007 02:33:47 +0000 (02:33 -0000)]
2007-05-08 Randolph Chung <tausq@debian.org>
* CryptoConvert.cs: Add DSA blob conversion functions.
svn path=/trunk/mcs/; revision=76977
Everaldo Canuto [Wed, 9 May 2007 01:50:01 +0000 (01:50 -0000)]
2007-05-08 Everaldo Canuto <everaldo@simios.org>
* TestGraphics.cs: MeasureString_MultlineString_Width added (NotWorking)
it is a reproduction of bug #81572 that checks width for multiline
string measurement.
svn path=/trunk/mcs/; revision=76976
Everaldo Canuto [Wed, 9 May 2007 00:41:13 +0000 (00:41 -0000)]
2007-05-08 Everaldo Canuto <everaldo@simios.org>
* ToolTip.cs: Remove center form string alignment as it must be align to
left.
svn path=/trunk/mcs/; revision=76975
Jonathan Pobst [Tue, 8 May 2007 21:57:21 +0000 (21:57 -0000)]
2007-05-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItemCollection.cs: Set the new item's parent and owner
in Insert like we do in Add. [Fixes bug #81568]
svn path=/trunk/mcs/; revision=76972
Jackson Harper [Tue, 8 May 2007 21:18:17 +0000 (21:18 -0000)]
* TreeView.cs: GotFocus differences between 1.1 and 2.0.
- Off by one error in SetTop
- Disable DoubeBuffering
svn path=/trunk/mcs/; revision=76971
Zoltan Varga [Tue, 8 May 2007 21:04:57 +0000 (21:04 -0000)]
2007-05-08 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_compile_get_interface_var): Remove this unused function.
* mini-ops.h inssel.brg mini-<ARCH>.c: Add a new opcode for ckfinite as well.
svn path=/trunk/mono/; revision=76970
Atsushi Eno [Tue, 8 May 2007 19:58:38 +0000 (19:58 -0000)]
2007-05-08 Atsushi Enomoto <atsushi@ximian.com>
* SoapServerType.cs
ServerType.cs
Methods.cs : SoapBindingUse and SoapServiceRoutingStyle could just
be stored in LogicalTypeInfo (as they are attributed in a web
service class), and removed duplicates of them in SoapTypeStubInfo.
Invalid attributes on a service class are checked in SoapServerType
.ctor().
* SoapServerTypeTest.cs : added some .ctor() tests to verify
validity of attributes on the service class.
svn path=/trunk/mcs/; revision=76969
Atsushi Eno [Tue, 8 May 2007 19:41:38 +0000 (19:41 -0000)]
2007-05-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlReturnReader.cs
XmlReturnWriter.cs
TypeStubManager.cs
ServerType.cs
SoapServerType.cs
Methods.cs
HttpSimpleTypeStubInfo.cs
HttpGetTypeStubInfo.cs
HttpPostTypeStubInfo.cs :
I once replaced LogicalTypeInfo with ServerType. It was kind of
wrong, since ServerType could be instantiated at any time, while
LogicalTypeInfo used to be a singleton per static context.
Here I re-introduced LogicalTypeInfo and replaced most of
ServerType use with this.
* HttpSimpleProtocolReflector.cs : ServerType -> LogicalTypeInfo.
svn path=/trunk/mcs/; revision=76968
Gert Driesen [Tue, 8 May 2007 19:27:38 +0000 (19:27 -0000)]
* ControlTest.cs: Added test for UseWaitCursor.
svn path=/trunk/mcs/; revision=76966
Zoltan Varga [Tue, 8 May 2007 19:04:53 +0000 (19:04 -0000)]
2007-05-08 Zoltan Varga <vargaz@gmail.com>
* mini-ops.h: Introduce new opcodes used in the IR instead of the original CEE_
opcodes for some opcodes.
* mini.h *.brg *.c: Use the new opcodes.
svn path=/trunk/mono/; revision=76959
Jonathan Chambers [Tue, 8 May 2007 18:45:16 +0000 (18:45 -0000)]
2007-05-08 Jonathan Chambers <joncham@gmail.com>
* DeflateStreamTest.cs, GzipStreamTest.cs : disabled tests that are
hanging on my machine (and maybe buildbot). Will enable if
this does not fix buildbot hang.
svn path=/trunk/mcs/; revision=76957
Sebastien Pouliot [Tue, 8 May 2007 17:56:44 +0000 (17:56 -0000)]
2007-05-08 Sebastien Pouliot <sebastien@ximian.com>
* DSATest.cs: Add test case where we import a key that has a null Y
(public part) but where X (private part) is available - and usable
to compute Y.
svn path=/trunk/mcs/; revision=76951
Sebastien Pouliot [Tue, 8 May 2007 17:54:58 +0000 (17:54 -0000)]
2007-05-08 Randolph Chung <tausq@debian.org>
* DSAManaged.cs: Do not reject the input if only Y is null.
Fixes #81558. [small edits from Sebastien]
svn path=/trunk/mcs/; revision=76950
Robert Jordan [Tue, 8 May 2007 15:53:06 +0000 (15:53 -0000)]
2007-05-08 Robert Jordan <robertj@gmx.net>
* process.c (CreateProcess_internal):
Pass CREATE_NO_WINDOW to CreateProcess when ProcessStartupInfo
.CreateNoWindow was specified. Fixes #81496.
svn path=/trunk/mono/; revision=76946
Massimiliano Mantione [Tue, 8 May 2007 15:42:56 +0000 (15:42 -0000)]
* class-internals.h: Removed "MonoClass.interface_offsets" as a first
step in implementing IMT, replaced it with two compact arrays
(interfaces_packed and interface_offsets_packed) and a bitmap that
is used for isinst checks (interface_bitmap).
* class.c: (compare_interface_ids): compare function to pass to
bsearch when looking for an interface with a given id.
(mono_class_interface_offset): reimplemented using bsearch on
interfaces_packed, getting the offset from interface_offsets_packed.
(print_implemented_interfaces): utility debugging function.
(setup_interface_offsets): reworked to initialize interfaces_packed,
interface_offsets_packed and interface_bitmap.
* object.c: replaced all accesses to "MonoClass.interface_offsets"
with uses of interfaces_packed and interface_offsets_packed.
* mini.h: Bumped aot revision.
* inssel.brg: modified code generation of type checks for interfaces
to use the new "MonoClass.interface_bitmap" instead of the old
"MonoClass.interface_offsets".
svn path=/trunk/mono/; revision=76945
Adar Wesley [Tue, 8 May 2007 15:14:49 +0000 (15:14 -0000)]
2007-05-08 Adar Wesley <adarw@mainsoft.com>
* DbProviderFactory.cs: minor refactoring for throwing exceptions
* OleDbCommandBuilder.cs: added missing methods QuoteIdentifier,
UnquoteIdentifier.
* OleDbConnection.cs: added missing method ResetState.
* OleDbDataReader.cs: added missing method GetData.
* OleDbError.cs: added missing method ToString.
* OleDbErrorCollection.cs: added missing method strongly typed
CopyTo.
* OleDbFactory.cs: added missing method CreatePermission.
* OleDbParameter.cs: added missing methods ResetOleDbType,
ResetDbType.
* OleDbParameterCollection.cs: added missing methods strongly
typed AddRange, IndexOf.
svn path=/trunk/mcs/; revision=76940
Sebastien Pouliot [Tue, 8 May 2007 15:14:16 +0000 (15:14 -0000)]
TestJpegCodec.cs: Add test cases for 8bpp indexed greyscale JPEG
svn path=/trunk/mcs/; revision=76939
Massimiliano Mantione [Tue, 8 May 2007 15:03:50 +0000 (15:03 -0000)]
Wrapped all accesses to "MonoClass.interface_offsets" as a first step in
implementing IMT.
* class-internals.h: Added MONO_CLASS_IMPLEMENTS_INTERFACE macro and
mono_class_interface_offset prototype to wrap all accesses to
"MonoClass.interface_offsets".
* class.c: Implemented mono_class_interface_offset, and wrapped all
accesses to "MonoClass.interface_offsets".
* monodiet.c, object.c, marshal.c, icall.c: wrapped all accesses to
"MonoClass.interface_offsets".
svn path=/trunk/mono/; revision=76937
Sebastien Pouliot [Tue, 8 May 2007 14:41:33 +0000 (14:41 -0000)]
Makefile: Add a greyscale JPEG test file to the dist.
svn path=/trunk/mcs/; revision=76935
Sebastien Pouliot [Tue, 8 May 2007 14:41:05 +0000 (14:41 -0000)]
New. 8bpp index greyscale JPEG file.
svn path=/trunk/mcs/; revision=76934
Konstantin Triger [Tue, 8 May 2007 14:35:12 +0000 (14:35 -0000)]
cosmetic: output to console in DEBUG mode only
svn path=/trunk/mcs/; revision=76931
Marek Habersack [Tue, 8 May 2007 14:25:17 +0000 (14:25 -0000)]
2007-05-08 Marek Habersack <mhabersack@novell.com>
* CssStyleCollection.cs: put the style in the bag each time a key
is set, otherwise resetting of a key has no effect on rendered
style.
svn path=/trunk/mcs/; revision=76930
Igor Zelmanovich [Tue, 8 May 2007 13:21:59 +0000 (13:21 -0000)]
2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
* ConnectionStringSettingsCollection.cs: removed 'new' keyword, cause
property doesn't hide any inherit property.
svn path=/trunk/mcs/; revision=76929
Konstantin Triger [Tue, 8 May 2007 13:00:19 +0000 (13:00 -0000)]
use RuntimeEnvironment.SystemConfigurationFile
svn path=/trunk/mcs/; revision=76927
Raja R Harinath [Tue, 8 May 2007 12:59:50 +0000 (12:59 -0000)]
Avoid unnecessary allocation on indexer access
* SortedDictionary.cs (NodeHelper): Rename from NodeComparer.
(NodeHelper.CreateNode): New.
(Item.set): Move responsibility of creating new nodes to RBTree.Intern.
* RBTree.cs (INodeHelper): Rename from INodeComparer.
(INodeHelper.CreateNode): New.
(Intern): Use it to create a new node if no node is passed in.
svn path=/trunk/mcs/; revision=76926
Vladimir Krasnov [Tue, 8 May 2007 12:59:44 +0000 (12:59 -0000)]
fixed line ending style
svn path=/trunk/mcs/; revision=76925
Vladimir Krasnov [Tue, 8 May 2007 12:57:24 +0000 (12:57 -0000)]
* BaseParamsCollection.cs: fixed Get(string) property, fixed collection lazy initialization
svn path=/trunk/mcs/; revision=76924
Marek Habersack [Tue, 8 May 2007 12:50:59 +0000 (12:50 -0000)]
2007-05-08 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
so use a delegate create expression - it may make difference for
languages other than C# (e.g. VisualBasic).
svn path=/trunk/mcs/; revision=76923
Konstantin Triger [Tue, 8 May 2007 12:00:21 +0000 (12:00 -0000)]
cosmetic perf optimization
svn path=/trunk/mcs/; revision=76921
Igor Zelmanovich [Tue, 8 May 2007 11:25:07 +0000 (11:25 -0000)]
2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
* RunWorkerCompletedEventArgs.cs: added 'new' keyword, cause
UserState hides inherit property.
svn path=/trunk/mcs/; revision=76919
Igor Zelmanovich [Tue, 8 May 2007 11:18:26 +0000 (11:18 -0000)]
2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
* RBTree.cs: for TARGET_JVM used Thread Local Storage
istead Thread-Relative Static Fields
* TraceImpl.cs:
* TraceListener.cs:
for TARGET_JVM used Thread Local Storage istead
Thread-Relative Static Fields
svn path=/trunk/mcs/; revision=76917
Paolo Molaro [Tue, 8 May 2007 10:58:12 +0000 (10:58 -0000)]
Tue May 8 13:04:35 CEST 2007 Paolo Molaro <lupus@ximian.com>
* FieldInfo.cs, MethodBase.cs: implemented new GetFieldFromHandle and
GetMethodFromHandle overloads (bug #78637).
svn path=/trunk/mcs/; revision=76915
Paolo Molaro [Tue, 8 May 2007 10:56:14 +0000 (10:56 -0000)]
Tue May 8 13:02:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
* icall.c, icall-def.h: implemented new GetFieldFromHandle and
GetMethodFromHandle overloads (bug #78637).
svn path=/trunk/mono/; revision=76914
Rolf Bjarne Kvinge [Tue, 8 May 2007 10:50:04 +0000 (10:50 -0000)]
* ScrollableControl.cs: ScrollIControlntoView: we now only move the
control as much as necessary in order to make it entirely visible,
instead of centering the control in the container (matches MS
behaviour). CalculateCanvasSize: we need to take the current scroll
position into account when calculating the maximum canvas,
otherwise the following scenario will fail: resize so that the
scrollbars appear, use the scrollbars to scroll, resize again
smaller, and now the canvas size is too small. Recalculate: when
showing scrollbars make sure they start off at 0, and try to scroll
the active control into view. Fixes #79540. HandleScrollBar: don't
scroll anywhere if the scrollbar isn't visible.
svn path=/trunk/mcs/; revision=76913
Marek Habersack [Tue, 8 May 2007 10:43:25 +0000 (10:43 -0000)]
2007-05-08 Marek Habersack <mhabersack@novell.com>
* HtmlInputButton.cs: button of type 'reset' does not invoke
OnServerClick event.
'reset' buttons clear all the controls in the form to their
default values.
svn path=/trunk/mcs/; revision=76912
Paolo Molaro [Tue, 8 May 2007 10:16:31 +0000 (10:16 -0000)]
Tue May 8 12:22:14 CEST 2007 Paolo Molaro <lupus@ximian.com>
* assembly.c: parse ProcessorArchitecture in assembly name and ignore
it for now (see mono-devel, from Marek Sieradzki <marek.sieradzki@gmail.com>).
svn path=/trunk/mono/; revision=76911
Rolf Bjarne Kvinge [Tue, 8 May 2007 09:30:57 +0000 (09:30 -0000)]
2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* CodeGeneratorFromExpressionTest.cs: Added ArrayCreateExpressionTest.
svn path=/trunk/mcs/; revision=76907
Rolf Bjarne Kvinge [Tue, 8 May 2007 09:02:33 +0000 (09:02 -0000)]
2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Don't add newlines when creating array creations expressions, fix the initial size expression and make sure a there's always {} somewhere.
svn path=/trunk/mcs/; revision=76906
Marek Habersack [Tue, 8 May 2007 09:01:54 +0000 (09:01 -0000)]
2007-05-08 Marek Habersack <mhabersack@novell.com>
* TreeView.cs: children padding is rendered only before and after
the children are rendered, not between them. Also, render padding
only if there are any nodes to follow the current one.
svn path=/trunk/mcs/; revision=76905
Konstantin Triger [Tue, 8 May 2007 06:59:50 +0000 (06:59 -0000)]
TARGET_JVM: #7464 is fixed
svn path=/trunk/mcs/; revision=76896
Konstantin Triger [Tue, 8 May 2007 06:56:42 +0000 (06:56 -0000)]
TARGET_JVM: #7463 is fixed
svn path=/trunk/mcs/; revision=76894
Konstantin Triger [Tue, 8 May 2007 06:53:02 +0000 (06:53 -0000)]
TARGET_JVM: #7461 is fixed
svn path=/trunk/mcs/; revision=76892
Konstantin Triger [Tue, 8 May 2007 06:45:54 +0000 (06:45 -0000)]
TARGET_JVM: #7458 is fixed
svn path=/trunk/mcs/; revision=76890
Scott Thomas [Tue, 8 May 2007 06:35:54 +0000 (06:35 -0000)]
This code is contributed under the MIT X11 license
The following enables support for several C# 3.0 language features:
* gmcs/cs-parser.jay: Added support for C# 3.0 language features:
Variable type inference (the "var" keyword)
Anonymous types
Array type inference
Object initialization
Collection initialization
* mcs/cs-tokenizer.cs: Added support for the "var" keyword.
* mcs/ecore.cs: Refactored TypeLookupExpression.DoResolveAsTypeStep().
Added VarExpr class to facilitate type inferencing.
* mcs/class.cs: Added IDictionary field AnonymousTypes to TypeContainer
to support anonymous types.
* mcs/assign.cs: Added support for type inferencing and initialization.
* mcs/anonymous.cs: Added AnonymousClass class to enable anonymous
types.
* mcs/expression.cs: Added implicit array support to ArrayCreation.
Added 5 types and 1 interface:
IInitializable Implementing classes can inject
initializing
statements after object instantiation.
Initializer Stores data for object initialization.
AnonymousType An expression for anonymous types.
AnonymousTypeParameter Stores data about an anonymous type's
field.
NewInitialize An expression for object initialization.
CollectionInitialize An expression for collection
initialization.
* mcs/statement.cs: Added "var" keyword support to the foreach, using,
and fixed
statements.
* tests/gtest-anontype-01.cs: Tests anonymous types
* tests/gtest-anontype-02.cs: Tests anonymous types initialized
with local variables
* tests/gtest-anontype-03.cs: Tests anonymous types initialized
with object members
* tests/gtest-anontype-04.cs: Tests anonymous types initialized
with a mix of literals, local variables and object members
* tests/gtest-anontype-05.cs: Tests anonymous type consolidation
* tests/gtest-collectioninit-01.cs: New test for collection
initialization
* tests/gtest-implicitarray-01.cs: New test for implicit arrays
* tests/gtest-initialize-01.cs: Tests object initialization
* tests/gtest-var-01.cs: New test for variable type inference -
the "var" keyword - when used with primitive types
assigned to local variables
* tests/gtest-var-02.cs: Testing the var keyword when assigning
a user-defined type to a local variable
* tests/gtest-var-03.cs: Tests the var keyword when using the
foreach statement with an array
* tests/gtest-var-04.cs: Tests the var keyword when using the
foreach statement with generic collections
* tests/gtest-var-05.cs: Tests the var keyword when using
the "using" statement
* tests/gtest-var-06.cs: Tests the var keyword when using
the "fixed" statement
svn path=/trunk/mcs/; revision=76889
Atsushi Eno [Tue, 8 May 2007 06:24:32 +0000 (06:24 -0000)]
2007-05-08 Atsushi Enomoto <atsushi@ximian.com>
* LogicalMethodInfo.cs : MethodInfo is null when it is async.
Added internal ActualMethodInfo to represent "sync or begin" method
(i.e. former MethodInfo).
* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs :
MethodInfo -> ActualMethodInfo.
* LogicalMethodInfoTest.cs : new test (cosmetic for now).
* System.Web.Services.dll.sources :
removed SoapClientMethod.cs (not in use).
* System.Web.Services_test.dll.sources :
added LogicalMethodInfoTest.cs.
svn path=/trunk/mcs/; revision=76888
Carlos Alberto Cortez [Tue, 8 May 2007 01:00:31 +0000 (01:00 -0000)]
2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When focus changed, call Layout/Invalidate
in the focused item to update the selected state (should show
entire label when ListView is focused, and a part of it if is not).
* ListViewItem.cs: When doing layout for LargeIcon, take into account
for displaying the entire label not only the Focused state of the
item, but also the Focused state of the ListView (match .Net
behaviour).
svn path=/trunk/mcs/; revision=76881
Miguel de Icaza [Tue, 8 May 2007 00:29:01 +0000 (00:29 -0000)]
2007-05-07 Miguel de Icaza <miguel@novell.com>
Missing second part of the patch.
svn path=/trunk/mcs/; revision=76879
Miguel de Icaza [Mon, 7 May 2007 23:11:54 +0000 (23:11 -0000)]
2007-05-07 Miguel de Icaza <miguel@novell.com>
* WebHeaderCollection.cs: To be compatible with older versions of
Mono that might have serialized this in a different format, catch
the potential exception, and try the old name.
This should become a practice whenever we fix serialization in the
future.
This is for #81467
svn path=/trunk/mcs/; revision=76877
Wade Berrier [Mon, 7 May 2007 21:44:29 +0000 (21:44 -0000)]
2007-05-07 Wade Berrier <wberrier@novell.com>
* scripts/mono-find-requires.in: don't use length() on arrays;
doesn't work on older gawk versions. Calculate size manually instead.
svn path=/trunk/mono/; revision=76875
Jonathan Pobst [Mon, 7 May 2007 21:39:35 +0000 (21:39 -0000)]
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
Implement UseWaitCursor.
svn path=/trunk/mcs/; revision=76874
Jonathan Pobst [Mon, 7 May 2007 20:51:44 +0000 (20:51 -0000)]
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
Applying contributed patch from Sergey Volk.
* Clipboard.cs: Implement SetDataObject retry logic and new overload
of SetDataObject.
* XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
svn path=/trunk/mcs/; revision=76873
Marek Habersack [Mon, 7 May 2007 19:29:44 +0000 (19:29 -0000)]
2007-05-07 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: added support for implicit language
detection. If the language isn't set explicitly in the Page
directive, the language value taken from the configuration
considered to be implicit - that is, it can be overwritten by the
first <script> with the runat="server" and language="xx" sets the
language for the parser. This makes it possible to have the
default language set to "C#" and the inline code in, e.g.,
VisualBasic.
2007-05-07 Marek Habersack <mhabersack@novell.com>
* AspGenerator.cs: if the parser's language is implicit (i.e. set
from the default configuration), the first script with the
language attribute present sets the language of the parser.
svn path=/trunk/mcs/; revision=76870
Jonathan Pobst [Mon, 7 May 2007 19:26:44 +0000 (19:26 -0000)]
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement DrawToBitmap.
svn path=/trunk/mcs/; revision=76868
Jonathan Pobst [Mon, 7 May 2007 18:13:55 +0000 (18:13 -0000)]
Applying contributed patch from Stefan Noack.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Add [Get|Set]AutoSizeMode.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* DefaultLayout.cs: Implement AutoSize logic.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* ControlTest.cs: Tests demonstrating Control.AutoSize.
svn path=/trunk/mcs/; revision=76858
Marek Habersack [Mon, 7 May 2007 18:07:06 +0000 (18:07 -0000)]
2007-05-07 Marek Habersack <mhabersack@novell.com>
* ControlBuilder.cs: when mapping types, catch casses of missing
original and mapped types.
If mapped type doesn't derive from the original type, throw an
exception. Fixes bug #81553.
svn path=/trunk/mcs/; revision=76855
Sebastien Pouliot [Mon, 7 May 2007 17:47:36 +0000 (17:47 -0000)]
2007-05-07 Sebastien Pouliot <sebastien@ximian.com>
* TlsClientCertificate.cs: A client certficate with a RSA public key
can only be used, protocol wise, to sign. Which means we should always
be checking it's keyUsage for digitalSignature. Fix for bug #81511
svn path=/trunk/mcs/; revision=76854
Gert Driesen [Mon, 7 May 2007 16:32:12 +0000 (16:32 -0000)]
Undo
svn path=/trunk/mcs/; revision=76849
Gert Driesen [Mon, 7 May 2007 16:22:55 +0000 (16:22 -0000)]
* PagesConfigurationHandler.cs: To match MS, silently ignore child
nodes.
svn path=/trunk/mcs/; revision=76847
Gert Driesen [Mon, 7 May 2007 15:57:38 +0000 (15:57 -0000)]
* MethodInfoTest.cs: Modified test for bug #81538 to verify both
1.0 and 2.0 behavior.
svn path=/trunk/mcs/; revision=76844
Robert Jordan [Mon, 7 May 2007 15:43:02 +0000 (15:43 -0000)]
2007-02-05 Robert Jordan <robertj@gmx.net>
* BaseCalls.cs (PrimitiveParams): Add dummy overload method for
bug #77191.
* ReflectionCalls.cs (PrimitiveParams): Due to the change above
we need to specify the exact signature because PrimitiveParams ()
is overloaded now.
svn path=/trunk/mcs/; revision=76842
Robert Jordan [Mon, 7 May 2007 15:42:16 +0000 (15:42 -0000)]
2007-05-07 Robert Jordan <robertj@gmx.net>
* SoapMessageFormatter.cs (BuildMethodCallFromSoapMessage):
Validate DecodeXmlNamespaceForClrTypeNamespace's result.
Don't use RemotingServices.GetServerTypeForUri's result to
lookup the method from, because it returns the concrete server
type. We need the type that was used to make the call, which
we can compute from DecodeXmlNamespaceForClrTypeNamespace's output.
Fixes the last part of bug #77191.
svn path=/trunk/mcs/; revision=76841
Zoltan Varga [Mon, 7 May 2007 15:40:35 +0000 (15:40 -0000)]
2007-05-07 Zoltan Varga <vargaz@gmail.com>
* MonoMethod.cs (Invoke): Fix a warning.
svn path=/trunk/mcs/; revision=76840
Robert Jordan [Mon, 7 May 2007 15:39:33 +0000 (15:39 -0000)]
2007-02-05 Robert Jordan <robertj@gmx.net>
* MethodCall.cs (ResolveMethod): Actually use the type returned
by CastTo (). Fixes bug #77191.
svn path=/trunk/mcs/; revision=76839
Adar Wesley [Mon, 7 May 2007 15:39:04 +0000 (15:39 -0000)]
2007-05-07 Adar Wesley <adarw@mainsoft.com>
* ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
parameter.
* DataTable.cs: added implementation of IXmlSerializable. Added missing
method ReadXmlSerializable.
svn path=/trunk/mcs/; revision=76838
Jonathan Pobst [Mon, 7 May 2007 15:30:06 +0000 (15:30 -0000)]
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: Unmerge menus when the last child is closed.
svn path=/trunk/mcs/; revision=76837
Zoltan Varga [Mon, 7 May 2007 15:17:46 +0000 (15:17 -0000)]
2007-05-07 Zoltan Varga <vargaz@gmail.com>
* MethodInfoTest.cs: Add test case for #81538.
svn path=/trunk/mcs/; revision=76835
Jonathan Pobst [Mon, 7 May 2007 15:16:54 +0000 (15:16 -0000)]
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Do not call BeginMerge on DropDowns.
* ToolStripManager.cs: Call Merge on DropDowns.
[Fixes bug #81477]
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManagerTest.cs: Add test for bug #81477.
svn path=/trunk/mcs/; revision=76834
Zoltan Varga [Mon, 7 May 2007 15:13:32 +0000 (15:13 -0000)]
2007-05-07 Zoltan Varga <vargaz@gmail.com>
* MonoMethod.cs (Invoke): Don't wrap ThreadAbortException inside a
TargetInvocationException on the 2.0 profile. Fixes #81538.
svn path=/trunk/mcs/; revision=76833
Konstantin Triger [Mon, 7 May 2007 14:52:27 +0000 (14:52 -0000)]
refactoring for .net binary serialization compatibility: rename 'table' -> 'contents'
svn path=/trunk/mcs/; revision=76829
Marek Habersack [Mon, 7 May 2007 14:22:18 +0000 (14:22 -0000)]
2007-05-07 Marek Habersack <mhabersack@novell.com>
* HttpResponseStream.cs: use BufferOutput
* HttpResponse.cs: support Buffer, but use BufferOutput
2007-05-07 Marek Habersack <mhabersack@novell.com>
* PagesSection.cs: buffering is on by default.
svn path=/trunk/mcs/; revision=76828
Rolf Bjarne Kvinge [Mon, 7 May 2007 11:24:11 +0000 (11:24 -0000)]
* XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
uints.
* Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
visibility. We can't create forms visible, since we have to set the
owner before making the form visible (otherwise Win32 will do
strange things with task bar icons). The problem is that we set the
internal is_visible to true before creating the control, so
is_changing_visible_state is the only way of determining if we're
in the process of creating the form due to setting Visible=true -
this works because SetVisibleCore explicitly makes the form
visibile afterwards anyways. Fixes #80775.
svn path=/trunk/mcs/; revision=76823
Konstantin Triger [Mon, 7 May 2007 10:44:31 +0000 (10:44 -0000)]
cosmetic fix for the exception type
svn path=/trunk/mcs/; revision=76822
Marek Habersack [Mon, 7 May 2007 09:34:29 +0000 (09:34 -0000)]
2007-05-07 Marek Habersack <mhabersack@novell.com>
* Wizard.cs: additional checks to see whether the wizard needs to
move to a next step or not. Fixes bug #81532. Patch sent by Mike
Morano <mmorano@mikeandwan.us>, thanks!
svn path=/trunk/mcs/; revision=76819
Adar Wesley [Mon, 7 May 2007 09:32:11 +0000 (09:32 -0000)]
2007-05-07 Adar Wesley <adarw@mainsoft.com>
* ProtocolReflector.cs: added missing method ReflectDescription.
implementation throws NotImplementedException. (forgot ifdef NET_2_0 in previous commit).
svn path=/trunk/mcs/; revision=76818
Adar Wesley [Mon, 7 May 2007 09:21:52 +0000 (09:21 -0000)]
2007-05-07 Adar Wesley <adarw@mainsoft.com>
* ProtocolReflector.cs: added missing method ReflectDescription.
implementation throws NotImplementedException.
svn path=/trunk/mcs/; revision=76815
Igor Zelmanovich [Mon, 7 May 2007 09:19:02 +0000 (09:19 -0000)]
2007-05-07 Igor Zelmanovich <igorz@mainsoft.com>
* FormView.cs: fixed:
avoid NullReferenceException when used EditTemplate w/o binding
directive such Eval or Bind.
svn path=/trunk/mcs/; revision=76814
Raja R Harinath [Mon, 7 May 2007 09:18:53 +0000 (09:18 -0000)]
Thanks to Stephen for the report.
svn path=/trunk/mono/; revision=76813
Raja R Harinath [Mon, 7 May 2007 09:14:57 +0000 (09:14 -0000)]
Fix parallel make.
* runtime/Makefile.am (test-support-file): Remove. Move rules ...
(_tmpinst/bin/mcs, _tmpinst/bin/gmcs, _tmpinst/bin/ilasm): ... here.
svn path=/trunk/mono/; revision=76812
Igor Zelmanovich [Mon, 7 May 2007 08:49:07 +0000 (08:49 -0000)]
2007-05-07 Igor Zelmanovich <igorz@mainsoft.com>
* MenuItem.cs: fixed:
when 'Value' property is not set, value of 'Text' property is used
instead and vice versa.
* MenuTest.cs:
new tests were added.
svn path=/trunk/mcs/; revision=76809
Miguel de Icaza [Mon, 7 May 2007 04:53:37 +0000 (04:53 -0000)]
Some intro text
svn path=/trunk/mcs/; revision=76807
Miguel de Icaza [Mon, 7 May 2007 04:50:19 +0000 (04:50 -0000)]
Add some docs on the lambda stuff
svn path=/trunk/mcs/; revision=76806
Marek Safar [Sun, 6 May 2007 22:16:42 +0000 (22:16 -0000)]
New test.
svn path=/trunk/mcs/; revision=76803
Marek Safar [Sun, 6 May 2007 22:12:28 +0000 (22:12 -0000)]
2007-05-06 Marek Safar <marek.safar@gmail.com>
A fix for bug #81500
* cs-parser.jay: Add special handling for coalescing operator.
2007-05-06 Marek Safar <marek.safar@gmail.com>
A fix for bug #81500
* cs-tokenizer.cs: Add special handling for coalescing operator.
svn path=/trunk/mcs/; revision=76802