mono.git
16 years ago2007-07-07 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 7 Jul 2007 16:18:18 +0000 (16:18 -0000)]
2007-07-07  Miguel de Icaza  <miguel@novell.com>

* Removed the ifdef CAIRO_1_2, the documentation already reflects
that things are only available on Cairo 1.2.

* Add new API calls to query Cairo for its version

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

16 years ago* MethodBuilder.cs: Code formatting. Spaces to tabs.
Gert Driesen [Sat, 7 Jul 2007 14:31:09 +0000 (14:31 -0000)]
* MethodBuilder.cs: Code formatting. Spaces to tabs.
* TypeBuilder.cs: Same.

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

16 years ago* DateTime.cs: In ParseExact, throw ArgumentNullException if format
Gert Driesen [Sat, 7 Jul 2007 12:37:14 +0000 (12:37 -0000)]
* DateTime.cs: In ParseExact, throw ArgumentNullException if format
is null; throw FormatException if formats array is empty or if one of
items is null or a zero-length string.
* DateTimeTest.cs: Added test for bug #81778. Enabled test for bug
#47720. Added tests for ParseExact argument checks. No longer derive
from deprecated Assertion class. Code formatting.

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

16 years agoMore tests.
Marek Safar [Sat, 7 Jul 2007 07:07:42 +0000 (07:07 -0000)]
More tests.

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

16 years ago2007-07-06 William Holmes <billholmes54@gmail.com>
Bill Holmes [Sat, 7 Jul 2007 00:50:17 +0000 (00:50 -0000)]
2007-07-06  William Holmes  <billholmes54@gmail.com>

        * assembly.c: Added a continue statement in
        * probe_for_partial_name when
         parse_assembly_directory_name fails.  Fixes : 82002

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

16 years agoPatch for bug 81867
Alan McGovern [Fri, 6 Jul 2007 21:11:28 +0000 (21:11 -0000)]
Patch for bug 81867

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 20:59:59 +0000 (20:59 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* ListControl.cs: Add 2.0 stuffs.

2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* ListControl.cs: Add test for Formatting behavior.

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

16 years ago2007-07-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 6 Jul 2007 19:51:47 +0000 (19:51 -0000)]
2007-07-06  Rodrigo Kumpera  <rkumpera@novell.com>

* DoubleTest.cs : Added test Parse_TrailingGarbage, for strings with garbage at the end

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

16 years ago2007-07-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 6 Jul 2007 19:48:37 +0000 (19:48 -0000)]
2007-07-06  Rodrigo Kumpera  <rkumpera@novell.com>

* Double.cs (Parse): Fix for string ending in garbaga, it was just ignoring it
instead of throwing FormatException. Fixes #81777

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 17:52:37 +0000 (17:52 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
Refresh is overkill for just about every repaint request.

2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* LabelTest.cs: Add test for Image[List|Index|Key].

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

16 years ago2007-07-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 6 Jul 2007 17:51:57 +0000 (17:51 -0000)]
2007-07-06  Rodrigo Kumpera  <rkumpera@novell.com>

* DoubleTest.cs (Parse): Added test for whitespace only

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

16 years ago2007-07-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 6 Jul 2007 17:49:49 +0000 (17:49 -0000)]
2007-07-06  Rodrigo Kumpera  <rkumpera@novell.com>

* Double.cs (Parse): Fix for whitespace only strings, it was returning zero
instead of throwing FormatException. Fixes #81630

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

16 years agoFix for bug 81778
Alan McGovern [Fri, 6 Jul 2007 17:21:02 +0000 (17:21 -0000)]
Fix for bug 81778

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

16 years ago2007-07-06 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 6 Jul 2007 16:44:09 +0000 (16:44 -0000)]
2007-07-06  Jonathan Chambers  <joncham@gmail.com>

* ExtensibleClassFactory.cs: Fix ExtensibleClassFactory.
* __ComObject.cs: Support ExtensibleClassFactory.

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

