mono.git
16 years ago* certmgr.cs: Fixed reflection magic to look for ServerCertificates in
Gert Driesen [Mon, 17 Dec 2007 14:08:21 +0000 (14:08 -0000)]
* certmgr.cs: Fixed reflection magic to look for ServerCertificates in
SslStreamBase. This avoids breakage once patch for bug #349078 is
applied. Added support for removing CRL's from store.

svn path=/trunk/mcs/; revision=91440

16 years ago2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 17 Dec 2007 10:39:16 +0000 (10:39 -0000)]
2007-12-17  Atsushi Enomoto  <atsushi@ximian.com>

* XmlConvert.cs : added NET_3_5 members.

svn path=/trunk/mcs/; revision=91429

16 years ago2007-12-17 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 17 Dec 2007 09:43:05 +0000 (09:43 -0000)]
2007-12-17  Jb Evain  <jbevain@novell.com>

* Makefile: build Mono.Cecil only in the default profile.

svn path=/trunk/mcs/; revision=91414

16 years ago2007-12-17 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 17 Dec 2007 09:41:37 +0000 (09:41 -0000)]
2007-12-17  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/IMemberDefinition.cs: make IMemberDefinition
implement ICustomAttributeProvider.

svn path=/trunk/mcs/; revision=91412

16 years ago2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 17 Dec 2007 08:51:58 +0000 (08:51 -0000)]
2007-12-17  Atsushi Enomoto <atsushi@ximian.com>

* Iterator.cs : oops, extra removal that causes perf. loss.

svn path=/trunk/mcs/; revision=91406

16 years ago2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 17 Dec 2007 08:25:12 +0000 (08:25 -0000)]
2007-12-17  Atsushi Enomoto <atsushi@ximian.com>

* Iterator.cs : be more strict to detect the end of
  PredicateIterator. Fixed bug #349111.

* XslTransformTests.cs : added test for bug #349111.

svn path=/trunk/mcs/; revision=91405

16 years agoVisual Studio project file for the library.
Arina Itkes [Mon, 17 Dec 2007 08:03:34 +0000 (08:03 -0000)]
Visual Studio project file for the library.

svn path=/trunk/mcs/; revision=91404

16 years ago2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 17 Dec 2007 07:46:50 +0000 (07:46 -0000)]
2007-12-17  Atsushi Enomoto  <atsushi@ximian.com>

* GDIPlusTest.cs : fix test build.

svn path=/trunk/mcs/; revision=91403

16 years ago2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 17 Dec 2007 07:28:33 +0000 (07:28 -0000)]
2007-12-17  Atsushi Enomoto <atsushi@ximian.com>

* Expression.cs : In any comparison expr, treat RTF as equivalent to
  string type (as specified in XSLT 1.0 section 11.1: "An operation
  is permitted on a result tree fragment only if that operation would
  be permitted on a string." ...). Fixed bug #349035.

* XslTransformTests.cs : added test for bug #349035.

svn path=/trunk/mcs/; revision=91402

16 years ago2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 17 Dec 2007 06:31:49 +0000 (06:31 -0000)]
2007-12-17  Atsushi Enomoto  <atsushi@ximian.com>

* XslValueOf.cs : allow external elements in xsl:value-of.
  Fixed bug #348786.

* XslTransformTests.cs : added test for bug #348786.

svn path=/trunk/mcs/; revision=91401

16 years ago2007-12-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sun, 16 Dec 2007 23:56:32 +0000 (23:56 -0000)]
2007-12-16  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripDropDown.cs: Guard against an NRE when there
hasn't been a mainform set in the application context.
[Fixes bug #349108]

svn path=/trunk/mcs/; revision=91398

16 years ago2007-12-16 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 16 Dec 2007 19:04:34 +0000 (19:04 -0000)]
2007-12-16  Miguel de Icaza  <miguel@novell.com>

* Image.cs: Use the existing GdipPropertyItem.MarshalTo method to
conver the PropertyItem into a property item with Sequential
attached to it, and pass that to unmanaged code.   Fixes #349103.

svn path=/trunk/mcs/; revision=91391

16 years agoMonoTODO is cAsE SenSItIve stephane! :)
R. Tyler Ballance [Sun, 16 Dec 2007 16:05:18 +0000 (16:05 -0000)]
MonoTODO is cAsE SenSItIve stephane! :)

svn path=/trunk/mcs/; revision=91386

16 years agotests & bugfixes
Stephane Delcroix [Sun, 16 Dec 2007 14:26:04 +0000 (14:26 -0000)]
tests & bugfixes

svn path=/trunk/mcs/; revision=91383

16 years ago2007-12-16 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Sun, 16 Dec 2007 14:00:00 +0000 (14:00 -0000)]
2007-12-16  Stephane Delcroix  <sdelcroix@novell.com>

* DateTimeOffset.cs: almost complete implementation, still missing the
Parse* and ToString methods.

