mono.git
16 years agoNew test.
Marek Safar [Wed, 7 May 2008 09:17:17 +0000 (09:17 -0000)]
New test.

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

16 years agoBe careful when fixing this file
Marek Safar [Wed, 7 May 2008 09:04:31 +0000 (09:04 -0000)]
Be careful when fixing this file

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

16 years ago2008-05-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 7 May 2008 08:34:57 +0000 (08:34 -0000)]
2008-05-07  Atsushi Enomoto  <atsushi@ximian.com>

* XmlReader.cs : force CloseInput to every XmlReader that is created
  from url (I mean, every internal XmlReader instance).

* XmlFilterReader.cs : clone settings so that it does not depend on
  inconsistent settings after creation. Fixed bug #385638.

* XmlReaderCommonTests.cs : added test for bug #385638.

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

16 years agoisolate unsupported flow using TARGET_JVM compilation flag.
Roei Erez [Wed, 7 May 2008 07:46:48 +0000 (07:46 -0000)]
isolate unsupported flow using TARGET_JVM compilation flag.

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

16 years agoRemove debugging message
Miguel de Icaza [Wed, 7 May 2008 05:23:56 +0000 (05:23 -0000)]
Remove debugging message

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

16 years ago* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IElement.cs,
Andreia Gaita [Wed, 7 May 2008 03:36:03 +0000 (03:36 -0000)]
* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IElement.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/HTMLElement.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Element.cs,
  mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlElement.cs:
  Implement InnerHTML setter

2008-05-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-05-06 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 7 May 2008 03:31:39 +0000 (03:31 -0000)]
2008-05-06  Miguel de Icaza  <miguel@novell.com>

* assembly.c (mono_assembly_load_reference): Prevent crash while
disassembling Silverlight 2.0 executables while we still do not
have GACed libraries.

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

16 years ago* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IDocument.cs,
Andreia Gaita [Wed, 7 May 2008 03:31:10 +0000 (03:31 -0000)]
* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IDocument.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Document.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Window.cs: Helper to
  retrieve the window of a document
* mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs:
  Implement Focused

2008-05-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago * BindingSourceTest.cs: New tests for ApplySort and RemoveSort methods.
Carlos Alberto Cortez [Wed, 7 May 2008 02:53:19 +0000 (02:53 -0000)]
* BindingSourceTest.cs: New tests for ApplySort and RemoveSort methods.

2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
Carlos Alberto Cortez [Wed, 7 May 2008 02:52:04 +0000 (02:52 -0000)]
* BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
methods, as well as add messages to the exceptions.

2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years agoImprove debugging message to track down the method that is actually missing
Miguel de Icaza [Wed, 7 May 2008 01:06:34 +0000 (01:06 -0000)]
Improve debugging message to track down the method that is actually missing

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

16 years ago * BindingSourceTest.cs: Activate a pair of tests.
Carlos Alberto Cortez [Tue, 6 May 2008 23:16:37 +0000 (23:16 -0000)]
* BindingSourceTest.cs: Activate a pair of tests.

2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * BindingSource.cs: Setting DataSource should only reset DataMember if
Carlos Alberto Cortez [Tue, 6 May 2008 23:15:20 +0000 (23:15 -0000)]
* BindingSource.cs: Setting DataSource should only reset DataMember if
the previous value was null (make pass a not working test).

2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-05-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 6 May 2008 23:05:10 +0000 (23:05 -0000)]
2008-05-07  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: StripPath should handle UNC paths too. Fixes bug
#385870. Patch from Ivan Hamilton <ivan@chimerical.com.au>,
thanks!

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

16 years ago * BindingSOurceTest.cs: New assertion for
Carlos Alberto Cortez [Tue, 6 May 2008 22:39:20 +0000 (22:39 -0000)]
* BindingSOurceTest.cs: New assertion for
ISupportInitializeNotification test.

2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 May 2008 22:38:36 +0000 (22:38 -0000)]
2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: When EndInit call is postponed and is called until
DataSource.EndInit is called, remove the handler for data source.

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

16 years ago2008-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 May 2008 22:29:00 +0000 (22:29 -0000)]
2008-05-07  Zoltan Varga  <vargaz@gmail.com>