16 years agoFix signature, fixes bug 82019, patch from Jason Madden
Miguel de Icaza [Fri, 6 Jul 2007 16:26:20 +0000 (16:26 -0000)]
Fix signature, fixes bug 82019, patch from Jason Madden

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

16 years agoFix
Miguel de Icaza [Fri, 6 Jul 2007 16:24:57 +0000 (16:24 -0000)]
Fix

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

16 years agoHow did this get there?
Miguel de Icaza [Fri, 6 Jul 2007 16:20:33 +0000 (16:20 -0000)]
How did this get there?

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

16 years agoAdd support for building 2.1 as well
Miguel de Icaza [Fri, 6 Jul 2007 16:13:20 +0000 (16:13 -0000)]
Add support for building 2.1 as well

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

16 years agoAdd flag for 2.1
Miguel de Icaza [Fri, 6 Jul 2007 16:11:10 +0000 (16:11 -0000)]
Add flag for 2.1

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

16 years agoCommitted patch for 81732
Alan McGovern [Fri, 6 Jul 2007 16:10:16 +0000 (16:10 -0000)]
Committed patch for 81732

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

16 years ago2007-07-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jul 2007 15:25:05 +0000 (15:25 -0000)]
2007-07-06  Atsushi Enomoto  <atsushi@ximian.com>

* UriIdnScope.cs : new file (for net_2_1 profile).

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

16 years ago2007-05-26 John Luke <john.luke@gmail.com>
Miguel de Icaza [Fri, 6 Jul 2007 15:04:40 +0000 (15:04 -0000)]
2007-05-26  John Luke  <john.luke@gmail.com>

* Mono.Cairo/Cairo.cs:
* Mono.Cairo/Context.cs: fix call to cairo_get_font_matrix,
reported by patperry@stanford.edu (Patrick Perry) in bug#81626

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 14:42:46 +0000 (14:42 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs: I had marked CellBorderTest as WM dependent when it
failed on the buildbots.  I just realized it was actually failing due to
a Label change I hadn't committed, which has now been committed.

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

16 years ago* TypeBuilder.cs: Throw InvalidOperationException when attempting to
Gert Driesen [Fri, 6 Jul 2007 14:38:44 +0000 (14:38 -0000)]
* TypeBuilder.cs: Throw InvalidOperationException when attempting to
construct non-abstract interface without base type. Modified SetParent
to match MS: in 2.0 profile, throw InvalidOperationException when
parent is null and TypeBuilder is non-abstract interface. When
parent is null and TypeBuilder is not an interface, then set object
as parent. In 1.0 profile, throw ArgumentNullException when parent is
null.
* TypeBuilderTest.cs: Improved tests for SetParent.
* ModuleBuilderTest.cs: Added test for creating non-abstract
interface.

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 14:31:05 +0000 (14:31 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
so remove my custom Get method and fix the property getter.

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 14:27:41 +0000 (14:27 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* Label.cs: DefaultMargin for 2.0.

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 14:23:16 +0000 (14:23 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Override IsInputCharInternal and return true.  Fixes
reported issue where other controls with mnemonics would steal strokes
from a selected ComboBox.

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

16 years ago2007-07-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 6 Jul 2007 13:19:34 +0000 (13:19 -0000)]
2007-07-06  Jonathan Pobst  <monkey@jpobst.com>

* ScrollOrientation.cs: Make internal for 1.1.
* ScrollEventArgs.cs: Add 2.0 stuffs.

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

16 years ago2007-07-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 6 Jul 2007 12:57:59 +0000 (12:57 -0000)]
2007-07-06  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (check_unmanaged_pointer_type): renamed to check_unverifiable_type
and added a verification  for TYPEDBYREF.
* verify.c (verify_stack_type_compatibility): fix handling of byref types,
make native int interchangeable with int32 and some small cleanup and formating.
* verify.c (push_arg): only ldarg on invalid argument is valid (but not verifiable) and
handle byref of byref.
* verify.c (push_local): handle byref of byref.
* verify.c (do_binop): invalid mix of values is unverifiable
* verify.c (do_invoke_method): fixed the handling of bad params on stack and
added visibility checks
* verify.c (field related method): added visibility checks
* verify.c (do_push_field): cannot take the address of a temporary valuetype field

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

16 years ago* TypeBuilder.cs: Implemented IsCOMObjectImpl.
Gert Driesen [Fri, 6 Jul 2007 12:10:23 +0000 (12:10 -0000)]
* TypeBuilder.cs: Implemented IsCOMObjectImpl.
* TypeBuilderTest.cs: Enabled test for IsCOMObject. Improved test
for IsImport.
* TypeTest.cs: Added tests for IsAbstract, IsCOMObject, IsImport,
IsInterface, IsPrimitive and IsValueType.

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

16 years ago* DecoderReplacementFallbackTest.cs: Fixed DontChangeReadOnlyCodePage-
Gert Driesen [Fri, 6 Jul 2007 11:46:57 +0000 (11:46 -0000)]
* DecoderReplacementFallbackTest.cs: Fixed DontChangeReadOnlyCodePage-
DecoderFallback test to pass on systems where codepage 932 is valid.
Assert that exception is thrown by DecoderFallback property.
* EncoderReplacementFallbackTest.cs: Fixed DontChangeReadOnlyCodePage-
EncoderFallback test to pass on systems where codepage 932 is valid.
Assert that exception is thrown by EncoderFallback property.

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

16 years ago* TypeBuilderTest.cs: Added tests for bug #82018. Added tests for
Gert Driesen [Fri, 6 Jul 2007 09:52:25 +0000 (09:52 -0000)]
* TypeBuilderTest.cs: Added tests for bug #82018. Added tests for
MakeArrayType (2.0).

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

16 years ago2007-07-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 6 Jul 2007 07:27:14 +0000 (07:27 -0000)]
2007-07-06  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_string_to_utf16_copy): Null terminate the
string.

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