2007-12-16  Stephane Delcroix  <sdelcroix@novell.com>

* DateTimeOffsetTest.cs: first batch of tests.

svn path=/trunk/mcs/; revision=91382

16 years ago2007-12-16 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 16 Dec 2007 08:38:16 +0000 (08:38 -0000)]
2007-12-16 Igor Zelmanovich <igorz@mainsoft.com>

* HttpContext.cs: added IsProcessingInclude property.
* HttpServerUtility.cs: set IsProcessingInclude value within Execute.

2007-12-16 Igor Zelmanovich <igorz@mainsoft.com>

* Page.cs: on CrossPagePostBack previous page is processed by Execute API,
that allow CurrentHandler property works correctly during Page processing.

svn path=/trunk/mcs/; revision=91373

16 years agoFix indent
Miguel de Icaza [Sun, 16 Dec 2007 06:17:17 +0000 (06:17 -0000)]
Fix indent

svn path=/trunk/mcs/; revision=91372

16 years ago2007-12-16 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 16 Dec 2007 05:38:06 +0000 (05:38 -0000)]
2007-12-16  Miguel de Icaza  <miguel@novell.com>

* WebClient.cs: Got the arguments in the wrong order, fix

svn path=/trunk/mcs/; revision=91371

16 years ago2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 16 Dec 2007 01:04:53 +0000 (01:04 -0000)]
2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs: Added new Constructor_Group test, that I
forgot to add after fixing a 2.0 bug.

svn path=/trunk/mcs/; revision=91370

16 years ago2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 15 Dec 2007 23:58:58 +0000 (23:58 -0000)]
2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: When SetBoundsCore gets called, besides
calling UpdateScrollBars, update the value of
last_visible_index, since we could need to show more items
than before, and we need to let the paint routines know that.
Fixes #344445.

svn path=/trunk/mcs/; revision=91369

16 years ago2007-12-15 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 15 Dec 2007 22:43:17 +0000 (22:43 -0000)]
2007-12-15  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Binary/AggressiveReflectionReader.cs: protect
against zeroed tokens.

svn path=/trunk/mcs/; revision=91366

16 years agoalright alright
Jb Evain [Sat, 15 Dec 2007 20:19:22 +0000 (20:19 -0000)]
alright alright

svn path=/trunk/mcs/; revision=91363

16 years ago2007-12-15 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 15 Dec 2007 20:01:25 +0000 (20:01 -0000)]
2007-12-15  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Binary/ImageReader.cs: fix crash when reading
some non .net binaries.

svn path=/trunk/mcs/; revision=91361

16 years agocleol
Jb Evain [Sat, 15 Dec 2007 19:57:41 +0000 (19:57 -0000)]
cleol

svn path=/trunk/mcs/; revision=91360

16 years ago2007-12-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 15 Dec 2007 19:02:09 +0000 (19:02 -0000)]
2007-12-15  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Fix a warning.

svn path=/trunk/mono/; revision=91357

16 years ago2007-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 15 Dec 2007 17:26:54 +0000 (17:26 -0000)]
2007-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* TlsServerCertificate.cs: Add support for wilcard (*) when matching
the target host with the certificate. Fix bug #346812

svn path=/trunk/mcs/; revision=91354

16 years ago2007-12-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 15 Dec 2007 05:08:06 +0000 (05:08 -0000)]
2007-12-15  Miguel de Icaza  <miguel@novell.com>

* generic.cs (NullCoalescingOperator.CloneTo): implement this one,
as this is also created from the parser.  Fixes #349034

svn path=/trunk/mcs/; revision=91348

16 years ago2007-12-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 15 Dec 2007 03:43:39 +0000 (03:43 -0000)]
2007-12-15  Marek Habersack  <mhabersack@novell.com>

* web.config: compilation/compilers are no longer necessary.

svn path=/trunk/mono/; revision=91344

16 years ago2007-12-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 15 Dec 2007 03:42:00 +0000 (03:42 -0000)]
2007-12-15  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: Default value for Debug is taken from
the compilation config section.

* TemplateParser.cs: Added LoadConfigDefaults here, loads default
value for Debug from the compilation section.
Cache CompilationConfig in methods where it is accessed more than
once.
Default value for Debug in ProcessMainAttributes is taken from the
compilation config.

* PageParser.cs, TemplateControlParser.cs: LoadPagesConfigDefaults
renamed to LoadConfigDefaults.
2007-12-15  Marek Habersack  <mhabersack@novell.com>

* AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.

* BaseCompiler.cs: do not use CreateCompiler () in the 2.0
profile, it's obsoleted. CachingCompiler will use the
CodeDomProvider methods directly in that case.

* WebServiceCompiler.cs: Updated GetCompiledType to acquire
compiler information for the 2.0 profile from system.codeDom.

* CachingCompiler.cs: the Compile overloads do not use the
compiler instance, but call appropriate methods on the
CodeDomProvider instance directly.
Updated some Compile overloads to acquire compiler information for
the 2.0 profile from system.codeDom.