* reflection.c: Special case generic type definitions as well. Fixes #383444.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 21:48:31 +0000 (21:48 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

* IntPtr.cs (eplicit long, GetObjectData): Use ToInt64.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 21:38:34 +0000 (21:38 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

* IntPtr.cs (eplicit long): Uses ToInt64.

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

16 years ago2008-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 May 2008 21:35:49 +0000 (21:35 -0000)]
2008-05-06  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Reflection_Module_ResolveTypeToken): Fix handling
of the dynamic case. Fixes #387404.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 21:15:39 +0000 (21:15 -0000)]
2008-05-06 Rodrigo Kumpera  <rkumpera@novell.com>

*verify.c (mono_verifier_is_class_full_trust): If under
verify_all and the verifier mode was not set, only
gac and corlib types are fulltrust. This makes --verify-all
usable to detect unverifiable code, which is the expected
use case.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 21:12:45 +0000 (21:12 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* driver.c (mono_main): Revert r102623. The right
thing to do is to enable the verifier under verifiable
unless a --security flag was passed.

We need this non-trivial behavior for --verify-all otherwise
mcs-compileall won't be able to use it. As it needs everything to
be verified under validil.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 20:32:55 +0000 (20:32 -0000)]
2008-05-06 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.h: Ops, commited the header with debug
enabled.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 20:31:23 +0000 (20:31 -0000)]
2008-05-06 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (merge_stack): Use the new value on unverifiable
stack merges.

* verify.c (verify_type_compatibility_full): Comparison
of nullable types can't use mono_class_is_assignable_from.

* verify.c, verify.h: Added MONO_VERIFY_REPORT_ALL_ERRORS
that makes all verification errors be reported.

* pedump.c: Pass MONO_VERIFY_REPORT_ALL_ERRORS to
mono_method_verify.

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

16 years ago * valid_nullable_store.il: New test to ensure
Rodrigo Kumpera [Tue, 6 May 2008 20:30:41 +0000 (20:30 -0000)]
* valid_nullable_store.il: New test to ensure
that nullables are properly compared.

2008-05-02 Rodrigo Kumpera <rkumpera@novell.com>

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

16 years agoforgot license
Robert Jordan [Tue, 6 May 2008 20:02:10 +0000 (20:02 -0000)]
forgot license

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

16 years agoIn metadata:
Robert Jordan [Tue, 6 May 2008 19:45:47 +0000 (19:45 -0000)]
In metadata:
2008-05-05  Robert Jordan  <robertj@gmx.net>

* marshal.c (mono_marshal_get_thunk_invoke_wrapper):
support for value types. See #386415.

* object.c: comments.

In tests:
2008-05-05  Robert Jordan  <robertj@gmx.net>

* libtest.c, thunks.cs: reworked to match the new struct
handling.

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

16 years ago2008-05-06 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 6 May 2008 19:06:42 +0000 (19:06 -0000)]
2008-05-06  Martin Baulig  <martin@ximian.com>

* class.cs (Constructor.Emit): Fix the logic whether to emit
symbol information.

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

16 years ago2008-05-06 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 6 May 2008 18:41:24 +0000 (18:41 -0000)]
2008-05-06  Martin Baulig  <martin@ximian.com>

Fix #383749.