16 years ago* scripts/mono-find-requires.in: add special 64bit case for ia64.
Wade Berrier [Fri, 6 Jul 2007 01:48:18 +0000 (01:48 -0000)]
* scripts/mono-find-requires.in: add special 64bit case for ia64.
(rpm used to provide libname as well as libname()(64bit) on ia64, but
now it only provides the first.)

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

16 years ago * AssemblyRunner.cs: bug fix: handles missing fields corrently
Rodrigo Kumpera [Thu, 5 Jul 2007 22:54:40 +0000 (22:54 -0000)]
* AssemblyRunner.cs: bug fix: handles missing fields corrently
* make_test.sh: correct some tests based on fixed AssemblyRunner

2007-07-05 Rodrigo Kumpera <rkumpera@novell.com>

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

16 years ago2007-07-05 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 5 Jul 2007 22:05:52 +0000 (22:05 -0000)]
2007-07-05  Miguel de Icaza  <miguel@novell.com>

* HttpApplication.cs (AsyncRequestState.Complete): Add the
try/catch for the callback here to ensure that we only call
complete_event.Set once.

(PipelineDone): This is where the core of the bug fix is: do not
call Complete() or call done.Set() (depending on the invocation
case) until we are actually done cleaning up the request.

The problem was that we signaled that we were done, but we had not
completed the shut down, so another thread could have been
scheduled on the same HttpApplication and had its variables be
modified as we completed the shutdown on the first thread.

This fixes #81400 which was a very long standing bug.

(Tick): Remove the pipeline check against null, this is not
necessary and it will help us find problems like this one in the
future.

Reverts patch r66072 which was a described as:

band-aid patch to help debugging hang running 2.0
tests.

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

16 years ago2007-07-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 5 Jul 2007 21:54:52 +0000 (21:54 -0000)]
2007-07-05  Jonathan Pobst  <monkey@jpobst.com>