svn path=/trunk/mcs/; revision=91343

16 years agofix the build
Marek Habersack [Sat, 15 Dec 2007 02:09:13 +0000 (02:09 -0000)]
fix the build

svn path=/trunk/mcs/; revision=91339

16 years ago2007-12-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 15 Dec 2007 01:46:04 +0000 (01:46 -0000)]
2007-12-15  Marek Habersack  <mhabersack@novell.com>

* System.dll.sources: added
System.CodeDom.Compiler/CompilerProviderOption.cs and
System.CodeDom.Compiler/CompilerProviderOptionsCollection.cs
2007-12-15  Marek Habersack  <mhabersack@novell.com>

* CSharpCodeProvider.cs: added support for the 2.0sp1 constructor
which takes a Dictionary <string, string> parameter with compiler
provider options. If any options are present, the
generator/compiler are created using appropriate constructor
overload.

* CSharpCodeGenerator.cs: added support for the 2.0sp1 constructor
which takes a Dictionary <string, string> parameter with compiler
provider options.

* CSharpCodeCompiler.cs: added support for the 2.0sp1 constructor
which takes a Dictionary <string, string> parameter with compiler
provider options. The "CompilerVersion" option is supported, with
possible values "2.0" (currently maps to -langversion:Default) and
"3.5" (currently maps to -langversion:linq).
2007-12-15  Marek Habersack  <mhabersack@novell.com>

* Compiler.cs: added support for the default collection of
<providerOption> child elements and corresponding public
properties (ProviderOptions and ProviderOptionsDictionary).

* CompilerInfo.cs: added ProviderOptions dictionary, to hold
values from the <providerOption> collection of the
system.codeDom/compilers/compiler/ element.
CodeDomProviderType throws an exception if the provider type
cannot be found, as per MSDN.
CreateProvider uses the new provider constructor which takes
provider options dictionary as its parameter, if found in the
provider type.

* CompilerCollection.cs: compiler defaults are initialized using
the provider options dictionary, with one option present -
"CompilerVersion" set to "2.0".
Two dictionaries to map languages and extensions to compiler
information objects added.

* CompilerProviderOption.cs: added - implements the
<providerOption> element.

* CompilerProviderOptionsCollection.cs: added - implements
collection for the 2.0sp1 <providerOption> child element of the
system.codeDom/compilers/compiler element.

svn path=/trunk/mcs/; revision=91337

16 years ago2007-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 14 Dec 2007 21:41:40 +0000 (21:41 -0000)]
2007-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* AuthorityKeyIdentifierExtension.cs: Don't throw on what we don't
yet support (e.g. authorityCertIssuer/authorityCertSerialNumber).
It's possible that a chain of certificate can be build without this
information. Fix #346821

svn path=/trunk/mcs/; revision=91330

16 years ago * ListView.cs: Add DesignerSerializationVisibility attribute to
Carlos Alberto Cortez [Fri, 14 Dec 2007 19:13:53 +0000 (19:13 -0000)]
* ListView.cs: Add DesignerSerializationVisibility attribute to
InsertionMark property.
* ListViewItem.cs: Add same attribute to Position property.

2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=91311

16 years ago2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 14 Dec 2007 18:09:06 +0000 (18:09 -0000)]
2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs: Contructor_Serializable test only applies for
the 2.0 profile.

svn path=/trunk/mcs/; revision=91306

16 years ago2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 14 Dec 2007 18:07:51 +0000 (18:07 -0000)]
2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
is 2.0 only.

svn path=/trunk/mcs/; revision=91305

16 years ago2007-12-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 14 Dec 2007 16:15:49 +0000 (16:15 -0000)]
2007-12-14  Jonathan Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Don't draw the background on a
flat button if there is a background image.
[Fixes bug #348649]

svn path=/trunk/mcs/; revision=91296

16 years ago2007-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 14 Dec 2007 15:24:32 +0000 (15:24 -0000)]
2007-12-14  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (is_correct_endfilter): added.

* verify.c (is_unverifiable_endfilter): added.

* verify.c (do_endfilter): added.

* verify.c (mono_method_verify): property verification of endfilter
and fixed a corner case or endfinally.

svn path=/trunk/mono/; revision=91292

16 years ago2007-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 14 Dec 2007 15:21:53 +0000 (15:21 -0000)]
2007-12-14 Rodrigo Kumpera <rkumpera@novell.com>

* make_test.sh: added tests for endfilter

* make_endfilter_test.sh: new test generator

svn path=/trunk/mono/; revision=91291

16 years ago2007-12-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 14 Dec 2007 14:58:48 +0000 (14:58 -0000)]
2007-12-14  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Add OP_SWITCH.

* mini.c graph.c ssa.c aliasing.c mini-<ARCH>.c inssel-<ARCH>.brg: Avoid using
CEE_SWITCH in back-end code, use OP_SWITCH instead.