* debug-mini.c (mono_debugger_thread_created): Add proper locking.
(mono_debugger_thread_cleanup): Likewise.
(mono_debugger_extended_notification): Likewise.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 18:20:54 +0000 (18:20 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* bug-382986.cs. bug-382986-lib.cs: Regression test for
bug #382986.

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 17:35:18 +0000 (17:35 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 17:10:12 +0000 (17:10 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripManager.cs: Store references to toolstrips as
weak references so they do not prevent forms from getting collected.
[Fixes bug #386483]

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 16:32:44 +0000 (16:32 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: We can't set ResizeRedraw because it isn't set
on .Net.  So do the same thing in WndProc.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 16:06:30 +0000 (16:06 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (mono_method_to_ir): Verify visibility of call related opcodes
against both inflated and non-inflated methods. We need to check against the
generic definition for cases where the instantiated method is not visible.
We need to check against the inflated types for cases where the instantiation
changes any super type. This fixes #382986.

Note that this doesn't need to be applied to other parts of mono_method_to_ir
that check for visibiliy as generic params only appears as the type subject
of tokens on call opcodes. Field manipulation and ldftn must always
target an exact type.

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

16 years agoreformat
Jb Evain [Tue, 6 May 2008 15:57:15 +0000 (15:57 -0000)]
reformat

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

16 years agoQueryable.cs (Average, GroupBy, Union): fix signatures to match MS API.
Sasha Kogan [Tue, 6 May 2008 15:45:01 +0000 (15:45 -0000)]
Queryable.cs (Average, GroupBy, Union): fix signatures to match MS API.

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

16 years agocredits, again
Jb Evain [Tue, 6 May 2008 15:36:25 +0000 (15:36 -0000)]
credits, again

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 15:35:05 +0000 (15:35 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Signatures/CustomMod.cs:
Introduce a EmptyCustomMod static field.
* Mono.Cecil/ReflectionWriter.cs
* Mono.Cecil.Signatures/SignatureReader.cs:
Use EmptyCustomMod instead of instanciating
empty arrays of CustomMod.

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

16 years agocredits
Jb Evain [Tue, 6 May 2008 15:16:33 +0000 (15:16 -0000)]
credits

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 15:15:39 +0000 (15:15 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Metadata/MetadataRowReader.cs
* Mono.Cecil.Metadata/MetadataRowWriter.cs:
Cache row counters delegates.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 15:15:06 +0000 (15:15 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* driver.c (mono_main): Using --verify-all enables the verifier under validil mode
if no related --security flag is passed.

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 15:02:57 +0000 (15:02 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: Commit patch from Andy Hume that corrects
the clickable areas to better match .Net.
[Fixes bug #387074]

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 14:59:07 +0000 (14:59 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: Commit patch from Andy Hume that adds the
ResizeRedraw control flag so the track bar repaints itself
when it is resized.  [Fixes bug #387072]

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 14:55:40 +0000 (14:55 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: Commit patch from Andy Hume that adds better
support for keyboard navigation when the TrackBar is vertical.
[Fixes bug #387071]

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

16 years agoBe ready for future regressions
Marek Safar [Tue, 6 May 2008 14:13:24 +0000 (14:13 -0000)]
Be ready for future regressions

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

16 years agoFix #385503
Raja R Harinath [Tue, 6 May 2008 12:15:03 +0000 (12:15 -0000)]
Fix #385503

* iterators.cs (Iterator.CurrentBlock.DoEmit): Don't emit
InvalidOperationException when the iterator is before the start or
after the end.

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

16 years agotest-643 fails on amd64
Raja R Harinath [Tue, 6 May 2008 12:14:44 +0000 (12:14 -0000)]
test-643 fails on amd64

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

16 years agoadd test for Marek's crasher
Jb Evain [Tue, 6 May 2008 11:34:26 +0000 (11:34 -0000)]
add test for Marek's crasher

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

16 years agoTest correct ?? nullable type result.
Marek Safar [Tue, 6 May 2008 11:27:40 +0000 (11:27 -0000)]
Test correct ?? nullable type result.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 11:23:48 +0000 (11:23 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

* nullable.cs (NullCoalescingOperator): Result is underlying type of left,
when left is nullable type.

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

16 years agoNew test.
Marek Safar [Tue, 6 May 2008 10:12:33 +0000 (10:12 -0000)]
New test.

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 09:26:54 +0000 (09:26 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/TypeDefinition.cs
* Mono.Cecil/MethodDefinition.cs
* Mono.Cecil/DefaultImporter.cs
* Mono.Cecil/ReflectionHelper.cs:
Restore the generic context values instead of blindly
overriding them. Based on a patch by Dzintars Avots.

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 09:19:36 +0000 (09:19 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/MarshalSpec.cs (CloneInto): add new method
to clone MarshalSpec into a new container.

* Mono.Cecil/ParameterDefinition.cs (Clone):
* Mono.Cecil/FieldDefinition.cs (Clone):
Use the new MarshalSpec.CloneInto method.
Based on a patch by Dzintars Avots <davots@coverity.com>.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 09:06:32 +0000 (09:06 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

A fix for bug #386628
* expression.cs (LocalVariableReference): Continue in resolving when
variable is not assigned.

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

16 years agoadd patch author
Jb Evain [Tue, 6 May 2008 08:58:57 +0000 (08:58 -0000)]
add patch author

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 08:57:39 +0000 (08:57 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/MethodDefinition.cs (Clone): fix cloning of
return types when they don't have a parameter.

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

16 years agooops
Jb Evain [Tue, 6 May 2008 08:40:59 +0000 (08:40 -0000)]
oops

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 08:38:11 +0000 (08:38 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Cil/CodeWriter.cs (ComputeMaxStack): compute max
stack more precisely. Based on a patch by Daniel Grunwald,
Contains code from Cecil.FlowAnalysis.

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 08:20:35 +0000 (08:20 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Cil/MethodBody.cs (Clone): make sure the
instruction linked list is properly constructed.

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

16 years agocleol
Jb Evain [Tue, 6 May 2008 08:18:47 +0000 (08:18 -0000)]
cleol

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

16 years ago2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 May 2008 06:56:16 +0000 (06:56 -0000)]
2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: New tests for ISupportInitializeNotification
property.

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

16 years ago2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 May 2008 06:53:12 +0000 (06:53 -0000)]
2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Implement ISupportInitializeNotification support.

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

16 years ago2008-05-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Tue, 6 May 2008 01:33:03 +0000 (01:33 -0000)]
2008-05-05  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Tds.cs: a numeric column with no decimal digits and a precision <= 80
is translated into a long.

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

16 years ago2008-05-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Tue, 6 May 2008 01:29:56 +0000 (01:29 -0000)]
2008-05-05  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* ConfigurationElement.cs: don't fail when a mandatory property is a
configuration element itself.

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

16 years ago2008-05-06 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 6 May 2008 00:19:57 +0000 (00:19 -0000)]
2008-05-06  Marek Habersack  <mhabersack@novell.com>

* MimeTypes.cs: mime type keys might not exist in the dictionary,
in the 2.0 profile. Patch from Rolf Kvinge <rkvinge@novell.com>
and Jean-Baptiste Evain <jbevain@novell.com>, thanks! Fixes bug
#386008

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

16 years ago2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 6 May 2008 00:03:46 +0000 (00:03 -0000)]
2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Added support for ToolBar.

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

16 years ago2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 23:59:48 +0000 (23:59 -0000)]
2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>

* ToolBar.cs: Made the Vertical property internal.

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

16 years ago2008-05-06 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 5 May 2008 23:38:47 +0000 (23:38 -0000)]
2008-05-06  Marek Habersack  <mhabersack@novell.com>

* Calendar.cs: do not create dateInfo in the constructor - culture
might be not set yet at this point. Fixes bug #323566
Added a private property, DateInfo, which creates the dateInfo
when requested.

2008-05-06  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: compatibility - added the
__stringResource static field to the generated class and a call to
SetStringResourcePointer to the FrameworkInitialize method.

* PageCompiler.cs: __fileDependencies should also be defined in
the 1.x profile.
Page properties assigned in the page directive should be set
inside BuildControlTree in the 2.0 profile.

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

16 years ago2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 May 2008 22:51:12 +0000 (22:51 -0000)]
2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* BulletedList.cs: Avoid calling ToString on a string.
* ButtonField.cs: Throw, not just create, the exceptions.
* HyperLinkField.cs: Throw, not just create, the exceptions.
* ImageField.cs: Throw, not just create, the exception. Avoid calling
ToString on a string.
* ListControl.cs: Avoid calling ToString on a string.
[All issues were found using Gendarme]

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

16 years ago2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 5 May 2008 21:48:20 +0000 (21:48 -0000)]
2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* serial.c (set_attributes): When setting parity to Even,
besides removing the PARODD bit, add the PARENB bit to actually
use even parity.
Patch by Leszek Ciesielski.
Fixes #365248.

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

16 years agoNew test, fixed too agressive optimization
Marek Safar [Mon, 5 May 2008 17:45:56 +0000 (17:45 -0000)]
New test, fixed too agressive optimization

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

16 years ago2008-05-05 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 5 May 2008 17:44:38 +0000 (17:44 -0000)]
2008-05-05  Marek Safar  <marek.safar@gmail.com>

* nullable.cs, statement.cs (Unwrap): Store non-variable expression in all
nullable operations.

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

16 years ago2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 17:38:42 +0000 (17:38 -0000)]
2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Added support for TrackBar.

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

16 years ago2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 17:33:26 +0000 (17:33 -0000)]
2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.

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

16 years ago2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 17:17:57 +0000 (17:17 -0000)]
2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Added support for UpDownBase.

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

16 years ago2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 17:15:02 +0000 (17:15 -0000)]
2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>

* Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
Extracted Theme.UpDownBaseDrawButton.

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

16 years ago2008-05-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 5 May 2008 16:36:44 +0000 (16:36 -0000)]
2008-05-05  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
removed from the static toolstrips collection in ToolStripManager
when they are disposed.  Provides a workaround for bug #386483.

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

16 years ago2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 5 May 2008 15:58:46 +0000 (15:58 -0000)]
2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Read-only properties with Editor with
UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
[Fixes bug #384184]

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

16 years ago2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 5 May 2008 15:48:48 +0000 (15:48 -0000)]
2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>

* TypeDescriptor.cs: GetProperties should not return write-only
properties. Patch by James Fitzsimons  <james.fitzsimons@gmail.com>.
  * TypeDescriptorTests.cs: Add test for handling write-only properties.

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

16 years ago2008-05-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 5 May 2008 15:16:09 +0000 (15:16 -0000)]
2008-05-05  Jonathan Pobst  <monkey@jpobst.com>

* MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
the menu key and there are no items on the menu.
[Fixes bug #386644]

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

16 years ago2008-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 5 May 2008 14:53:12 +0000 (14:53 -0000)]
2008-05-05  Zoltan Varga  <vargaz@gmail.com>

* FieldInfo.cs (GetFieldFromHandle): Add an argument check for an invalid handle.

* MethodBase.cs (GetMethodFromHandle): Ditto. Fixes #386641.

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

16 years ago2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 May 2008 14:52:58 +0000 (14:52 -0000)]
2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* Control.cs: Avoid calling ToString on a string.
* Form.cs: Avoid calling ToString on a string. Found using Gendarme.
* GroupBox.cs: In FlatStyle property throw, not just create, the
exception. Avoid calling ToString on a string.
* ProgressBar.cs: Avoid calling ToString on a string.
* ScrollBar.cs: Avoid calling ToString on a string.
[All issues were found using Gendarme]

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

16 years ago2008-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 5 May 2008 14:51:49 +0000 (14:51 -0000)]
2008-05-05  Zoltan Varga  <vargaz@gmail.com>

* Type.cs (GetTypeFromHandle): Apparently, it is possible to create a
RuntimeTypeHandle with a zero handle value by calling its ctor. Add an argument
check for that.

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

16 years ago2008-05-05 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 5 May 2008 14:23:38 +0000 (14:23 -0000)]
2008-05-05  Martin Baulig  <martin@ximian.com>

* debug-mono-symfile.h
(MONO_SYMBOL_FILE_COMPATIBILITY_VERSION): Removed; dropped support
for old pre-terrania symbol files.

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

16 years ago2008-05-05 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 5 May 2008 14:22:03 +0000 (14:22 -0000)]
2008-05-05  Martin Baulig  <martin@ximian.com>