[Various tests from my local tree]
* ButtonBaseTest.cs: Test for default Accessibility.State.
* LabelTest.cs: Test for default Margin.
* MenuStripTest.cs: Test for CanSelect.
* ScrollBarTest.cs: Test for 2.0 ScrollBarEventArgs.
* SplitContainerTests.cs: Uncomment some Dock and Location asserts.
* StatusStripTest.cs: Tests for default RenderMode and AccessibilityObject.
* ToolStripDropDownTest.cs: Tests for default TextDirection and AccessibilityObject.
* ToolStripItemTest.cs: Test for default TextDirection, ProcessMnemonic.
* ToolStripMenuItemTest.cs: Test for default ForeColor and AccessibilityObject.
* UserControlTest.cs: Test for AutoSize behavior.

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

16 years ago2007-07-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 5 Jul 2007 21:36:46 +0000 (21:36 -0000)]
2007-07-05  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_codegen): Add an assert.

* mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler method enter/
leave code.
* mini-amd64.c (mono_arch_emit_prolog): Likewise.

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

16 years ago2007-07-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 5 Jul 2007 21:15:20 +0000 (21:15 -0000)]
2007-07-05  Zoltan Varga  <vargaz@gmail.com>

* profiler.c (mono_profiler_load): Fix an off-by-one error.

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

16 years ago2007-07-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 5 Jul 2007 20:32:23 +0000 (20:32 -0000)]
2007-07-05  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.

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

16 years ago2007-07-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 5 Jul 2007 20:23:08 +0000 (20:23 -0000)]
2007-07-05  Zoltan Varga  <vargaz@gmail.com>

* pinvoke3.cs libtest.c: Add new test for returning unicode strings from a delegate.

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

16 years ago2007-07-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 5 Jul 2007 20:14:13 +0000 (20:14 -0000)]
2007-07-05  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_marshal_string): When returning a string from managed code,
allways make a copy even for unicode strings. Fixes #81990.

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

16 years ago * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
Carlos Alberto Cortez [Thu, 5 Jul 2007 20:02:04 +0000 (20:02 -0000)]
* ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.