svn path=/trunk/mono/; revision=91289

16 years ago2007-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 14 Dec 2007 14:36:00 +0000 (14:36 -0000)]
2007-12-14 Rodrigo Kumpera <rkumpera@novell.com>

* Makefile: add support to check strict tests.

* AssemblyRunner.cs: start using peverify as part of the
process. Support for strict tests.

svn path=/trunk/mono/; revision=91287

16 years ago2007-12-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 14 Dec 2007 13:54:23 +0000 (13:54 -0000)]
2007-12-14  Rolf Bjarne Kvinge <RKvinge@novell.com>

* VBCodeProvider.cs: Implement constructor added in 2.0SP1.

svn path=/trunk/mcs/; revision=91285

16 years ago2007-12-14 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Fri, 14 Dec 2007 13:47:00 +0000 (13:47 -0000)]
2007-12-14  Juraj Skripsky  <js@hotfeet.ch>

* TemplateControlCompiler.cs (AddExpressionAssign):
Make sure expression does not contain prefix.

* AppSettingsExpressionBuilder.cs: Pass type of property to
GetAppSetting, not type of declaring type.

svn path=/trunk/mcs/; revision=91283

16 years ago2007-12-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Dec 2007 06:29:47 +0000 (06:29 -0000)]
2007-12-14  Atsushi Enomoto <atsushi@ximian.com>

* RdpPattern.cs : For ContainsText() (for interleave text/text
  constraint check), element pattern should return false.
  Fixed bug #347945.

* RelaxngReaderTests.cs : added test for bug #347945.

svn path=/trunk/mcs/; revision=91269

16 years ago2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 14 Dec 2007 00:51:12 +0000 (00:51 -0000)]
2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBoxTest.cs: Added test for the case when the selected item
is removed.

svn path=/trunk/mcs/; revision=91264

16 years ago2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 14 Dec 2007 00:50:10 +0000 (00:50 -0000)]
2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: If we remove the item currently selected,
remove it not only from SelectedItems, but also
resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
the items count decreased and focused_item has bigger value than that.

svn path=/trunk/mcs/; revision=91263

16 years ago2007-12-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 13 Dec 2007 21:26:33 +0000 (21:26 -0000)]
2007-12-13  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.h: new flags to support fail fast of unverifiable code and
do non-strict verification. Non-strict verification is required to
have MS runtime compatibility. There are a huge amount of unverifiable
code that it accepts as verifiable. The strict mode verifies the code
as the specs says.
Non-strict mode will be required in cases where code needs to be
accepted as verifiable but fails under strict mode.

* pedump.c: added support to fail fast and non-strict verification.

* verify.c: added support for both fail fast and non-strict verification.

svn path=/trunk/mono/; revision=91253

16 years ago2007-12-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 13 Dec 2007 20:04:14 +0000 (20:04 -0000)]
2007-12-13  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Perform our layout after we resize ourselves
if we had to adjust our AutoSize.  Missed commit for bug
#346246.

svn path=/trunk/mcs/; revision=91251

16 years ago2007-12-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 13 Dec 2007 17:36:25 +0000 (17:36 -0000)]
2007-12-13  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutPanel.cs: Override GetPreferredSizeCore so
we can provide an implementation of AutoSize.
[Fixes bug #346246]

2007-12-13  Jonathan Pobst  <monkey@jpobst.com>

* TableLayout.cs: Use ExplicitBounds so that we get the user requested
size, not the AutoSize/Dock size.  Make CalculateControlPositions
internal so that TableLayoutPanel can call it.
[Fixes bug #346246]

2007-12-13  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs: Add tests for bug #346246.

svn path=/trunk/mcs/; revision=91245

16 years ago2007-12-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 13 Dec 2007 15:38:53 +0000 (15:38 -0000)]
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs, AspComponentFoundry.cs,
AssemblyBuilder.cs, AppResourcesCompiler.cs,
AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
optimization - use String.Concat instead of String.Format in some
cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* MailAddress.cs, SmtpClient.cs, MailMessageWrapper.cs: speed
optimization - use String.Concat instead of String.Format in some
cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs, HttpResponse.cs, SiteMapNode.cs, HttpRuntime.cs,
HttpResponseStream.cs, HttpApplication.cs, HttpCachePolicy.cs:
speed optimization - use String.Concat instead of String.Format in
some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* FileMatchingInfo.cs. MachineKeyRegistryStorage.cs: speed
optimization - use String.Concat instead of String.Format in some
cases.

svn path=/trunk/mcs/; revision=91234

16 years ago2007-12-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 13 Dec 2007 13:50:10 +0000 (13:50 -0000)]
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* ClientScriptManager.cs, MasterPageParser.cs, Control.cs,
Page.cs: speed optimization - use String.Concat instead of
String.Format in some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* Menu.cs, TreeView.cs: optimize use of String.Format in
OnPreRender.
Speed optimization - use String.Concat instead of String.Format in
some cases.