Drop support for old pre-terrania symbol files.

* MonoSymbolFile.cs
(MonoSymbolFile.CompatibilityMode): Removed.

* MonoSymbolTable.cs
(LexicalBlockEntry): Removed this obsolete class.

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

16 years ago2008-05-05 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 5 May 2008 14:21:22 +0000 (14:21 -0000)]
2008-05-05  Martin Baulig  <martin@ximian.com>

* Mono.Cecil.Mdb/MdbWriter.cs: Reflect latest symbol writer
changes; DefineLocalVariables() doesn't take a signature anymore.

* Mono.Cecil.Mdb/MdbReader.cs: Reflect latest symbol writer
changes; use CodeBlockEntry instead of LexicalBlockEntry.

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

16 years ago2008-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 5 May 2008 12:34:56 +0000 (12:34 -0000)]
2008-05-05  Zoltan Varga  <vargaz@gmail.com>

* ConstructorOnTypeBuilderInstTest.cs: Disable one more test for GetParameters ().

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

16 years ago2008-05-05 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 5 May 2008 11:53:39 +0000 (11:53 -0000)]
2008-05-05 Igor Zelmanovich <igorz@mainsoft.com>

* HiddenFieldPageStatePersister.cs: add TARGET_J2EE def
* Page.cs: remove TARGET_J2EE def
* Page.jvm.cs: add new internal api such PageState and FacesContext.
all those changes make PageAdapter works with JSF under TARGET_J2EE.

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