2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 19:59:05 +0000 (19:59 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPathTest.cs: Added more test cases for Reverse, the complex
ones don't work yet (see #81859).

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 19:43:54 +0000 (19:43 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* TestImageAttributes.cs: More complete test for small versus big
alpha uses in matrices.

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

16 years ago2007-07-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 5 Jul 2007 18:48:23 +0000 (18:48 -0000)]
2007-07-05 Rodrigo Kumpera <rkumpera@novell.com>

* AssemblyRunner.cs: Allow running the test suite from the same VM instance
* make_tests.sh: improved the test-suite, now it works running under a VM, not just the verifier
* unverifiable_ldflda_other_class_on_simple_method.il: same
* unverifiable_ptr_nop.il: same
* unverifiable_ldsflda_other_class_field_on_cctor.il: same
* make_load_test.sh: same
* make_stack_0_test.sh: same
* make_obj_store_test.sh: same
* unverifiable_m_ptr_ldloc.il: same
* make_ret_test.sh: same
* make_store_test.sh: same
* unverifiable_ldsflda_other_class_on_simple_method.il: same
* make_access_test.sh: same
* unverifiable_ptr_ldloc.il: same
* invalid_call_no_method.il: same
* unverifiable_ldsfld_no_fld.il: same
* unverifiable_ldflda_owner_class_on_simple_method.il: same
* unverifiable_m_ptr_ldarg.il: same
* make_stack_merge_test.sh: same
* unverifiable_stack_2_ret.il: same
* unverifiable_ldflda_other_class_field_on_ctor.il: same
* unverifiable_ldflda_other_class_field_on_cctor.il: same
* make_field_store_test.sh: same
* invalid_backward_branch.il: same
* unverifiable_ldfld_initonly.il: same
* make_nested_access_test.sh: same
* invalid_stack_2_ret.il: same
* unverifiable_ldsflda_owner_class_on_simple_method.il: same
* unverifiable_ptr_ldarg.il: same
* valid_fld_initonly.il: same
* make_bin_test.sh: same
* make_field_valuetype_test.sh: new tests

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

16 years ago* MethodInfoTest.cs: Added test for bug #81997. Code formatting.
Gert Driesen [Thu, 5 Jul 2007 18:41:41 +0000 (18:41 -0000)]
* MethodInfoTest.cs: Added test for bug #81997. Code formatting.

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

16 years agoThu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 5 Jul 2007 18:01:50 +0000 (18:01 -0000)]
Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-ppc.c: fixed memory corruption for localloc(0)
(bug #81852).

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

16 years ago* CaseInsensitiveHashCodeProvider.cs: Lazy init Default instance and
Gert Driesen [Thu, 5 Jul 2007 17:39:44 +0000 (17:39 -0000)]
* CaseInsensitiveHashCodeProvider.cs: Lazy init Default instance and
reconstruct it if CurrentCulture changes.
* CaseInsensitiveHashCodeProviderTest.cs: Reworked test for Default
instance to pass on both Mono and MS. Added separate tests that
verify the specific Mono and MS behavior.

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

16 years ago* CaseInsensitiveHashCodeProvider.cs: In default ctor, do not save
Gert Driesen [Thu, 5 Jul 2007 16:40:03 +0000 (16:40 -0000)]
* CaseInsensitiveHashCodeProvider.cs: In default ctor, do not save
TextInfo if current culture is invariant. Remoted private ctor.
In Default, always construct new instance since the current culture
may change.
* CaseInsensitiveHashCodeProviderTest.cs: Improved test for
Default property to show the a new intance is constructed. Added test
for DefaultInvariant. Improved serialization tests. Added ctor test
for null CultureInfo. Code formatting.
* CultureInfoTest.cs: Fixed UseUserOverride tests to pass on systems
where invariant culture is default locale.

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 15:44:01 +0000 (15:44 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* PrimalityTests.cs: Last attempt half-failed. For the time being we
need the initial workaround :(

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 15:22:51 +0000 (15:22 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* BigInteger.cs: Call PrimalityTests.Test instead of the Rabin-Miller
test. This will select the best algorithm to use based on the prime
candidate. Applied #69999 optimization (even if this code is commented
right now) so this old issue can be closed.

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 15:21:01 +0000 (15:21 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* PrimalityTests.cs: Added Test method that select which algorithm,
SPP or RabinMillerTest, to use based on the prime-candidate size.
Removed previous workaround (as this is both a workaround and a good
fix ;-).

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

16 years agoprepare selenium test environment
Igor Zelmanovich [Thu, 5 Jul 2007 14:52:14 +0000 (14:52 -0000)]
prepare selenium test environment

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

16 years ago* ListControl.cs:
Vladimir Krasnov [Thu, 5 Jul 2007 14:43:44 +0000 (14:43 -0000)]
* ListControl.cs:
* ListItem.cs:
* ListItemCollection.cs: controls based on ListControl should not save view state before than TrackViewState called

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 14:38:05 +0000 (14:38 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* PrimeTestingTest.cs: Re-enable failing 20 digits primes (now that
we have a workaround for them).

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 14:36:50 +0000 (14:36 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* BigInteger.cs: Reduce modulo steps in Multiply. Add #if/#else around
older, and commented, [Odd|Even]Pow methods.

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

16 years ago2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jul 2007 14:35:24 +0000 (14:35 -0000)]
2007-07-05  Sebastien Pouliot  <sebastien@ximian.com>

* PrimalityTests.cs: Rewritten RabinMillerTest to be closer to the
original algorithm (easier to understand/debug). Added a workaround
for #81857 when the prime is small (less than 100 bits) so we can keep
the a (base) == 2 optimization for larger primes.

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

16 years agofixed project files
Igor Zelmanovich [Thu, 5 Jul 2007 13:05:27 +0000 (13:05 -0000)]
fixed project files

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

16 years ago* WebControl.cs: fixed AddDisplayStyleAttribute, returns if ControlStyle is not created
Vladimir Krasnov [Thu, 5 Jul 2007 12:39:13 +0000 (12:39 -0000)]
* WebControl.cs: fixed AddDisplayStyleAttribute, returns if ControlStyle is not created

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

16 years agoRemove some overrides in TARGET_JVM due to byte code compiler limitations
Noam Lampert [Thu, 5 Jul 2007 12:18:42 +0000 (12:18 -0000)]
Remove some overrides in TARGET_JVM due to byte code compiler limitations

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

16 years agoconsider section 'system.web/deployment' is not supported for TARGET_J2EE
Igor Zelmanovich [Thu, 5 Jul 2007 11:07:34 +0000 (11:07 -0000)]
consider section 'system.web/deployment' is not supported for TARGET_J2EE

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

16 years agoprepare test project
Igor Zelmanovich [Thu, 5 Jul 2007 11:04:18 +0000 (11:04 -0000)]
prepare test project

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

16 years ago * ListView.cs: Implement the so-incredibly broken 2.0
Carlos Alberto Cortez [Thu, 5 Jul 2007 08:37:38 +0000 (08:37 -0000)]
* ListView.cs: Implement the so-incredibly broken 2.0
VirtualItemsSelectionRangeChanged event.

2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years agoadded/fixed project files
Igor Zelmanovich [Thu, 5 Jul 2007 08:26:57 +0000 (08:26 -0000)]
added/fixed project files

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

16 years agoRename cs1624-3.cs to gcs1624.cs
Raja R Harinath [Thu, 5 Jul 2007 08:15:19 +0000 (08:15 -0000)]
Rename cs1624-3.cs to gcs1624.cs

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

16 years agoScript to run standalone functional tests using Selenium.
Adar Wesley [Thu, 5 Jul 2007 08:05:03 +0000 (08:05 -0000)]
Script to run standalone functional tests using Selenium.

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

16 years ago * ListView.cs: When enter is pressed and selection is non empty,
Carlos Alberto Cortez [Thu, 5 Jul 2007 06:55:33 +0000 (06:55 -0000)]
* ListView.cs: When enter is pressed and selection is non empty,
an OnItemActivate event must be fired.

2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 5 Jul 2007 05:36:19 +0000 (05:36 -0000)]
2007-07-04  Atsushi Enomoto <atsushi@ximian.com>

* mcs.1 : we do not use fixed Latin1 by default.

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

16 years ago2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 5 Jul 2007 05:18:41 +0000 (05:18 -0000)]
2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Store the FocusedItem information as an
int instead of a ListViewItem (needed by VirtualMode).
Update the calls to SetFocusedItem to pass an index instead of
an item.
* ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
the Focused state from the owner ListView.

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

16 years ago * ListViewItemTest.cs: Add tests for Focused property.
Carlos Alberto Cortez [Wed, 4 Jul 2007 23:42:15 +0000 (23:42 -0000)]
* ListViewItemTest.cs: Add tests for Focused property.

2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
Carlos Alberto Cortez [Wed, 4 Jul 2007 23:41:04 +0000 (23:41 -0000)]
* ListView.cs: Set ListView.focused_item from ListViewItem.Focused
property. Also, invalidate previous focused item in the mentioned
property (match .Net).

2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-07-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Jul 2007 23:09:40 +0000 (23:09 -0000)]
2007-07-05  Zoltan Varga  <vargaz@gmail.com>

* mini.c: Fix warnings.

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

16 years ago2007-07-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jul 2007 21:34:56 +0000 (21:34 -0000)]
2007-07-04  Sebastien Pouliot  <sebastien@ximian.com>
* BigIntegerTest.cs: A few more ModPow test cases to corner the
small value bug (looks like a bad Barrett reduction).

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

16 years ago2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Jul 2007 18:37:29 +0000 (18:37 -0000)]
2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>