* GridView.cs, DetailsView.cs: optimize use of String.Format in
OnPreRender.

* CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
optimization - use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* HtmlForm.cs, HtmlButton.cs: speed optimization - use String.Concat
instead of String.Format in some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* AssemblyResourceLoader.cs: speed optimization - use String.Concat
instead of String.Format in some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* SessionId.cs:
speed optimization - use String.Concat
instead of String.Format in some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* SqlProfileProvider.cs, ProfileParser.cs: speed optimization -
use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <mhabersack@novell.com>

* ApplicationManager.cs, ApplicationHost.cs,
DefaultVirtualPathProvider.cs: speed optimization - use
String.Concat instead of String.Format in some cases.

svn path=/trunk/mcs/; revision=91230

16 years ago* ImageCodec.jvm.cs: fixed bitmap resolution
Vladimir Krasnov [Thu, 13 Dec 2007 12:02:27 +0000 (12:02 -0000)]
* ImageCodec.jvm.cs: fixed bitmap resolution

svn path=/trunk/mcs/; revision=91222

16 years agoBuild java configuration using RT of JRE 1.4.2 for support of older java systems
Noam Lampert [Thu, 13 Dec 2007 12:01:56 +0000 (12:01 -0000)]
Build java configuration using RT of JRE 1.4.2 for support of older java systems

svn path=/trunk/mcs/; revision=91221

16 years ago2007-12-13 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 13 Dec 2007 09:08:54 +0000 (09:08 -0000)]
2007-12-13 Igor Zelmanovich <igorz@mainsoft.com>

* HttpApplication.cs:
* HttpContext.cs:
* HttpRequest.cs:
* HttpServerUtility.cs:
- When Transfer/Execute is called with preserveForm=true, transferred
page is not processed as PostBack but form collection is preserved.
- When Execute is called more than once, PreviousPage property is set
correct.

2007-12-13 Igor Zelmanovich <igorz@mainsoft.com>

* Page.cs:
- When Transfer/Execute is called with preserveForm=true, transferred
page is not processed as PostBack but form collection is preserved.
- When Execute is called more than once, PreviousPage property is set
correct.

svn path=/trunk/mcs/; revision=91202

16 years ago* Menu.cs: fixed rendering without head tag on page
Vladimir Krasnov [Thu, 13 Dec 2007 08:43:09 +0000 (08:43 -0000)]
* Menu.cs: fixed rendering without head tag on page

svn path=/trunk/mcs/; revision=91201

16 years agoi007-12-11 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 13 Dec 2007 01:49:56 +0000 (01:49 -0000)]
i007-12-11  Geoff Norton  <gnorton@novell.com>

        * mini-s390x.c: Minor change to the MAX() define to allow
        it to compile with other gcc versions.

svn path=/trunk/mono/; revision=91193

16 years ago2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 13 Dec 2007 01:02:09 +0000 (01:02 -0000)]
2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: Add the internal overload Sort (bool paint),
to indicate whether we actually need a paint or we will
call Refresh ourselves. This way we don't request a paint
_before_ having an updated and valid layout.
Fixes #347233.

svn path=/trunk/mcs/; revision=91191

16 years ago* XPlatUIX11.cs: Send paint messages when updating a systray icon
Andreia Gaita [Wed, 12 Dec 2007 22:33:34 +0000 (22:33 -0000)]
* XPlatUIX11.cs: Send paint messages when updating a systray icon
* NotifyIcon.cs: Invalidate the window before doing a systray change so it is
properly invalidated.
Fixes #324237

2007-12-12  Andreia Gaita <avidigal@novell.com>

svn path=/trunk/mcs/; revision=91183

16 years ago2007-12-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 12 Dec 2007 19:38:37 +0000 (19:38 -0000)]
2007-12-12  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (is_correct_endfinally): added.

* verify.c (mono_method_verify): property verification of endfinally.

svn path=/trunk/mono/; revision=91176

16 years ago2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 12 Dec 2007 19:37:04 +0000 (19:37 -0000)]
2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs: When using a .ctor taking a ListViewGroup,
don't simply assign it to our internal group field, but instead
use our Group property, which should do all the neccessary work
required to support groups. Fixes an issue reported to me (mail) by a
guy using this new feature.

svn path=/trunk/mcs/; revision=91175

16 years ago2007-12-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 12 Dec 2007 19:32:32 +0000 (19:32 -0000)]
2007-12-11  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Use Scale instead of ScaleControl to ensure the
whole hierarchy gets scaled.
[Fixes bug #347282]

2007-12-11  Jonathan Pobst  <monkey@jpobst.com>

* ControlTest.cs: Add a test for bug #347282.

svn path=/trunk/mcs/; revision=91174

16 years ago2007-12-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 12 Dec 2007 19:26:40 +0000 (19:26 -0000)]
2007-12-12 Rodrigo Kumpera <rkumpera@novell.com>

