Marek Safar [Tue, 19 Feb 2008 16:56:56 +0000 (16:56 -0000)]
2008-02-19 Marek Safar <marek.safar@gmail.com>
* constant.cs, cfold.cs: SideEffectConstant results can apply for folding.
svn path=/trunk/mcs/; revision=96164
Andreia Gaita [Tue, 19 Feb 2008 16:50:50 +0000 (16:50 -0000)]
* Control.cs: Added a new flag is_disposing to track if the
window is currently in the process of being disposed of.
This is used so that, when firing visibility changes triggered
by unparenting controls during Dispose, the control doesn't
get created again.
2008-02-19 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=96163
Jonathan Pobst [Tue, 19 Feb 2008 16:42:25 +0000 (16:42 -0000)]
Add some debugging info.
svn path=/trunk/mcs/; revision=96162
Jonathan Pobst [Tue, 19 Feb 2008 16:40:04 +0000 (16:40 -0000)]
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* ComboBoxTest.cs: Use PreferredHeight in MethodScaleControl.
Fixes buildbot failure.
svn path=/trunk/mcs/; revision=96161
Jonathan Pobst [Tue, 19 Feb 2008 16:10:23 +0000 (16:10 -0000)]
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* FlowLayout.cs: Take padding into account when determining if there
is still room left on a row. [Fixes bug #361448]
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* FlowPanelTests.cs: Add test for bug #361448.
svn path=/trunk/mcs/; revision=96160
Atsushi Eno [Tue, 19 Feb 2008 15:59:12 +0000 (15:59 -0000)]
2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchema.cs : Do recursively process xs:include inside included
schemas. Fixed bug #361818.
* XmlSchemaTests.cs: added test for bug #361818.
* 361818.xsd, 361818-2.xsd, 361818-3.xsd : new test files.
* Makefile : extra distfiles (361818*.xsd).
svn path=/trunk/mcs/; revision=96159
Miguel de Icaza [Tue, 19 Feb 2008 15:24:19 +0000 (15:24 -0000)]
2008-02-18 Miguel de Icaza <miguel@novell.com>
* IPv4InterfaceStatistics.cs: Implemented Linux support.
* NetworkInterface.cs: Implemented Linux support.
TODO: still missing GetIPProperties.
svn path=/trunk/mcs/; revision=96155
Jonathan Pobst [Tue, 19 Feb 2008 15:17:31 +0000 (15:17 -0000)]
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Set height to preferred height when the handle
is created. [Fixes bug #360862]
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* ComboBoxTest.cs: Add test for bug #360862.
svn path=/trunk/mcs/; revision=96152
Jb Evain [Tue, 19 Feb 2008 14:11:54 +0000 (14:11 -0000)]
we pass those tests
svn path=/trunk/mcs/; revision=96147
Jb Evain [Tue, 19 Feb 2008 14:11:37 +0000 (14:11 -0000)]
2008-02-19 Jb Evain <jbevain@novell.com>
* Expression.cs, ExpressionPrinter.cs: implement last New
overload for anonymous types.
svn path=/trunk/mcs/; revision=96146
Jb Evain [Tue, 19 Feb 2008 13:47:58 +0000 (13:47 -0000)]
add a few tests
svn path=/trunk/mcs/; revision=96144
Marek Safar [Tue, 19 Feb 2008 13:17:24 +0000 (13:17 -0000)]
2008-02-19 Marek Safar <marek.safar@gmail.com>
A fix for bug #328136
* expression.cs: Do not fold immediately LogicalAnd operators when the left
side is a false constant, because we still need to evaluate the right-hand
side.
* statement.cs (If): Emit two types of boolean constants (simple constant,
side-effect constant).
svn path=/trunk/mcs/; revision=96136
Marek Safar [Tue, 19 Feb 2008 12:23:31 +0000 (12:23 -0000)]
2008-02-19 Marek Safar <marek.safar@gmail.com>
* constant.cs (SideEffectConstant): Don't emit boolean constant.
* expression.cs: Fold immediately LogicalAnd operators when both sides are
constants.
svn path=/trunk/mcs/; revision=96126
Jb Evain [Tue, 19 Feb 2008 09:28:43 +0000 (09:28 -0000)]
2008-02-19 Jb Evain <jbevain@novell.com>
* Mono.Cecil/DefaultImporter.cs:
Add support for importing function pointers. Based on a
patch by Andrea Carlo Ornstein <andrea.ornstein@st.com>.
svn path=/trunk/mcs/; revision=96124
Jb Evain [Tue, 19 Feb 2008 09:20:39 +0000 (09:20 -0000)]
2008-02-19 Jb Evain <jbevain@novell.com>
* Mono.Cecil/ModuleDefinition.cs:
Add a Inject(FieldDef) overload for symmetry.
Patch by Andrea Carlo Ornstein <andrea.ornstein@st.com>.
svn path=/trunk/mcs/; revision=96123
Atsushi Eno [Tue, 19 Feb 2008 05:33:38 +0000 (05:33 -0000)]
2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
* XmlParserContext.cs : .net does not populate XmlNamespaceManager
automatically.
* XmlDocument.cs : so, always create one here.
* XmlParserContextTests.cs : they are working. case #3 should not
try to parse broken internalSubset (we do not allow broken
intsubset and it is almost no worthy of assuring only-nominal
.net compat that such broken internalSubset should be allowed).
svn path=/trunk/mcs/; revision=96116
Atsushi Eno [Tue, 19 Feb 2008 04:02:53 +0000 (04:02 -0000)]
2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
* XsdWildcard.cs : block extra compilation and made compilation reset.
This somehow fixed bug #360541.
* XmlSchemaAny.cs : block extra compilation in anyTypeContent.
* XmlSchemasTests.cs : new test file (for bug #360541).
* System.Xml_test.dll.sources: added XmlSchemasTests.cs.
svn path=/trunk/mcs/; revision=96115
Rodrigo Kumpera [Mon, 18 Feb 2008 22:56:07 +0000 (22:56 -0000)]
2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c: Implement skip visibility flag.
svn path=/trunk/mono/; revision=96107
Marek Habersack [Mon, 18 Feb 2008 22:35:24 +0000 (22:35 -0000)]
2008-02-19 Marek Habersack <mhabersack@novell.com>
* HttpParamsCollection.cs: do not override the NVC behavior for
GetValues - values from different sources (Form, Query, Cookies,
ServerVariables) must be kept separate for this purpose. This is
also the behavior of MS.NET. Fixes bug #362189
svn path=/trunk/mcs/; revision=96105
Andreia Gaita [Mon, 18 Feb 2008 22:33:49 +0000 (22:33 -0000)]
* ControlTest.cs: New test to check if, when controls don't have
a parent and are then reparented, their location is not changed.
2008-02-18 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=96104
Rodrigo Kumpera [Mon, 18 Feb 2008 21:47:06 +0000 (21:47 -0000)]
2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
* unverifiable_locals_without_initlocals.il: Methods with locals
that are not .init are allways unverifiable.
svn path=/trunk/mono/; revision=96103
Zoltan Varga [Mon, 18 Feb 2008 20:35:55 +0000 (20:35 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* CustomAttributeDataTest.cs: New file.
svn path=/trunk/mcs/; revision=96101
Zoltan Varga [Mon, 18 Feb 2008 20:35:20 +0000 (20:35 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* corlib_test.dll.sources: Add System.Reflection/CustomAttributeDataTest.cs.
svn path=/trunk/mcs/; revision=96100
Zoltan Varga [Mon, 18 Feb 2008 20:33:47 +0000 (20:33 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* CustomAttributeTypedArgument.cs (.ctor): Convert arrays into a collection of
CustomAttributeTypedArguments to match MS.
svn path=/trunk/mcs/; revision=96099
Marek Safar [Mon, 18 Feb 2008 20:00:30 +0000 (20:00 -0000)]
Reverted a fix for bug #328136
svn path=/trunk/mcs/; revision=96098
Marek Habersack [Mon, 18 Feb 2008 19:36:57 +0000 (19:36 -0000)]
2008-02-18 Marek Habersack <mhabersack@novell.com>
* HttpRuntime.cs: When app is offline, send status code 503
instead of 200. Fixes bug #357565
svn path=/trunk/mcs/; revision=96096
Andreia Gaita [Mon, 18 Feb 2008 19:19:40 +0000 (19:19 -0000)]
* XplatUIX11.cs: Create FosterParent with border width at 0.
With the previous value of 4, everytime a control got reparented
from parent = null, its location would be shifted right and
down by 4, since these coordinates would be offset by the
FosterParent's border width.
2008-02-18 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=96095
Marek Habersack [Mon, 18 Feb 2008 19:13:19 +0000 (19:13 -0000)]
2008-02-18 Marek Habersack <mhabersack@novell.com>
* FormView.cs: the ItemCreated must be fired before data is bound
to the FormView. Fixes bug #360434
svn path=/trunk/mcs/; revision=96093
Zoltan Varga [Mon, 18 Feb 2008 18:25:24 +0000 (18:25 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* amd64/amd64-codegen.h (amd64_movsxd_reg_mem): New codegen macro.
svn path=/trunk/mono/; revision=96092
Zoltan Varga [Mon, 18 Feb 2008 18:23:02 +0000 (18:23 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* genmdesc.c (build_table): Fix a crash on older glib versions.
* cpu-sparc.md: Remove some unused opcodes.
svn path=/trunk/mono/; revision=96091
Zoltan Varga [Mon, 18 Feb 2008 18:15:58 +0000 (18:15 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* genmdesc.c: Error out if the .md contains CEE_ opcodes if
MONO_ARCH_ENABLE_NORMALIZE_OPCODES is defined.
* cpu-amd64.md: Remove some unused opcodes.
svn path=/trunk/mono/; revision=96090
Rodrigo Kumpera [Mon, 18 Feb 2008 17:53:25 +0000 (17:53 -0000)]
2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
* verify.h: Added MONO_VERIFY_SKIP_VISIBILITY and struct MonoVerifyInfoExtended
which contains an extra field to tell the kind of exception that should be thrown.
* verify.c: Use MonoVerifyInfoExtended instead of MonoVerifyInfo.
svn path=/trunk/mono/; revision=96086
Zoltan Varga [Mon, 18 Feb 2008 17:45:23 +0000 (17:45 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* mini.h mini-ops.h mini.c: Define the OP_Ccc opcodes in mini-ops.h normally
like the other opcodes.
svn path=/trunk/mono/; revision=96085
Marek Habersack [Mon, 18 Feb 2008 17:01:53 +0000 (17:01 -0000)]
2008-02-18 Marek Habersack <mhabersack@novell.com>
* VirtualPathProvider.cs: chain up to the previous provider, if
prexent. Fixes bug #362038
svn path=/trunk/mcs/; revision=96079
Marek Safar [Mon, 18 Feb 2008 16:51:08 +0000 (16:51 -0000)]
Updated
svn path=/trunk/mcs/; revision=96077
Marek Safar [Mon, 18 Feb 2008 16:50:49 +0000 (16:50 -0000)]
New test.
svn path=/trunk/mcs/; revision=96076
Marek Safar [Mon, 18 Feb 2008 16:50:37 +0000 (16:50 -0000)]
2008-02-18 Marek Safar <marek.safar@gmail.com>
A fix for bug #328136
* constant.cs (SideEffectConstant): Don't emit boolean constant.
* expression.cs: Do not fold immediately LogicalAnd operators when the left
side is a false constant, because we still need to evaluate the right-hand
side.
* statement.cs (If): Emit two types of boolean constants (simple constant,
side-effect constant).
svn path=/trunk/mcs/; revision=96075
Marek Safar [Mon, 18 Feb 2008 16:49:36 +0000 (16:49 -0000)]
Removed to many spaces
svn path=/trunk/mcs/; revision=96074
Zoltan Varga [Mon, 18 Feb 2008 16:44:37 +0000 (16:44 -0000)]
2008-02-18 Zoltan Varga <vargaz@gmail.com>
* CILCompiler.cs (EmitEvalMethodBody): Check for the not-yet supported
groups.Count > 1.
svn path=/trunk/mcs/; revision=96073
Ivan Zlatev [Mon, 18 Feb 2008 16:38:00 +0000 (16:38 -0000)]
2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: During diposing firstly remove ourselfes from
the parent and *then* destroy our handle, because removing
ourselfes from the parent controls collection causes
VisibilityChange, etc events, which require a handle and end
up recreating the control.
svn path=/trunk/mcs/; revision=96072
Vladimir Krasnov [Mon, 18 Feb 2008 16:25:21 +0000 (16:25 -0000)]
* WebConfigurationManager.cs: performance improvement, cached GetSection method
svn path=/trunk/mcs/; revision=96069
Marek Safar [Mon, 18 Feb 2008 15:07:33 +0000 (15:07 -0000)]
Removed deprecated -langversion:linq
svn path=/trunk/mcs/; revision=96063
Marek Safar [Mon, 18 Feb 2008 14:59:36 +0000 (14:59 -0000)]
Removed deprecated -langversion:linq option
svn path=/trunk/mcs/; revision=96062
Marek Safar [Mon, 18 Feb 2008 14:35:15 +0000 (14:35 -0000)]
Add new tests.
svn path=/trunk/mcs/; revision=96052
Marek Safar [Mon, 18 Feb 2008 14:34:57 +0000 (14:34 -0000)]
2008-02-18 Marek Safar <marek.safar@gmail.com>
A fix for bug #361457
* ecore.cs (IsApplicable): Params methods have lower priority.
* support.cs: Return correct parameter modifier for params types.
svn path=/trunk/mcs/; revision=96051
Marek Safar [Mon, 18 Feb 2008 11:12:34 +0000 (11:12 -0000)]
New test.
svn path=/trunk/mcs/; revision=96045
Marek Safar [Mon, 18 Feb 2008 10:48:37 +0000 (10:48 -0000)]
2008-02-18 Marek Safar <marek.safar@gmail.com>
* generic.cs (TypeParameter): Cache attribute target name.
* support.cs: Removed unused variable.
* typemanager.cs: Removed debugging leftover.
* ecore.cs: Use local type instead of a property;
* class.cs (VerifyMembers): Consider also parent to test whether type member
is local or public.
* expression.cs (FullMethodDesc): Removed.
* attribute.cs (IsValidArgumentType): Made static.
svn path=/trunk/mcs/; revision=96042
Atsushi Eno [Mon, 18 Feb 2008 07:21:57 +0000 (07:21 -0000)]
2008-02-18 Atsushi Enomoto <atsushi@ximian.com>
* DBNull.cs : ToType(typeof(DBNull),...) should be allowed.
svn path=/trunk/mcs/; revision=96031
Raja R Harinath [Mon, 18 Feb 2008 06:28:41 +0000 (06:28 -0000)]
* rules.make (%/.stamp): Unify all directory creation targets here.
svn path=/trunk/mcs/; revision=96030
Raja R Harinath [Mon, 18 Feb 2008 06:12:12 +0000 (06:12 -0000)]
* Makefile ($(dir $(PROGRAM))/.stamp): New.
svn path=/trunk/mcs/; revision=96029
Raja R Harinath [Mon, 18 Feb 2008 05:31:05 +0000 (05:31 -0000)]
Disable test-coreclr-security till #362626 is fixed
svn path=/trunk/mono/; revision=96028
Raja R Harinath [Mon, 18 Feb 2008 05:19:22 +0000 (05:19 -0000)]
* Makefile (CYCLIC_DEPS): Don't use $(eval ...) -- we still
support older GNU makes.
svn path=/trunk/mcs/; revision=96027
Raja R Harinath [Mon, 18 Feb 2008 05:00:10 +0000 (05:00 -0000)]
* Makefile (net_2_0_centum_tests): Add System.Xml.Linq here.
svn path=/trunk/mcs/; revision=96026
Raja R Harinath [Mon, 18 Feb 2008 04:59:52 +0000 (04:59 -0000)]
* Makefile (inst-%, gac-%): Fix dependencies.
svn path=/trunk/mcs/; revision=96025
Gert Driesen [Sun, 17 Feb 2008 19:08:47 +0000 (19:08 -0000)]
* CharConverterTest.cs: Added tests for ConvertFrom and ConvertTo.
* CultureInfoConverterTest.cs: Added tests for ConvertFrom and
ConvertTo.
* CharConverter.cs (ConvertFrom): Avoid NRE when value is null.
Provide more info when left of value > 1.
* CultureInfoConverter.cs (ConvertFrom): Avoid NRE when value is null.
On 2.0 profile, use case-sensitive comparison for (Default) value.
Use case-insensitive comparing when value is considered as displayname.
Provide more info in exception message.
(ConvertTo): Use '(Default)' instead of '(default)' for invariant
culture.
* System_test.dll.sources: Added CharConverterTest.cs and
CultureInfoConverterTest.cs.
svn path=/trunk/mcs/; revision=95995
Zoltan Varga [Sun, 17 Feb 2008 19:05:40 +0000 (19:05 -0000)]
2008-02-17 Zoltan Varga <vargaz@gmail.com>
* mini-ia64.c: Use cfg->vret_addr instead of cfg->ret.
svn path=/trunk/mono/; revision=95994
Zoltan Varga [Sun, 17 Feb 2008 19:03:42 +0000 (19:03 -0000)]
2008-02-09 Zoltan Varga <vargaz@gmail.com>
* mini-arm.h mini-arm.c exceptions-arm.c: Modify the exception throwing code and
the IMT code so it is AOT friendly. Enable AOT for methods which call interface
methods.
svn path=/trunk/mono/; revision=95993
Zoltan Varga [Sun, 17 Feb 2008 19:02:58 +0000 (19:02 -0000)]
2008-02-17 Zoltan Varga <vargaz@gmail.com>
* mini-arm.h mini-arm.c: Use cfg->vret_addr instead of cfg->ret.
svn path=/trunk/mono/; revision=95992
Raja R Harinath [Sun, 17 Feb 2008 17:54:22 +0000 (17:54 -0000)]
In .:
* Makefile (_boot_): Orchestrate the net_2_1 bootstrap.
(net_2_1_bootstrap_SUBDIRS, net_2_1_raw_SUBDIRS): New.
In build:
* profiles/net_2_1_bootstrap.make: New.
* profiles/net_2_1_raw.make: New. The untuned 2.1 profile.
* profiles/net_2_1.make: New. The tuned 2.1 profile.
* Makefile (PROFILES): Update.
In class:
* Makefile (net_3_5_dirs): Remove System.Xml.Linq, now that it's
built in the 2.0 profile.
In class/System:
* Makefile (CYCLIC_DEPS): New macro.
(CYCLIC_DEP_FILES): Use it to clean up handling of cyclic dependencies.
* net_2_1_raw_System.dll.sources: Rename from net_2_1_System.dll.sources.
* net_2_1_bootstrap_System.dll.sources: New.
In class/corlib:
* Makefile (LIBRARY_COMPILE) [net_2_1]: Remove special case.
In errors:
* Makefile: Enable testing net_2_1 profile.
In mcs:
* Makefile (GMCS_PROFILE): Remove.
(COMPILER_NAME): New helper.
In tests:
* Makefile: Enable smcs testing.
In tools:
* Makefile (net_2_1_raw_SUBDIRS): New.
In tools/compiler-tester:
* Makefile [PROFILE=net_2_1]: Copy file from net_2_1_raw profile.
* compiler-tester.cs: Work better with 'net_2_1' profiles.
In tools/tuner:
* Makefile: Improve. Update to new net_2_1 profiles. Specify
more dependencies. Do work only when necessary.
* Descriptors/smcs.xml: Add CompilerCallableEntryPoint.
svn path=/trunk/mcs/; revision=95989
Raja R Harinath [Sun, 17 Feb 2008 17:19:10 +0000 (17:19 -0000)]
* loader.c (mono_method_get_param_names): Initialize 'klass' after
'method' is updated.
svn path=/trunk/mono/; revision=95984
Raja R Harinath [Sun, 17 Feb 2008 17:18:51 +0000 (17:18 -0000)]
* Makefile.am (SMCS): Add temporary-smcs-hack flag.
svn path=/trunk/mono/; revision=95983
Raja R Harinath [Sun, 17 Feb 2008 17:18:33 +0000 (17:18 -0000)]
Prepare for handling runs
svn path=/trunk/mono/; revision=95982
Zoltan Varga [Sun, 17 Feb 2008 16:46:54 +0000 (16:46 -0000)]
2008-02-17 Zoltan Varga <vargaz@gmail.com>
* mini-sparc.c: Use cfg->vret_addr instead of cfg->ret. Name the MonoCompile
variables 'cfg' instead of 'm' for consistency.
svn path=/trunk/mono/; revision=95980
Daniel Nauck [Sun, 17 Feb 2008 16:17:32 +0000 (16:17 -0000)]
fixed typo
svn path=/trunk/mcs/; revision=95979
Zoltan Varga [Sun, 17 Feb 2008 16:06:24 +0000 (16:06 -0000)]
2008-02-17 Zoltan Varga <vargaz@gmail.com>
* mini-x86.c: Use cfg->vret_addr instead of cfg->ret.
svn path=/trunk/mono/; revision=95978
Zoltan Varga [Sun, 17 Feb 2008 15:56:39 +0000 (15:56 -0000)]
2008-02-17 Zoltan Varga <vargaz@gmail.com>
* mini.h (MonoCompile): Add new 'vret_addr' field which represents the hidden
argument holding the vtype return address, to avoid the ambigious use of
cfg->ret for this purpose.
* mini.c (NEW_RETLOADA): Use vret_addr if set.
* mini-amd64.c: Use cfg->vret_addr instead of cfg->ret.
* mini-codegen.c (mono_print_ins): Rename to mono_print_ins_index (), Add a
new mono_print_ins () function which only takes one argument.
svn path=/trunk/mono/; revision=95977
Igor Zelmanovich [Sun, 17 Feb 2008 14:43:32 +0000 (14:43 -0000)]
TARGET_J2EE:
merge r95970:95971
svn path=/trunk/mcs/; revision=95972
Ivan Zlatev [Sun, 17 Feb 2008 14:04:01 +0000 (14:04 -0000)]
2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Set expanded state before notifying that the
expansion has taken place.
* PropertyGridView.cs:
- Set the propertygridtextbox text to the selected
StandardValue before proceeding to setting it.
- Scrolling bugfixes.
svn path=/trunk/mcs/; revision=95968
Daniel Nauck [Sun, 17 Feb 2008 13:57:36 +0000 (13:57 -0000)]
2008-02-17 Daniel Nauck <dna@mono-project.de>
* HttpWebResponse.cs: refactored cookie expires parsing to
allow all common expires datetime formats.
svn path=/trunk/mcs/; revision=95967
Igor Zelmanovich [Sun, 17 Feb 2008 07:34:31 +0000 (07:34 -0000)]
merge r95956:95957
svn path=/trunk/mcs/; revision=95958
Ivan Zlatev [Sat, 16 Feb 2008 22:01:05 +0000 (22:01 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs:
- Fix ValueText to not return null.
- Fix conversion error reporting to actually happen.
* PropertyGridView.cs: Set entry only if the text has changed.
[Fixes bug #362116]
svn path=/trunk/mcs/; revision=95934
Ivan Zlatev [Sat, 16 Feb 2008 21:54:53 +0000 (21:54 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* CharConverter.cs:
- Handle \0 char.
- Trim the ConvertFrom string
- Handle null string in ConvertFrom as \0 char.
[Fixes bug #362112]
svn path=/trunk/mcs/; revision=95930
Jb Evain [Sat, 16 Feb 2008 21:44:53 +0000 (21:44 -0000)]
2008-02-16 Jb Evain <jbevain@novell.com>
* CodeGen/templates/MetadataRowReader.cs
CodeGen/templates/Utilities.cs
CodeGen/templates/MetadataRowWriter.cs
Mono.Cecil.Metadata/MetadataRowReader.cs
Mono.Cecil.Metadata/MetadataRowWriter.cs
Mono.Cecil.Metadata/Utilities.cs:
Use a good old traditional array instead of an
Hashtable. Based on a patch by Carlo Kok <ck@remobjects.com>.
svn path=/trunk/mcs/; revision=95929
Sebastien Pouliot [Sat, 16 Feb 2008 20:34:52 +0000 (20:34 -0000)]
2008-02-16 Sebastien Pouliot <sebastien@ximian.com>
* Object.cs: Fix parameter name to match MS implementation. Found
using Gendarme.
* ValueType.cs: Fix parameter name to match MS implementation.
Found using Gendarme.
svn path=/trunk/mcs/; revision=95918
Ivan Zlatev [Sat, 16 Feb 2008 20:18:47 +0000 (20:18 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* CultureInfoConverter.cs:
- Handle "(default)" to and from conversion
- Sort cultures alphabetically and also cache them.
[Fixes bug #362113]
svn path=/trunk/mcs/; revision=95916
Ivan Zlatev [Sat, 16 Feb 2008 20:07:09 +0000 (20:07 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs:
- Fix handling of a null current value.
- Swallow editor exceptions.
[Fixes bug #362114]
svn path=/trunk/mcs/; revision=95914
Ivan Zlatev [Sat, 16 Feb 2008 17:57:46 +0000 (17:57 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs, PropertyGridView.cs: Explicitly send
a mouse down event to the textbox so that we get the caret
positioned under cursor.
[Fixes bug #362119]
svn path=/trunk/mcs/; revision=95907
Ivan Zlatev [Sat, 16 Feb 2008 14:46:22 +0000 (14:46 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Clear current items first thing before
repopulating subitems.
* GridEntry.cs:
- Handle null StandardValuesCollection.
- Mark as not editable if there is no PropertyDescriptor and
if the Converter cannot convert from string.
[Part of fix for bugs #360666 and #358332]
svn path=/trunk/mcs/; revision=95880
Ivan Zlatev [Sat, 16 Feb 2008 14:37:53 +0000 (14:37 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* CollectionEditor.cs: Handle null collection.
[Part of fix for bugs #360666 and #358332]
svn path=/trunk/mcs/; revision=95877
Ivan Zlatev [Sat, 16 Feb 2008 14:35:03 +0000 (14:35 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* UITypeEditor.cs: Associate string[] with StringArrayEditor in the
editors table.
[Part of fix for bugs #360666 and #358332]
svn path=/trunk/mcs/; revision=95876
Ivan Zlatev [Sat, 16 Feb 2008 14:29:53 +0000 (14:29 -0000)]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* TypeDescriptor.cs, PropertyDescriptor.cs:
Do not throw when can't find Type from string.
* ReferenceConverter.cs: Convert null value from and to string.
Return an empty StandardValueCollection.
[Part of fix for bugs #360666 and #358332]
svn path=/trunk/mcs/; revision=95874
Atsushi Eno [Sat, 16 Feb 2008 07:58:49 +0000 (07:58 -0000)]
2008-02-16 Atsushi Enomoto <atsushi@ximian.com>
* ContentType.cs : Reject such MediaType that lacks '/'.
Do not reject such parameters that are not standard ones.
* ContentTypeTest.cs : (oops we didn't have ChangeLog here) added
another .ctor() test.
svn path=/trunk/mcs/; revision=95854
Luke Page [Fri, 15 Feb 2008 23:33:55 +0000 (23:33 -0000)]
2008-02-15 Luke Page <luke.a.page@gmail.com>
* MaskedTextBox.cs: Now skips non editable characters after a
character has been entered and we are progressing to the next
position in the MaskedTextBox.
svn path=/trunk/mcs/; revision=95850
Marek Safar [Fri, 15 Feb 2008 22:48:15 +0000 (22:48 -0000)]
Fixed test syntax.
svn path=/trunk/mcs/; revision=95848
Luke Page [Fri, 15 Feb 2008 22:43:58 +0000 (22:43 -0000)]
2008-02-15 Luke Page <luke.a.page@gmail.com>
* TextBoxBase.cs: Handles MouseDown when shift key is clicked so
that it changes the selection rather than just repositioning the
cursor. Fixes Bug #360873.
svn path=/trunk/mcs/; revision=95847
Marek Safar [Fri, 15 Feb 2008 22:42:25 +0000 (22:42 -0000)]
Updated cs0214-10.cs error status
svn path=/trunk/mcs/; revision=95846
Luke Page [Fri, 15 Feb 2008 22:14:49 +0000 (22:14 -0000)]
2008-02-15 Luke Page <luke.a.page@gmail.com>
* TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
correctly. See #359330
svn path=/trunk/mcs/; revision=95844
Miguel de Icaza [Fri, 15 Feb 2008 21:48:54 +0000 (21:48 -0000)]
2008-02-15 Miguel de Icaza <miguel@novell.com>
* UnmanagedMemoryStream.cs: Implement few missing pieces.
svn path=/trunk/mcs/; revision=95839
Miguel de Icaza [Fri, 15 Feb 2008 20:18:14 +0000 (20:18 -0000)]
2008-02-15 Miguel de Icaza <miguel@novell.com>
* cs-tokenizer.cs: if a conditional expression happens inside a
(...) this also means that we do not need to de-ambiguate between
an parenthesized expression and a cast.
Fixes 346484.
svn path=/trunk/mcs/; revision=95821
Miguel de Icaza [Fri, 15 Feb 2008 20:16:58 +0000 (20:16 -0000)]
Errors should compile, except for the one error they highlight
svn path=/trunk/mcs/; revision=95819
Miguel de Icaza [Fri, 15 Feb 2008 16:48:42 +0000 (16:48 -0000)]
2008-02-15 Miguel de Icaza <miguel@novell.com>
* constant.cs (SideEffectConstant): a constant value that happens
to have a side effect.
Fixes the build regressions introduced by the fix for #359789
svn path=/trunk/mcs/; revision=95765
Miguel de Icaza [Fri, 15 Feb 2008 16:35:24 +0000 (16:35 -0000)]
Errors in general should build, except for the one error they trigger
svn path=/trunk/mcs/; revision=95764
Zoltan Varga [Fri, 15 Feb 2008 14:49:39 +0000 (14:49 -0000)]
2008-02-15 Zoltan Varga <vargaz@gmail.com>
* mini-s390.h (MONO_OUTPUT_VTR): Use cfg instead of s, avoid assignments to
macro arguments.
svn path=/trunk/mono/; revision=95759
Atsushi Eno [Fri, 15 Feb 2008 13:45:11 +0000 (13:45 -0000)]
2008-02-15 Atsushi Enomoto <atsushi@ximian.com>
* Uri.cs : UriParser field blocks serialization.
svn path=/trunk/mcs/; revision=95751
Andreia Gaita [Fri, 15 Feb 2008 13:17:06 +0000 (13:17 -0000)]
* XplatUIX11.cs: If the handle is null when posting a message, use the
current thread queue to post instead. Fixes #332409
* SendKeys.cs: Slight optimization
2008-02-15 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=95747
Miguel de Icaza [Thu, 14 Feb 2008 23:31:16 +0000 (23:31 -0000)]
2008-02-14 Rodrigo Kumpera <rkumpera@novell.com>
* expression.cs (Conditional.Emit): when emitting the ternary
operator, use local variables to generate code verifiable code.
The verifier cannot infer that the type on stack before the
stloc.0 is executed is of type ParentB. This happens because the
stack merge algorithm uses only parent types when deciding which
is the common type. This is described in Part III 1.8.1.3 of ECMA
335.
This code compiled with mcs is not verifiable under MS. The MS
verifier picks the first common interface of Foo and Bar, which is
wrong, but doesn't use a full join type of the 2 interfaces.
CSC uses a clever hack to compile such code in a verifiable
way. It stores the intermediate values in a local variable with
the expected type.
Fixes: #358102
svn path=/trunk/mcs/; revision=95710
Miguel de Icaza [Thu, 14 Feb 2008 23:24:14 +0000 (23:24 -0000)]
2008-02-14 Miguel de Icaza <miguel@novell.com>
* expression.cs: Do not fold BitwiseAnd operators when the left
side is a false constant, because we still need to evaluate the
right-hand side.
Fixes #359789
svn path=/trunk/mcs/; revision=95709
Miguel de Icaza [Thu, 14 Feb 2008 22:56:09 +0000 (22:56 -0000)]
2008-02-14 Miguel de Icaza <miguel@novell.com>
* support.cs: Instead of throwing an InternalErrorException when
the position of the stream is outside the boundary of our buffer,
reset the state of the reader, and restart the reading from the
beginning of the file.
svn path=/trunk/mcs/; revision=95708
Ivan Zlatev [Thu, 14 Feb 2008 19:32:43 +0000 (19:32 -0000)]
2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs:
Fix multiple scrolling and sizing issues.
[Fixes bug #359199]
svn path=/trunk/mcs/; revision=95680
Zoltan Varga [Thu, 14 Feb 2008 18:00:56 +0000 (18:00 -0000)]
2008-02-14 Zoltan Varga <vargaz@gmail.com>
* mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.
* mini-sparc.c inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.
svn path=/trunk/mono/; revision=95675