* System.Xml.Core.dll.sources : remove unused DTDValidatingReader2.cs

* DTDValidatingReader2.cs :
  we can remove NET_2_1 from this unused code in SL.

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

16 years ago* MathTest.cs: No longer use Assertion as base class, and changed
Gert Driesen [Wed, 4 Jul 2007 18:11:30 +0000 (18:11 -0000)]
* MathTest.cs: No longer use Assertion as base class, and changed
asserts accordingly. Numbered tests. Added test for bug #82001.
Code formatting.

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

16 years ago2007-07-04 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 4 Jul 2007 16:20:26 +0000 (16:20 -0000)]
2007-07-04  Dick Porter  <dick@ximian.com>

* Socket.cs: Don't set DontFragment by default for IPv6 sockets.
Fixes bug 81985.

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

16 years agoWed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 4 Jul 2007 15:35:46 +0000 (15:35 -0000)]
Wed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>

* darwin_stop_world.c: use a larger array for GC_mach_threads
(it'll need to be enlarged dynamically, but it's with the world
stopped, bug #81974).

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

16 years ago2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Jul 2007 13:22:57 +0000 (13:22 -0000)]
2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile
  DummySystemXmlCore.cs
  System.Xml.Core.dll.sources :
  new files, to build System.Xml.Core.dll.

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