16 years ago2008-05-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Mon, 5 May 2008 10:35:11 +0000 (10:35 -0000)]
2008-05-05  Andreas Faerber  <andreas.faerber@web.de>

* mini-arch.h: Prepare support for ppc64.

This commit is licensed under the MIT X11 license.

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

16 years ago2008-05-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Mon, 5 May 2008 10:19:14 +0000 (10:19 -0000)]
2008-05-05  Andreas Faerber  <andreas.faerber@web.de>

* configure.in: Detect ppc64 target architecture.

This commit is licensed under the MIT X11 license.

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

16 years ago2008-05-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Mon, 5 May 2008 09:38:10 +0000 (09:38 -0000)]
2008-05-05  Andreas Faerber  <andreas.faerber@web.de>

* aot-runtime.c: Prepare support for ppc64.

This commit is licensed under the MIT X11 license.

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

16 years agoavoid NullReferenceException
Igor Zelmanovich [Mon, 5 May 2008 09:31:41 +0000 (09:31 -0000)]
avoid NullReferenceException

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

16 years ago2008-05-05 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Mon, 5 May 2008 09:28:17 +0000 (09:28 -0000)]
2008-05-05  Everaldo Canuto  <ecanuto@novell.com>

* NotifyIcon.cs: Prevent click events to be trigger after double click
events. Fixes remaining issues of bug #324832.

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

