Raja R Harinath [Thu, 19 Jan 2006 11:43:51 +0000 (11:43 -0000)]
In build:
* library.make (test_lib): Don't allow to be overridden.
(test_against, test_dep): Remove.
In class/corlib:
* Makefile: Simplify. Remove support for corlib_plattest and reslib.
* corlib_plattest.dll.excludes, corlib_res.dll.excludes: remove.
svn path=/trunk/mcs/; revision=55775
Atsushi Eno [Thu, 19 Jan 2006 09:47:00 +0000 (09:47 -0000)]
2006-01-19 Atsushi Enomoto <atsushi@ximian.com>
* DictionaryTest.cs : fixed several tests to not fail under .NET 2.0
and thus marked some as NotWorking. Numbered some assertions.
svn path=/trunk/mcs/; revision=55774
Ankit Jain [Thu, 19 Jan 2006 09:45:51 +0000 (09:45 -0000)]
* MethodRef.cs (MethodRef.Resolve): Resolve owner.
svn path=/trunk/mcs/; revision=55773
Ankit Jain [Thu, 19 Jan 2006 09:44:31 +0000 (09:44 -0000)]
* main.c (dis_type): Dump custom attributes for a type before doing the same
for its type parameters.
svn path=/trunk/mono/; revision=55772
Jackson Harper [Thu, 19 Jan 2006 08:22:26 +0000 (08:22 -0000)]
* ComboBox.cs: Hookup the text controls keydown event so we get
those when the text control has the focus.
svn path=/trunk/mcs/; revision=55771
Peter Dennis Bartok [Thu, 19 Jan 2006 06:41:05 +0000 (06:41 -0000)]
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Label.cs: Now using the base events instead of defining new ones;
this allows us to just call the base properties without having to
duplicate all base property logic
svn path=/trunk/mcs/; revision=55770
Peter Dennis Bartok [Thu, 19 Jan 2006 06:29:31 +0000 (06:29 -0000)]
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Label.cs: A label by default is not a tabstop (Fixes one of our
failing nunit tests)
svn path=/trunk/mcs/; revision=55769
Peter Dennis Bartok [Thu, 19 Jan 2006 06:14:49 +0000 (06:14 -0000)]
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
* XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
svn path=/trunk/mcs/; revision=55768
Peter Dennis Bartok [Thu, 19 Jan 2006 04:51:38 +0000 (04:51 -0000)]
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
which when calling down to MS GDI+ will create an image
where neither GetPixel or Save can be used on.
svn path=/trunk/mcs/; revision=55766
Peter Dennis Bartok [Thu, 19 Jan 2006 04:49:12 +0000 (04:49 -0000)]
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Cursor.cs: Reimplemented creating cursor bitmaps without using
the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
This fixes #77218
* XplatUIWin32.cs:
- Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
constructor creates images that can't be saved. Part of the fix
for #76103
- Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
- SetWindowState: Switched ShowWindow flags (part of an upcoming
bug fix for handling window state in forms properly)
svn path=/trunk/mcs/; revision=55765
Alexander Olk [Wed, 18 Jan 2006 22:34:41 +0000 (22:34 -0000)]
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeGtk.cs: Simplify ScrollBar drawing
svn path=/trunk/mcs/; revision=55761
Jackson Harper [Wed, 18 Jan 2006 22:27:20 +0000 (22:27 -0000)]
* Splitter.cs: Set the default dock style for the splitter control
in the constructor.
svn path=/trunk/mcs/; revision=55760
Alexander Olk [Wed, 18 Jan 2006 21:19:57 +0000 (21:19 -0000)]
* ThemeGtk.cs: Corrected StateType and ShadowType for
gtk_paint_box
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
svn path=/trunk/mcs/; revision=55758
Alexander Olk [Wed, 18 Jan 2006 20:37:56 +0000 (20:37 -0000)]
* Control.cs: Make use of Theme.DoubleBufferingSupported
* ThemeGtk.cs:
- Added drawing for flat style buttons
- Added ScrollBar drawing
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
svn path=/trunk/mcs/; revision=55756
Sebastien Pouliot [Wed, 18 Jan 2006 19:43:46 +0000 (19:43 -0000)]
2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
* System.Drawing_test.dll.sources: Added unit tests for RegionData and
non-rectangular Region.
svn path=/trunk/mcs/; revision=55755
Sebastien Pouliot [Wed, 18 Jan 2006 19:42:37 +0000 (19:42 -0000)]
2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
* RegionDataTest.cs: New. Unit tests for RegionData.
* RegionNonRectTest.cs: New. Unit tests for non-rectangular regions.
* TestRegion.cs: Added new test cases for empty region and IsInfinite
behaviour with multiple rectangles / path-rectangle regions.
svn path=/trunk/mcs/; revision=55754
Sebastien Pouliot [Wed, 18 Jan 2006 19:41:13 +0000 (19:41 -0000)]
2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
* gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
* Region.cs: Implemented .ctor(RegionData)
svn path=/trunk/mcs/; revision=55753
César Natarén [Wed, 18 Jan 2006 19:35:40 +0000 (19:35 -0000)]
2006-01-18 Evan Briones <evan@evanbriones.com>
* GlobalObject.cs: parsefloat in ms.net version returns NaN for text strings.
If a match is found the regular expression returns its value. Otherwise the
value of the object is retained. Previously it would return an empty string if
nothing matched making. Double.TryParse would then return 0.
Example of this returning NaN : var isnan = 'hello'; print (parseFloat(e));
Example of it returning 0 : var iszero = 'string'; print (parseFloat (iszero));
We behave like Rhino.
svn path=/trunk/mcs/; revision=55751
Chris Toshok [Wed, 18 Jan 2006 18:26:39 +0000 (18:26 -0000)]
2006-01-18 Chris Toshok <toshok@ximian.com>
* Makefile (common_dirs): add System.Web again after
System.Web.Services.
svn path=/trunk/mcs/; revision=55747
Chris Toshok [Wed, 18 Jan 2006 18:25:45 +0000 (18:25 -0000)]
2006-01-18 Chris Toshok <toshok@ximian.com>
* Makefile: Add build foo to handle the System.Web.dll <->
System.Web.Services.dll cyclic dependencies.
svn path=/trunk/mcs/; revision=55746
Chris Toshok [Wed, 18 Jan 2006 18:24:41 +0000 (18:24 -0000)]
2006-01-18 Chris Toshok <toshok@ximian.com>
* SystemWebSectionGroup.cs: wrap System.Web.Services references in
WEBSERVICES_DEP.
svn path=/trunk/mcs/; revision=55745
Martin Baulig [Wed, 18 Jan 2006 17:07:03 +0000 (17:07 -0000)]
2006-01-18 Martin Baulig <martin@ximian.com>
* class.cs (TypeContainer.AddToMemberContainer): Use
`symbol.MemberName.MethodName' instead of just `symbol.Name';
fixes #77124.
svn path=/trunk/mcs/; revision=55737
Martin Baulig [Wed, 18 Jan 2006 16:30:01 +0000 (16:30 -0000)]
New test.
svn path=/trunk/mcs/; revision=55735
Konstantin Triger [Wed, 18 Jan 2006 16:29:08 +0000 (16:29 -0000)]
correcting serialization conditions
svn path=/trunk/mcs/; revision=55734
Alexander Olk [Wed, 18 Jan 2006 15:46:39 +0000 (15:46 -0000)]
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Removed some unneeded code.
* ThemeGtk.cs: First part of ThemeGtk enhancements.
svn path=/trunk/mcs/; revision=55729
Martin Baulig [Wed, 18 Jan 2006 15:32:55 +0000 (15:32 -0000)]
2006-01-18 Martin Baulig <martin@ximian.com>
Fix #76417: a generic class may now have methods which may unify
for some type parameter substitutions.
* class.cs (Method.IsDuplicateImplementation): Don't report CS0408
for methods which may unify anymore.
* expression.cs (Invocation.MoreSpecific): New private static
method; checks whether one method is more specific than another
according to 14.4.2.2 of the spec.
(Invocation.BetterFunction): Implement the tie-breaking rules from
14.4.2.2 of the spec: if two methods unify for some type parameter
substitution, we need to pick the more specific one.
svn path=/trunk/mcs/; revision=55728
Martin Baulig [Wed, 18 Jan 2006 15:28:08 +0000 (15:28 -0000)]
2006-01-18 Martin Baulig <martin@ximian.com>
* compiler-tester.cs: Added a new "// Dependencies: " magical
comment to provide real dependency tracking.
svn path=/trunk/mcs/; revision=55727
Martin Baulig [Wed, 18 Jan 2006 15:27:08 +0000 (15:27 -0000)]
2006-01-18 Martin Baulig <martin@ximian.com>
* loader.c (find_method_in_class): Added `gboolean is_inflated'
argument; if false, we compare the uninstantiated signatures.
(method_from_memberref): Compare the uninstantiated signatures;
fixes #76417.
svn path=/trunk/mono/; revision=55726
Robert Jordan [Wed, 18 Jan 2006 15:20:23 +0000 (15:20 -0000)]
2006-01-18 Robert Jordan <robertj@gmx.net>
* boehm-gc.c, null-gc.c (mono_gc_weak_link_remove):
Clear the weak link. Fixes bug #77170.
* gc.c (mono_gchandle_free):
Reflect *-gc.c changes (tiny optimization).
svn path=/trunk/mono/; revision=55725
Atsushi Eno [Wed, 18 Jan 2006 14:17:13 +0000 (14:17 -0000)]
2006-01-18 Atsushi Enomoto <atsushi@ximian.com>
* ThreadTest.cs : mark not-working tests as [Ignore] since it blocks
run-test-ondotnet under 2.0 profile.
svn path=/trunk/mcs/; revision=55724
Robert Jordan [Wed, 18 Jan 2006 14:07:14 +0000 (14:07 -0000)]
2006-01-14 Robert Jordan <robertj@gmx.net>
* RegistryKeyTest.cs: Added unit test for bug #77212.
svn path=/trunk/mcs/; revision=55721
Robert Jordan [Wed, 18 Jan 2006 14:06:04 +0000 (14:06 -0000)]
2006-01-14 Robert Jordan <robertj@gmx.net>
* RegistryKey.cs: Added internal IsRoot accessor.
* Win32RegistryApi.cs: Fixed access to RegistryKey.Data.
Fixes bug #77212. Thanks to Don Edvalson (don@edvalson.net)
for spotting this out.
svn path=/trunk/mcs/; revision=55720
Zoltan Varga [Wed, 18 Jan 2006 13:49:40 +0000 (13:49 -0000)]
2006-01-18 Zoltan Varga <vargaz@gmail.com>
* metadata.c (mono_metadata_signature_dup): Applied patch from
Aras Pranckevicius (aras@otee.dk). Fix crash when compiled with MSVC.
Fixes #77288.
svn path=/trunk/mono/; revision=55718
Raja R Harinath [Wed, 18 Jan 2006 11:46:26 +0000 (11:46 -0000)]
Fix #76656, cs0231-2.cs.
* mcs/cs-parser.jay (formal_parameter_list): Make error case catch
more issues.
(parenthesized_expression_0): Add CS1026 check.
(invocation_expression): Remove unused { $$ = lexer.Location }.
* gmcs/cs-parser.jay: Likewise.
* errors/cs1026-2.cs: New test from #76656.
svn path=/trunk/mcs/; revision=55716
Ankit Jain [Wed, 18 Jan 2006 11:31:48 +0000 (11:31 -0000)]
* main.c (typedef_flags): Change 'special-name' to 'specialname'.
svn path=/trunk/mono/; revision=55715
Atsushi Eno [Wed, 18 Jan 2006 10:14:06 +0000 (10:14 -0000)]
2006-01-18 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : corlib_plattest dll is now profile-aware.
svn path=/trunk/mcs/; revision=55714
Raja R Harinath [Wed, 18 Jan 2006 09:45:44 +0000 (09:45 -0000)]
*** merged revisions from mcs: 55631, 55676
svn path=/trunk/mcs/; revision=55713
Atsushi Eno [Wed, 18 Jan 2006 09:09:41 +0000 (09:09 -0000)]
2006-01-18 Atsushi Enomoto <atsushi@ximian.com>
* Path.cs : (GetRandomFileName) use random buffer ;-) It somehow
caused infinite loop on Windows.
svn path=/trunk/mcs/; revision=55712
Konstantin Triger [Wed, 18 Jan 2006 08:57:28 +0000 (08:57 -0000)]
preserve emptiness in ColorFormatter
svn path=/trunk/mcs/; revision=55711
Boris Kirzner [Wed, 18 Jan 2006 08:51:22 +0000 (08:51 -0000)]
Added column and reference caching to ColumnReference.
svn path=/trunk/mcs/; revision=55710
Konstantin Triger [Wed, 18 Jan 2006 08:46:06 +0000 (08:46 -0000)]
preserve user logic when adding client validation
svn path=/trunk/mcs/; revision=55709
Konstantin Triger [Wed, 18 Jan 2006 08:38:04 +0000 (08:38 -0000)]
perform case insensitive compare; return correct key in default case
svn path=/trunk/mcs/; revision=55708
Atsushi Eno [Wed, 18 Jan 2006 08:07:28 +0000 (08:07 -0000)]
2006-01-18 Atsushi Enomoto <atsushi@ximian.com>
* DirectoryInfo.cs : on Windows top directory is something like c:\.
* DirectoryInfoTest.cs : don't expect "/" as a top directory on
Windows.
svn path=/trunk/mcs/; revision=55707
Atsushi Eno [Wed, 18 Jan 2006 06:27:40 +0000 (06:27 -0000)]
2006-01-18 Atsushi Enomoto <atsushi@ximian.com>
* MutexTest.cs : Marked TestWaitAndFoget1 as [Ignore]. Under
.NET 2.0 it breaks nunit-console (breaks its own AppDomain).
svn path=/trunk/mcs/; revision=55706
César Natarén [Wed, 18 Jan 2006 02:26:21 +0000 (02:26 -0000)]
2006-01-17 Cesar Lopez Nataren <cnataren@novell.com>
* Parser.cs: Propagate the proper parent. Fixes #75166.
svn path=/trunk/mcs/; revision=55705
Peter Dennis Bartok [Tue, 17 Jan 2006 23:21:26 +0000 (23:21 -0000)]
2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs: We need to update the hover drawing when
leaving the control as well.
svn path=/trunk/mcs/; revision=55703
Jordi Mas i Hernandez [Tue, 17 Jan 2006 23:10:15 +0000 (23:10 -0000)]
Clicking on non empty areas in the columns area was giving an exception
svn path=/trunk/mcs/; revision=55702
Jackson Harper [Tue, 17 Jan 2006 23:08:04 +0000 (23:08 -0000)]
* ThemeWin32Classic.cs:
* ListView.cs: Do not draw/clip the headers when the header
* style
is None.
svn path=/trunk/mcs/; revision=55701
Jordi Mas i Hernandez [Tue, 17 Jan 2006 21:52:54 +0000 (21:52 -0000)]
* DataGrid.cs: Fixes 77260
2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
svn path=/trunk/mcs/; revision=55699
Joshua Tauberer [Tue, 17 Jan 2006 21:38:03 +0000 (21:38 -0000)]
StreamReader.cs: Avoid two totally unnecessary string creations. (totally pedantic)
svn path=/trunk/mcs/; revision=55698
Jordi Mas i Hernandez [Tue, 17 Jan 2006 21:33:53 +0000 (21:33 -0000)]
2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGrid.cs: Clicking on a column on a empty grid was giving
an exception
svn path=/trunk/mcs/; revision=55697
Peter Dennis Bartok [Tue, 17 Jan 2006 21:11:58 +0000 (21:11 -0000)]
2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
* DataGrid.cs (OnKeyDown): Don't use the array if it's empty
or any keypress will crash the grid.
svn path=/trunk/mcs/; revision=55696
Chris Toshok [Tue, 17 Jan 2006 21:09:26 +0000 (21:09 -0000)]
2006-01-17 Chris Toshok <toshok@ximian.com>
* CapabilitiesLoader.cs (Init): use WebConfigurationManager in the
CONFIGURATION_2_0 case.
* HttpRuntime.cs (MachineConfigurationDirectory): same.
svn path=/trunk/mcs/; revision=55695
Zoltan Varga [Tue, 17 Jan 2006 20:53:36 +0000 (20:53 -0000)]
2006-01-17 Zoltan Varga <vargaz@gmail.com>
* marshal.c (emit_struct_conv): Allow fields with the same offset when
marshalling from native to managed code. Fixes #77230.
svn path=/trunk/mono/; revision=55693
César Natarén [Tue, 17 Jan 2006 18:26:19 +0000 (18:26 -0000)]
2006-01-17 Cesar Lopez Nataren <cnataren@novell.com>
* ast.cs: Added virtual method PropagateParent for recovering a
lost parent or set it up properly if previously set to null. Fixes
#75166.
* Statement.cs (If,Jump,Break.PropagateParent): recover
the proper parent.
svn path=/trunk/mcs/; revision=55688
Mike Kestner [Tue, 17 Jan 2006 17:49:31 +0000 (17:49 -0000)]
2006-01-17 Mike Kestner <mkestner@novell.com>
* MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
* ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
invisible/previously-visible items.
[Fixes #76909]
svn path=/trunk/mcs/; revision=55687
Alexander Olk [Tue, 17 Jan 2006 17:28:36 +0000 (17:28 -0000)]
2006-01-17 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs:
- Added CL_Draw_Button method; now other theme controls that are
not derived from button or do not have a button can draw buttons
too
- Updated ComboBox drawing
- Beautified RadioButton drawing
- Corrected drawing of bottom and left tabs
- Beautified DateTimePicker and MonthCalendar
- Added CPDrawButton and CPDrawRadioButton
svn path=/trunk/mcs/; revision=55685
César Natarén [Tue, 17 Jan 2006 17:15:59 +0000 (17:15 -0000)]
2006-01-17 Cesar Lopez Nataren <cnataren@novell.com>
* expression.cs (Binary.emit_access): Emit late binding code for
member's access that maps to MemberTypes (like Math.pow). Fixes
#72440.
svn path=/trunk/mcs/; revision=55683
Zoltan Varga [Tue, 17 Jan 2006 15:23:53 +0000 (15:23 -0000)]
2006-01-17 Zoltan Varga <vargaz@gmail.com>
* mini.h: Move mono_bitset_test_fast macro to monobitset.h where it belongs.
svn path=/trunk/mono/; revision=55681
Zoltan Varga [Tue, 17 Jan 2006 15:23:07 +0000 (15:23 -0000)]
2006-01-17 Zoltan Varga <vargaz@gmail.com>
* monobitset.h monobitset.c: Move the mono_bitset_test_fast macro here
from mini.h. Also fix it after the 64 bit changes.
svn path=/trunk/mono/; revision=55680
Atsushi Eno [Tue, 17 Jan 2006 12:09:08 +0000 (12:09 -0000)]
2006-01-17 Atsushi Enomoto <atsushi@ximian.com>
* DbcsEncoding.cs CP950.cs CP932.cs CP936.cs CP51932.cs CP949.cs :
Made all as really serializable. Removed references to DbcsConvert
and added GetConvert() methods instead.
svn path=/trunk/mcs/; revision=55677
Raja R Harinath [Tue, 17 Jan 2006 12:05:49 +0000 (12:05 -0000)]
Fix #76824.
* mcs/cs-parser.jay (statement_expression): Don't list out the
individual statement-expressions. Convert syntax error into
CS0201 check.
* errors/cs0201-2.cs, errors/cs0201-3.cs: New tests from #76824.
svn path=/trunk/mcs/; revision=55676
Senganal T [Tue, 17 Jan 2006 11:54:14 +0000 (11:54 -0000)]
2006-01-17 Senganal T <tsenganal@novell.com>
* Test/System.Data/DataRowTest2.cs : added testcase for bug #77267
* System.Data/DataRow.cs:
ItemArray : Modified to raise RowInTableException only if
the concerned row has been removed from the table.Fixes
bug #77267
svn path=/trunk/mcs/; revision=55675
Atsushi Eno [Tue, 17 Jan 2006 11:45:48 +0000 (11:45 -0000)]
2006-01-17 Atsushi Enomoto <atsushi@ximian.com>
* MonoEncoding.cs, ByteEncoding.cs :
Marked as [Serializable].
* DbcsEncoding.cs ISO2022JP.cs GB18030Encoding.cs CP950.cs
CP932.cs CP936.cs CP51932.cs CP949.cs (All) :
Marked as [Serializable].
* CP1254.cs CP1255.cs CP28596.cs CP1256.cs CP28598.cs CP38598.cs
CP28599.cs (All) :
Marked as [Serializable].
* CP1251.cs CP28594.cs CP28595.cs CP1257.cs CP1258.cs CP57002.cs
CP874.cs CP20866.cs CP21866.cs (All) :
Marked as [Serializable].
* CP1145.cs CP1149.cs CP20420.cs CP20424.cs CP708.cs CP855.cs
CP875.cs CP1140.cs CP869.cs CP1144.cs CP1047.cs CP1148.cs
CP21025.cs CP870.cs CP20285.cs CP864.cs CP858.cs CP1143.cs
CP1026.cs CP37.cs CP1147.cs CP500.cs CP20280.cs CP20290.cs
CP20284.cs CP20278.cs CP857.cs CP1142.cs CP1146.cs CP20273.cs
CP852.cs CP862.cs CP20277.cs CP20871.cs CP866.cs CP20297.cs
CP1141.cs (All) :
Marked as [Serializable].
* CP1252.cs CP28592.cs CP437.cs CP861.cs CP10079.cs CP863.cs
CP865.cs CP28593.cs CP1253.cs CP28597.cs CP10000.cs CP850.cs
CP860.cs CP28605.cs CP1250.cs (All) :
Marked as [Serializable].
svn path=/trunk/mcs/; revision=55674
Ankit Jain [Tue, 17 Jan 2006 10:51:28 +0000 (10:51 -0000)]
* get.c (get_method_override): Use '.override method' syntax if the class or
or the method itself is generic.
* main.c (dis_code): Emit '.override' only, 'method' gets handled by get_method_override.
svn path=/trunk/mono/; revision=55672
Senganal T [Tue, 17 Jan 2006 09:07:43 +0000 (09:07 -0000)]
2006-01-17 Senganal T <tsenganal@novell.com>
* Test/ProviderTests/sqlserver.config : Modified the default login and password to 'monotester'
* Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : Added testcase for bug #77225
* System.Data.SqlClient/SqlCommandBuilder.cs
- Modified CreateNewCommand () : Clean up any existing parameter list
before reusing the command.Fixes #77225
svn path=/trunk/mcs/; revision=55668
Ankit Jain [Tue, 17 Jan 2006 07:34:20 +0000 (07:34 -0000)]
* get.c (init_key_table): Add keywords 'bestfit', 'charmaperror', 'off' & 'on'.
svn path=/trunk/mono/; revision=55667
Gonzalo Paniagua Javier [Tue, 17 Jan 2006 05:57:15 +0000 (05:57 -0000)]
2006-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* threadpool.c: fix problem (Mac only) when more than one asynchronous
connect. Fixes bug #77020.
svn path=/trunk/mono/; revision=55665
Alp Toker [Tue, 17 Jan 2006 01:58:24 +0000 (01:58 -0000)]
2006-01-17 Alp Toker <alp@atoker.com>
* Samples/x11/compile.sh: Remove unused gtk-sharp reference
svn path=/trunk/mcs/; revision=55663
Jackson Harper [Mon, 16 Jan 2006 23:20:29 +0000 (23:20 -0000)]
* ComboBox.cs: Set the initial value of the scrollbar to the
current index. Reduce the numbers of refreshs and IndexOfs
called.
svn path=/trunk/mcs/; revision=55661
Chris Toshok [Mon, 16 Jan 2006 22:59:02 +0000 (22:59 -0000)]
2006-01-16 Chris Toshok <toshok@ximian.com>
* DelegatingConfigHost.cs: flesh out the rest of this
implementation.
svn path=/trunk/mcs/; revision=55660
Alp Toker [Mon, 16 Jan 2006 22:53:47 +0000 (22:53 -0000)]
2006-01-16 Alp Toker <alp@atoker.com>
* TimeSpan.cs: Simple implementation of NET 2.0 TryParse() using
try/catch
svn path=/trunk/mcs/; revision=55659
Zoltan Varga [Mon, 16 Jan 2006 21:38:04 +0000 (21:38 -0000)]
2006-01-16 Zoltan Varga <vargaz@gmail.com>
* mini.h (mono_bitset_test_fast): Disable the 'fast' implementation which
depends on implementation details of monobitset.
svn path=/trunk/mono/; revision=55656
Sebastien Pouliot [Mon, 16 Jan 2006 21:23:59 +0000 (21:23 -0000)]
2006-01-16 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPath.cs: Updated TODO description on GetBounds as it's now
only missing support for Pens (when used with libgidplus).
svn path=/trunk/mcs/; revision=55655
Sebastien Pouliot [Mon, 16 Jan 2006 21:22:40 +0000 (21:22 -0000)]
2006-01-16 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPathTest.cs: Added test cases for GetBounds and re-activated
some parts of the tests that checked bounds (Add* tests).
svn path=/trunk/mcs/; revision=55654
Sebastien Pouliot [Mon, 16 Jan 2006 21:07:22 +0000 (21:07 -0000)]
2006-01-16 Sebastien Pouliot <sebastien@ximian.com>
* TestRegion.cs: Mark a test case as NotWorking as it caused a
regression in SWF.
svn path=/trunk/mcs/; revision=55652
Chris Toshok [Mon, 16 Jan 2006 20:14:03 +0000 (20:14 -0000)]
2006-01-16 Chris Toshok <toshok@ximian.com>
* HttpApplicationFactory.cs: call WebConfigurationManager.Init in
the CONFIGURATION_2_0 case.
svn path=/trunk/mcs/; revision=55651
Chris Toshok [Mon, 16 Jan 2006 20:11:14 +0000 (20:11 -0000)]
2006-01-16 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs: implement a IConfigurationSystem for
use with WebConfigurationManager.
(GetSection): try to load the section
using GetWebApplicationSection before calling into
ConfigurationManager.GetSection.
(GetWebApplicationConfiguration): move common code to here.
(GetWebApplicationSection): use GetWebApplicationConfiguration.
(AppSettings): implement.
* WebConfigurationHost.cs (GetWebConfigFileName): add
"Web.Config", and move to an array/loop implementation. maybe we
should scan the directory and check ToLower() instead of
explicitly enumerating?
svn path=/trunk/mcs/; revision=55650
Chris Toshok [Mon, 16 Jan 2006 20:05:59 +0000 (20:05 -0000)]
2006-01-16 Chris Toshok <toshok@ximian.com>
* ConfigurationSettings.cs (AppSettings): move back to a 1.x
strategy in the 2.0 case. That is, don't hardcode the reference
to ConfigurationManager.AppSettings (yet). Eventually we can move
back to this code, once ConfigurationManager supports reading
web.config for settings.
svn path=/trunk/mcs/; revision=55649
Robert Jordan [Mon, 16 Jan 2006 19:24:18 +0000 (19:24 -0000)]
Reverted until I get more details. See #77242.
svn path=/trunk/mcs/; revision=55648
César Natarén [Mon, 16 Jan 2006 19:19:02 +0000 (19:19 -0000)]
update the error cause
svn path=/trunk/mcs/; revision=55647
Paolo Molaro [Mon, 16 Jan 2006 18:22:17 +0000 (18:22 -0000)]
Mon Jan 16 19:20:43 CET 2006 Paolo Molaro <lupus@ximian.com>
* class.c: fixed id assignement for nested interfaces (bug #77275).
Added also better info for --print-vtable debugging.
svn path=/trunk/mono/; revision=55645
Atsushi Eno [Mon, 16 Jan 2006 17:25:18 +0000 (17:25 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
* RelaxngValidatingReader.cs : fixed warning.
* RdpObjects.cs : fixed warnings.
svn path=/trunk/mcs/; revision=55644
Atsushi Eno [Mon, 16 Jan 2006 17:17:15 +0000 (17:17 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
* RelaxngValidatingReader.cs : just keep previous TextDeriv() result
for each pattern; they are mostly not reused. It makes validator
about 30% faster in certain validation and reduces memory use.
* RdpPatterns.cs : RdpOneOrMore.EmptyTextDeriv() should be "override".
RdpList.EmptyTextDeriv() (which was also virtual incorrectly) was
removed since the code was in wrong assumption.
* Util.cs : debug string now contains data and dataExcept info.
svn path=/trunk/mcs/; revision=55643
Boris Kirzner [Mon, 16 Jan 2006 16:20:35 +0000 (16:20 -0000)]
Drop dependend indexes on column removal.
svn path=/trunk/mcs/; revision=55636
Ankit Jain [Mon, 16 Jan 2006 15:06:09 +0000 (15:06 -0000)]
In ilasm/tests:
* test-int64.il: New. Test for large numeric values.
In ilasm/scanner:
* NumberHelper.cs (NumberHelper.Build): Try parsing numeric value as UInt64 or
double if Int64.Parse fails.
svn path=/trunk/mcs/; revision=55635
Ankit Jain [Mon, 16 Jan 2006 14:25:20 +0000 (14:25 -0000)]
* TypeDef.cs (TypeDef.IComparable): Implement IComparable interface.
* TypeManager.cs (TypeManager.DefineAll): Sort type_table before Define()'ing.
svn path=/trunk/mcs/; revision=55634
Zoltan Varga [Mon, 16 Jan 2006 14:09:54 +0000 (14:09 -0000)]
2006-01-16 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_get_ldelema_ins): Fix handling of 1 dimensional arrays.
Fixes #77271.
svn path=/trunk/mono/; revision=55632
Raja R Harinath [Mon, 16 Jan 2006 14:07:40 +0000 (14:07 -0000)]
In mcs:
Fix #76874.
* ecore.cs (MemberAccess.CheckIntermediateModification): Remove.
(UnboxCast.DoResolveLValue): New. Move CS0445 check from
CheckIntermediateModification.
(FieldExpr.DoResolve): Add new two-argument version that
allows us to resolve the InstanceExpression as an lvalue.
The one-argument variant is now just a wrapper.
(FieldExpr.DoResolveLValue): Use two-argument DoResolve.
Resolve the lhs as an lvalue if the it has a value type.
(FieldExpr.AssignToReadonly): Move CS1648 and CS1650 checks
from Assign.DoResolve.
(PropertyExpr.InstanceResolve): Allow InstanceExpression to be
resolved as an lvalue.
(PropertyExpr.DoResolve): Update.
(PropertyExpr.DoResolveLValue): Resolve the lhs as an lvalue if it
has a value type. Move CS1612 check here from
CheckIntermediateModification.
* assign.cs (Assign.DoResolve): Remove CS1648 and CS1650 checks.
* expression.cs (EmptyExpression.OutAccess): New. Used as the
'right_side' of a ResolveLValue on an 'out' argument.
(EmptyExpression.LValueMemberAccess): New. Used as the
'right_side' of a propagated ResolveLValue on a value type.
(LocalVariableReference.DoResolveBase): Recognize
EmptyExpression.OutAccess and EmptyExpression.LValueMemberAccess.
Add CS1654 check.
(Argument.Resolve): Use EmptyExpression.OutAccess rather than
EmptyExpression.Null.
In tests:
* test-488.cs: New test based on #76874.
In errors:
* cs1654.cs, cs1654-2, cs1656-4: New tests from #76874.
svn path=/trunk/mcs/; revision=55631
Ankit Jain [Mon, 16 Jan 2006 13:16:32 +0000 (13:16 -0000)]
* get.c (get_method_core): Handle a MemberRef with a TypeSpec parent.
Inflate MonoMethod after getting it from mono_get_method_full.
svn path=/trunk/mono/; revision=55630
Ankit Jain [Mon, 16 Jan 2006 11:36:11 +0000 (11:36 -0000)]
In ilasm/tests:
* test-array-2.il: New. Test for methodref to Array's methods.
eg. class test [,]::.ctor (int32, int32)
In ilasm/codegen:
* TypeRef.cs (TypeRef.CreateMethodRef): Return a TypeSpecMethodRef if
this is a modified (eg. []) type.
svn path=/trunk/mcs/; revision=55629
Ankit Jain [Mon, 16 Jan 2006 10:48:43 +0000 (10:48 -0000)]
In ilasm/scanner:
* ILTables.cs (keywords): Add 'bestfit', 'charmaperror', 'on' & 'off'.
In ilasm/parser:
* ILParser.jay (K_BESTFIT):
(K_CHARMAPERROR):
(K_ON):
(K_OFF): New tokens.
(pinv_attr | ..): Add rules for the new tokens.
In class/PEAPI:
* Metadata.cs (PInvokeAttr): Add 'bestfit_on', 'bestfit_off', 'bestfit_mask',
'charmaperror_on' & 'charmaperror_off'.
svn path=/trunk/mcs/; revision=55628
Atsushi Eno [Mon, 16 Jan 2006 10:24:12 +0000 (10:24 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
* CP936.cs :
Implement GetCharCount(); it is too costy to use GetChars()
in GetCharCount(). Removed extra code in GetChars(). Check table
index range before accessing it by index.
* I18N.CJK.Test.cs : added test for bug #77238.
svn path=/trunk/mcs/; revision=55627
Atsushi Eno [Mon, 16 Jan 2006 09:41:40 +0000 (09:41 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
* CP51932.cs :
In GetChars(), insufficient byte is not preserved.
Under 1.x profile it is just discarded.
Under 2.0 profile it is converted to \u30FB.
Fixed GetCharCount() to match GetChars().
* I18N.CJK.Test.cs : added test for bug #77223, #77224 and #77238.
svn path=/trunk/mcs/; revision=55626
Raja R Harinath [Mon, 16 Jan 2006 08:52:23 +0000 (08:52 -0000)]
Rename gtest-235-exe.cs to gtest-235.cs
svn path=/trunk/mcs/; revision=55625
Ankit Jain [Mon, 16 Jan 2006 07:48:48 +0000 (07:48 -0000)]
In ilasm/scanner:
* ILTables.cs (keywords): Add 'uint', this is a native UIntPtr type.
In ilasm/parser:
* ILParser.jay (K_UINT): New token.
(type | K_NATIVE K_UINT): New.
svn path=/trunk/mcs/; revision=55623
Ankit Jain [Mon, 16 Jan 2006 07:41:34 +0000 (07:41 -0000)]
* BaseTypeRef.cs (BaseTypeRef.Resolve): Make this abstract.
(BaseTypeRef.CreateMethodRef):
(BaseTypeRef.CreateFieldRef): Make protected and abstract.
* BaseClassRef.cs (BaseClassRef.Clone): Make this abstract.
Update all derived classes.
* PrimitiveTypeRef.cs (PrimitiveTypeRef.CreateMethodRef):
* GenericTypeInst.cs (GenericTypeInst.CreateMethodRef): Implement, but throw
exception as this method is not used.
svn path=/trunk/mcs/; revision=55622
Atsushi Eno [Mon, 16 Jan 2006 06:06:54 +0000 (06:06 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : handle Ticks. Fixed bug #77252.
* XmlConvertTests.cs : added test for bug #77252.
svn path=/trunk/mcs/; revision=55620
Atsushi Eno [Mon, 16 Jan 2006 05:33:55 +0000 (05:33 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
* CustomDataClassGenerator.cs :
When a DataRelation connects the same table as parent and child,
generate parent row property as BlahRowParent. Fixed bug #77248.
* bug77248.xsd : added.
* TypedDataSetGeneratorTest.cs : added test for bug #77248, but we
cannot enable it since it depends on mcs "installed".
svn path=/trunk/mcs/; revision=55619
Atsushi Eno [Mon, 16 Jan 2006 04:26:00 +0000 (04:26 -0000)]
2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
in mcs:
* typemanager.cs : added IsGenericParameter(). In mcs it always
return false.
* doc.cs : for generic parameters, use GenericParameterPosition,
not FullName.
in gmcs:
* typemanager.cs : added IsGenericParameter(). In gmcs it returns
Type.IsGenericParameter(). Fixed bug #77183.
* doc.cs : it is now identical to doc.cs in mcs.
in tests:
* gtest-xml-1-ref.xml, gtest-xml-1.cs : test for bug #77183.
svn path=/trunk/mcs/; revision=55618