16 years agoUpdate for sse2 opt flag.
Paolo Molaro [Wed, 4 Jul 2007 13:20:39 +0000 (13:20 -0000)]
Update for sse2 opt flag.

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

16 years agoWed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 4 Jul 2007 13:20:11 +0000 (13:20 -0000)]
Wed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>

* optflags-def.h, mini-x86.c: added sse2 optimization flag and use it
to emit better double->int conversions.

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

16 years ago2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Jul 2007 13:19:57 +0000 (13:19 -0000)]
2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>

* SubtreeXmlReader.cs XmlFilterReader.cs :
  exclude xsd stuff from NET_2_1 profile.

* DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
  DTDValidatingReader2.cs XmlException.cs XmlReader.cs
  XmlReaderSettings.cs XmlWriter.cs :
  Make System.Xml.Core.dll build easier, using NET_2_1.

  DTD support is simply cut at this stage (as it largely depends on
  sys.xml.schema stuff).

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

16 years agoWed Jul 4 15:29:07 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 4 Jul 2007 13:17:45 +0000 (13:17 -0000)]
Wed Jul 4 15:29:07 CEST 2007 Paolo Molaro <lupus@ximian.com>

* x86/x86-codegen.h: added minimal sse instructions currently
needed by the JIT.

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

16 years ago2007-07-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jul 2007 12:29:22 +0000 (12:29 -0000)]
2007-07-04  Sebastien Pouliot  <sebastien@ximian.com>

* PrimeTestingTest.cs: Add test cases for "small" primes between
10 and 300 digits. 3 cases are failing for 20 digits primes.

* BigIntegerTest.cs: Add test cases for small values with
IsProbablePrime. From bug #81857, subset from patch by Kazuki.

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

16 years ago2007-07-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jul 2007 12:27:36 +0000 (12:27 -0000)]
2007-07-04  Sebastien Pouliot  <sebastien@ximian.com>

* BigInteger.cs: In some condition the optimized (4 variants) OddPow
expose a bug, mainly with small numbers. This simpler version, square
and multiply, doesn't expose as much the bug (almost all new prime
tests pass).

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

16 years agodoesn't consider CompilationSection for TARGET_J2EE
Igor Zelmanovich [Wed, 4 Jul 2007 11:42:16 +0000 (11:42 -0000)]
doesn't consider CompilationSection for TARGET_J2EE

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