* invalid_filter_ends_at_endfilter_1.il: tests if the
filter block is limited by the start of the associated
handler clause or it is limited by the ocurrence of
endfilter. These 3 tests show that even if the endfilter
instruction must be the last, it doesn't define the end
of the filter block.

* invalid_filter_ends_at_endfilter_2.il: same

* invalid_filter_ends_at_endfilter_3.il: same

* make_test.sh: added tests for endfinally / endfault
* make_endfinally_test.sh: new test generator

svn path=/trunk/mono/; revision=91173

16 years agoadd test
Jb Evain [Wed, 12 Dec 2007 18:20:54 +0000 (18:20 -0000)]
add test

svn path=/trunk/mcs/; revision=91166

16 years ago * verify.c (in_any_block): check for filter clauses.
Rodrigo Kumpera [Wed, 12 Dec 2007 18:20:04 +0000 (18:20 -0000)]
* verify.c (in_any_block): check for filter clauses.

* verify.c (is_correct_rethrow): added.

* verify.c (mono_method_verify): property verification of rethrow.

* metadata.h: added MONO_OFFSET_IN_FILTER macro.

2007-12-11  Rodrigo Kumpera  <rkumpera@novell.com>

svn path=/trunk/mono/; revision=91165

16 years agoadd test
Jb Evain [Wed, 12 Dec 2007 18:17:55 +0000 (18:17 -0000)]
add test

svn path=/trunk/mcs/; revision=91164

16 years ago2007-12-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 12 Dec 2007 17:05:14 +0000 (17:05 -0000)]
2007-12-12  Marek Habersack  <mhabersack@novell.com>

* SettingsMappingManager.cs: use the 'settings.map.config' name
for the application-specific mapper configuration. This ensures
that the file won't be downloadable on systems which don't support
the mapping feature without the need to add the extra handler
entry to the app's Web.config file. Thanks to Joe Audette for the
idea.

svn path=/trunk/mcs/; revision=91160

16 years agoremove non sensical code
Jb Evain [Wed, 12 Dec 2007 15:15:27 +0000 (15:15 -0000)]
remove non sensical code

svn path=/trunk/mcs/; revision=91155

16 years ago2007-12-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 12 Dec 2007 13:15:12 +0000 (13:15 -0000)]
2007-12-12  Marek Habersack  <mhabersack@novell.com>

* WebClient.cs: DownloadProgressChanged is available only in the
2.0+ profiles

svn path=/trunk/mcs/; revision=91152

16 years ago* ProfileParser.jvm.cs: Profile types loading optimized
Vladimir Krasnov [Wed, 12 Dec 2007 12:01:35 +0000 (12:01 -0000)]
* ProfileParser.jvm.cs: Profile types loading optimized

svn path=/trunk/mcs/; revision=91148

16 years agoextract checks
Jb Evain [Wed, 12 Dec 2007 10:32:35 +0000 (10:32 -0000)]
extract checks

svn path=/trunk/mcs/; revision=91146

16 years agodelete
Jb Evain [Wed, 12 Dec 2007 10:29:25 +0000 (10:29 -0000)]
delete

svn path=/trunk/mcs/; revision=91145

16 years ago2007-12-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 12 Dec 2007 05:24:52 +0000 (05:24 -0000)]
2007-12-12  Miguel de Icaza  <miguel@novell.com>

* WebClient.cs (DownloadFileCore): use longs for the
ContentLength, although the other code (loading into a byte array,
or a string) still uses ints, the DownloadFileCore should not.

2007-12-11  Miguel de Icaza  <miguel@novell.com>

* WebClient.cs:

Lots of fixes to get the *Async methods to work.

* WebClient.cs: async, new boolean flag, used to track whether we
are an async invocation, and if so, we need to invoke some
methods.

Switch to using System.Threading.Thread instead of the ThreadPool
as there is no way with the ThreadPool to abort threads (to
implemente CancelAsync).

(CompleteAsync): Helper method used to clear the state after an
async operation completes, otherwise the WebClient can only be
used once.

(CancelAsync): Use Thread.Interrupt to signal the thread that we
are aborting it (it is a lot milder than Thread.Abort, and we are
in no rush to cancel this anyways); Also the documentation states
that we need to call the WebRequest.Abort method, so we do that in
every Download instance.

(DownloadDataAsync, DownloadFileAsync, DownloadStringAsync,
OpenReadAsync, OpenWriteAsync, UplaodDataAsync, UploadFileAsync,
UploadStringAsync): Make signature parameters match MS; use
threads instead of threadpool (so we can implement CancelAsync),
catch ThreadAbortException here so we can also raise the proper
DownloadDataCompleteEventArgs.

These routines will also call the WebRequest.Abort when
appropriate when ThreadInterrupted is used.

(ReadAll): Raise DownloadProgressChanged events.

svn path=/trunk/mcs/; revision=91142