16 years ago2008-05-05 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Mon, 5 May 2008 09:18:05 +0000 (09:18 -0000)]
2008-05-05  Everaldo Canuto  <ecanuto@novell.com>

* NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
to mimic win32 behavior. Partially fixes bug #324832.

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

16 years ago2008-05-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Mon, 5 May 2008 09:09:34 +0000 (09:09 -0000)]
2008-05-05  Andreas Faerber  <andreas.faerber@web.de>

* mini-ops.h: Prepare support for ppc64.

This commit is licensed under the MIT X11 license.

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

16 years ago2008-05-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Mon, 5 May 2008 08:45:56 +0000 (08:45 -0000)]
2008-05-05  Andreas Faerber  <andreas.faerber@web.de>

* mono-config.c: Add ppc64 architecture.

This commit is licensed under the MIT X11 license.

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

16 years ago2008-05-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Mon, 5 May 2008 08:37:57 +0000 (08:37 -0000)]
2008-05-05  Andreas Faerber  <andreas.faerber@web.de>

* object.c (mono_create_ftnptr, mono_get_addr_from_ftnptr):
  PPC64 uses function descriptors as well.

This commit is licensed under the MIT X11 license.

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

16 years agoadd TARGET_J2EE def
Igor Zelmanovich [Mon, 5 May 2008 08:08:55 +0000 (08:08 -0000)]
add TARGET_J2EE def

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

16 years ago * BindingSource.cs: Implement Find methods.
Carlos Alberto Cortez [Mon, 5 May 2008 07:15:30 +0000 (07:15 -0000)]
* BindingSource.cs: Implement Find methods.

2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years agoUpdated Changelog
Francisco Figueiredo Jr. [Mon, 5 May 2008 03:38:32 +0000 (03:38 -0000)]
Updated Changelog

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