16 years agorefactoring: make it works for TARGET_J2EE
Igor Zelmanovich [Wed, 4 Jul 2007 11:38:14 +0000 (11:38 -0000)]
refactoring: make it works for TARGET_J2EE

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

16 years agoNew tests.
Marek Safar [Wed, 4 Jul 2007 10:30:47 +0000 (10:30 -0000)]
New tests.

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

16 years ago2007-07-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 4 Jul 2007 10:30:26 +0000 (10:30 -0000)]
2007-07-04  Marek Safar  <marek.safar@gmail.com>

* ecore.cs (VarExpr.DoResolveLValue): More restriction checks.

* anonymous.cs,
* lambda.cs: Add custom error message type.

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

16 years agoTest for bug #81997.
Paolo Molaro [Wed, 4 Jul 2007 09:48:40 +0000 (09:48 -0000)]
Test for bug #81997.

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

16 years agoWed Jul 4 11:53:57 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 4 Jul 2007 09:44:05 +0000 (09:44 -0000)]
Wed Jul 4 11:53:57 CEST 2007 Paolo Molaro <lupus@ximian.com>

* object.c: cleaned up mono_runtime_invoke_array () and fixed handling
of byref generic inst types (bug #81997).

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

16 years agoadding TARGET_JVM on explicit interface implementation
Roei Erez [Wed, 4 Jul 2007 09:15:15 +0000 (09:15 -0000)]
adding TARGET_JVM on explicit interface implementation

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

16 years agoJavaScriptSerializer.Deserialize method returns correct type object.
Igor Zelmanovich [Wed, 4 Jul 2007 07:49:55 +0000 (07:49 -0000)]
JavaScriptSerializer.Deserialize method returns correct type object.
javascripts array is deserialized into object[] type.

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

16 years ago2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 4 Jul 2007 06:12:04 +0000 (06:12 -0000)]
2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewTest.cs: Add tests for 2.0 FocusedItem property setter.

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

16 years ago2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 4 Jul 2007 06:08:50 +0000 (06:08 -0000)]
2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Implement 2.0 FocusedItem property setter.

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

16 years agooops, it is S.R.E, not S.R.
Atsushi Eno [Wed, 4 Jul 2007 02:21:10 +0000 (02:21 -0000)]
oops, it is S.R.E, not S.R.

2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>

* DynamicMethod.cs : 2.0 API fix.

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

16 years ago2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Jul 2007 02:19:18 +0000 (02:19 -0000)]
2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>

* Type.cs : 2.0 TypeHandle and ContainsGenericParameters are virtual
  (required fix for 2.0 reflection API fixes).

* CustomAttributeNamedArgument.cs CustomAttributeTypedArgument.cs
  CustomAttributeData.cs : implemented Equals() and GetHashCode().
* Missing.cs : ISerializable.
* AssemblyName.cs : ReferenceMatchesDefinition() stub.
* Module.cs : missing method stubs with generic type/method args.
* ExceptionHandlingClause.cs : ToString() stub.
* MethodBase.cs TypeDelegator.cs ModuleResolveEventHandler.cs
  TypeFilter.cs MemberFilter.cs
  FieldInfo.cs ParameterInfo.cs MethodInfo.cs DynamicMethod.cs :
  miscellaneous cosmetic API fixes.

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

16 years ago2007-07-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 4 Jul 2007 01:58:25 +0000 (01:58 -0000)]
2007-07-03 Rodrigo Kumpera <rkumpera@novell.com>
* make_tests.sh: new access verification tests
* make_access_test.sh: create member access test
* make_nested_access_tests.sh: create nested member access test

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

16 years ago2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 3 Jul 2007 23:48:25 +0000 (23:48 -0000)]
2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewTest.cs: Add tests for 2.0 TopItem property setter.

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

16 years ago2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 3 Jul 2007 23:46:23 +0000 (23:46 -0000)]
2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Implement 2.0 TopItem property setter.

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