16 years ago2007-12-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 12 Dec 2007 04:48:09 +0000 (04:48 -0000)]
2007-12-12  Miguel de Icaza  <miguel@novell.com>

* statement.cs (Throw.CloneTo): it is valid to have empty
expressions for throw.

svn path=/trunk/mcs/; revision=91141

16 years agoAdd new test
Miguel de Icaza [Wed, 12 Dec 2007 04:48:02 +0000 (04:48 -0000)]
Add new test

svn path=/trunk/mcs/; revision=91140

16 years ago2007-12-11 Geoff Norton <gnorton@novell.com>
Geoff Norton [Wed, 12 Dec 2007 04:36:34 +0000 (04:36 -0000)]
2007-12-11  Geoff Norton  <gnorton@novell.com>

        * cpu-s390x.md:
        * mini-s390x.c: Implement sext_i4 to fix the build on s390x

svn path=/trunk/mono/; revision=91139

16 years agoDon't use Unicode encoding.
Jonathan Pobst [Wed, 12 Dec 2007 03:17:20 +0000 (03:17 -0000)]
Don't use Unicode encoding.

svn path=/trunk/mcs/; revision=91137

16 years ago2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 12 Dec 2007 00:46:59 +0000 (00:46 -0000)]
2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>

* make_test.sh: added tests for rethrow
* make_rethrow_test.sh: new test generator

svn path=/trunk/mono/; revision=91135

16 years ago2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 11 Dec 2007 22:23:02 +0000 (22:23 -0000)]
2007-12-11  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_throw): added.

* verify.c (mono_method_verify): property verification of throw

svn path=/trunk/mono/; revision=91132

16 years ago2007-12-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 11 Dec 2007 21:25:40 +0000 (21:25 -0000)]
2007-12-10  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripManagerTest.cs: Add a test for bug #347669.

svn path=/trunk/mcs/; revision=91131

16 years ago2007-12-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 11 Dec 2007 19:17:16 +0000 (19:17 -0000)]
2007-12-10  Jonathan Pobst  <monkey@jpobst.com>

* DateTimePicker.cs: Don't set the internal MonthCalendar's
Parent property.  Doing this causes the control to be hosted by
the Form instead of being a popup window.
[Fixes bug #347665]

svn path=/trunk/mcs/; revision=91129

16 years ago2007-12-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 11 Dec 2007 17:08:34 +0000 (17:08 -0000)]
2007-12-10  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItemCollection.cs: If we try to insert a ToolStripItem
at an index higher than Count, just use Add instead of Insert.
[Fixes bug #347669]

svn path=/trunk/mcs/; revision=91123

16 years ago2007-12-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 11 Dec 2007 16:05:20 +0000 (16:05 -0000)]
2007-12-11  Zoltan Varga  <vargaz@gmail.com>

* AppDomainTest.cs: Add test for reflection only assembly resolve events.

svn path=/trunk/mcs/; revision=91120

16 years ago2007-12-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 11 Dec 2007 15:57:56 +0000 (15:57 -0000)]
2007-12-11  Zoltan Varga  <vargaz@gmail.com>

* AppDomain.cs (DoAssemblyResolve): Fix detection of whenever there is a
reflection-only assembly resolve hook.

svn path=/trunk/mcs/; revision=91119

16 years ago2007-12-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 11 Dec 2007 15:56:25 +0000 (15:56 -0000)]
2007-12-11  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_load_reference): Try an assembly resolve for ref-only
assemblies. Fixes #346425.

svn path=/trunk/mono/; revision=91118

16 years ago2007-12-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 11 Dec 2007 15:31:09 +0000 (15:31 -0000)]
2007-12-11  Marek Habersack  <mhabersack@novell.com>

* SettingsMappingManager.cs: made the class public - it is
required for user-defined mappers to work.
Added a new property, Platform, which specifies the platform we're
running on. Platform check is now done only on initialization
time.
LoadMappings considers only the mappings which apply to the
current platform. Other entries are not loaded.

* SettingsMapping.cs: made the class public.

* SettingsMappingWhat.cs: made the class public.

* ISectionSettingsMapper.cs: made the interface public.

svn path=/trunk/mcs/; revision=91112

16 years ago2007-12-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 11 Dec 2007 15:27:59 +0000 (15:27 -0000)]
2007-12-10  Jonathan Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Don't draw a PictureBox's background in
DrawPictureBox, this is handled by Control.PaintBackground.
[Fixes bug #347276]

svn path=/trunk/mcs/; revision=91111

16 years ago* Bitmap.jvm.cs: ArgumentException on unknown format from stream
Vladimir Krasnov [Tue, 11 Dec 2007 15:22:14 +0000 (15:22 -0000)]
* Bitmap.jvm.cs: ArgumentException on unknown format from stream

svn path=/trunk/mcs/; revision=91108

16 years ago2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 11 Dec 2007 15:13:52 +0000 (15:13 -0000)]
2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>

* make_test.sh: added tests for throw
* make_throw_test.sh: new test generator

svn path=/trunk/mono/; revision=91103

16 years agoVisual Studio project file to the assembly
Arina Itkes [Tue, 11 Dec 2007 14:16:19 +0000 (14:16 -0000)]
Visual Studio project file to the assembly

svn path=/trunk/mcs/; revision=91096

16 years ago* SiteMapSection.cs: fixed ProvidersInternal property to be thread safe
Vladimir Krasnov [Tue, 11 Dec 2007 13:59:13 +0000 (13:59 -0000)]
* SiteMapSection.cs: fixed ProvidersInternal property to be thread safe
* ProfileManager.cs: fixed Providers property to be thread safe
* Roles.cs: fixed Providers property to be thread safe

svn path=/trunk/mcs/; revision=91095

16 years agoRemove extra references.
Arina Itkes [Tue, 11 Dec 2007 13:34:23 +0000 (13:34 -0000)]
Remove extra references.

svn path=/trunk/mcs/; revision=91091

16 years agoVisual Studio project file for the assembly.
Arina Itkes [Tue, 11 Dec 2007 13:26:45 +0000 (13:26 -0000)]
Visual Studio project file for the assembly.

svn path=/trunk/mcs/; revision=91090

16 years ago2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 11 Dec 2007 13:13:35 +0000 (13:13 -0000)]
2007-12-11  Rodrigo Kumpera  <rkumpera@novell.com>

exceptions-arm.c (mono_arch_get_restore_context): Restore
the frame pointer.

exceptions-arm.c (throw_exception): Save the frame pointer.
This is a partial fix for #323747. Only the client side is
fixed.

svn path=/trunk/mono/; revision=91089

16 years ago2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 11 Dec 2007 13:10:05 +0000 (13:10 -0000)]
2007-12-11  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (mono_method_to_ir): Verbose message in CEE_NEWOBJ
was using an unrelated variable to log the class which
needed the cctor to be called. This was crashing on arm.

svn path=/trunk/mono/; revision=91088

16 years agofixed test
Igor Zelmanovich [Tue, 11 Dec 2007 10:14:57 +0000 (10:14 -0000)]
fixed test

svn path=/trunk/mcs/; revision=91079

16 years agoadded if #TARGET_JVM
Igor Zelmanovich [Tue, 11 Dec 2007 09:55:40 +0000 (09:55 -0000)]
added if #TARGET_JVM

svn path=/trunk/mcs/; revision=91076

16 years ago* ProtocolReflector.cs: fixed ImportBinding method, ports with the same name declarat...
Vladimir Krasnov [Tue, 11 Dec 2007 08:57:00 +0000 (08:57 -0000)]
* ProtocolReflector.cs: fixed ImportBinding method, ports with the same name declaration when non-default binding used, #345449
* TypeStubManager.cs: fixed TypeStubInfo ctor, default binding name is wrong, when declared in WebServiceBindingAttribute, but not used. fixes #345448

svn path=/trunk/mcs/; revision=91075

16 years ago2007-12-10 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Tue, 11 Dec 2007 07:53:33 +0000 (07:53 -0000)]
2007-12-10  Everaldo Canuto  <ecanuto@novell.com>

* MenuAPI.cs: When process menu keys return true by default only if menu is
active. Fixes bug #342892.

svn path=/trunk/mcs/; revision=91073

16 years ago07-12-10 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 10 Dec 2007 22:45:06 +0000 (22:45 -0000)]
07-12-10  Miguel de Icaza  <miguel@novell.com>

* DefaultTraceListener.cs: By default set the AssertUiEnabled to
false, as this is what we had previously and some broken
applications (Tomboy) are too trigger happy with Debug.Assert.

Also, we now load the Windows.Forms code on demand, instead of
preloading it on the static ctor to reduce memory usage.

svn path=/trunk/mcs/; revision=91070

16 years ago2007-12-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 10 Dec 2007 21:26:16 +0000 (21:26 -0000)]
2007-12-10  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilderTest.cs: Simplify some code. Add tests for ResolveField ()
and FieldBuilders.

svn path=/trunk/mcs/; revision=91067

16 years ago2007-12-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 10 Dec 2007 21:24:33 +0000 (21:24 -0000)]
2007-12-10  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_reflection_get_token): Call mono_image_create_token () for
FieldBuilders.

* icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): Fix a warning.

* class.c (mono_lookup_dynamic_token_class): Add a 'valid token' argument to
prevent asserts when this is called with a token which might not be valid.

* icall.c (ves_icall_System_Reflection_Module_ResolveTypeToken): Call
lookup_dynamic_token_class with valid_token == FALSE.

* icall.c (ves_icall_System_Reflection_Module_ResolveMethodToken): Ditto.

* icall.c (ves_icall_System_Reflection_Module_ResolveStringToken): Ditto.

* icall.c (ves_icall_System_Reflection_Module_ResolveFieldToken): Ditto.

svn path=/trunk/mono/; revision=91066