mono.git
13 years agoRevert "mdoc 2.0-only profile build support, take 3!"
Jonathan Pryor [Wed, 22 Sep 2010 20:06:16 +0000 (16:06 -0400)]
Revert "mdoc 2.0-only profile build support, take 3!"

We'll instead just disable the docs build entirely if --with-profile4=no
is specified [future commit, not this one].

13 years agomdoc 2.0-only profile build support, take 3!
Jonathan Pryor [Wed, 22 Sep 2010 17:46:40 +0000 (13:46 -0400)]
mdoc 2.0-only profile build support, take 3!

Further discussion suggested that, even if mdoc 2.0 works, it hasn't gotten
widespread testing (as it's been a 4.0 app for months), so it would be
preferable to keep it as a 4.0 app.

However, it still needs to be built under 2.0 so that a --with-profile4=no
build can...build...without errors.

Thus, the compromise: build mdoc twice, once for each profile.  This will
ensure that *some* version of mdoc is around when mcs/docs is built.

Unfortunately we can't place mdoc into $(per_profile_dirs), as these are
built before $(net_2_0_dirs) (and thus before monodoc, which needs to be
built before mdoc).  Thus the compromise of listing mdoc in *both*
$(net_2_0_dirs) and $(net_4_0_dirs), allowing build dependencies to be met.

13 years agoLocalEndPoint works now for non-blocking connects
Gonzalo Paniagua Javier [Wed, 22 Sep 2010 16:39:07 +0000 (12:39 -0400)]
LocalEndPoint works now for non-blocking connects

We didn't keep the endpoint around for non-blocking connects and later,
when Poll() was called, we didn't have the information. Also 'isbound'
wasn't being set in a few places and UDP sockets needed to be marked as
not connected after a call to Connect() with an Any address.

Removed an old test for Connect(Any) with UDP sockets, since this is
used to disconnect them now.

Fixes bug #640749.

13 years agoThe Hashtable is back
Gonzalo Paniagua Javier [Wed, 22 Sep 2010 15:42:35 +0000 (11:42 -0400)]
The Hashtable is back

But this time it is using a hash code provider and a comparer that
don't invoke the object's methods.
Thanks to Paolo for pointing this out.

13 years agoCall the thread cleanup at the end as it was done before, call it even if handle_remo...
Zoltan Varga [Wed, 22 Sep 2010 15:01:36 +0000 (17:01 +0200)]
Call the thread cleanup at the end as it was done before, call it even if handle_remove () fails.

13 years agoAdd tidbits of documentation to ReaderWriterLockSlim.
Jérémie Laval [Wed, 22 Sep 2010 10:33:55 +0000 (11:33 +0100)]
Add tidbits of documentation to ReaderWriterLockSlim.

13 years agoAlso set readerDoneEvent when exiting an upgradeable lock and reader condition is...
Jérémie Laval [Wed, 22 Sep 2010 10:01:10 +0000 (11:01 +0100)]
Also set readerDoneEvent when exiting an upgradeable lock and reader condition is correct.

It could cause a deadlock when a writer tested the rwlock value before RwRead was removed and another Upgradeable operation happened at the same time.

13 years agoRevert "mdoc 2.0-only profile build support, take 2!"
Marek Habersack [Wed, 22 Sep 2010 09:14:26 +0000 (11:14 +0200)]
Revert "mdoc 2.0-only profile build support, take 2!"

This reverts commit 313633fc67cf1479514019a56143e5ad1643d28f because it breaks the build.

13 years agomdoc 2.0-only profile build support, take 2!
Jonathan Pryor [Wed, 22 Sep 2010 01:38:09 +0000 (21:38 -0400)]
mdoc 2.0-only profile build support, take 2!

Further discussion suggested that, even if mdoc 2.0 works, it hasn't gotten
widespread testing (as it's been a 4.0 app for months), so it would be
preferable to keep it as a 4.0 app.

However, it still needs to be built under 2.0 so that a --with-profile4=no
build can...build...without errors.

Thus, the compromise: build mdoc twice, once for each profile.  This will
ensure that *some* version of mdoc is around when mcs/docs is built.

13 years agoNET_4_0 fixes for System.Uri also apply to Moonlight (SL4)
Sebastien Pouliot [Wed, 22 Sep 2010 01:18:45 +0000 (21:18 -0400)]
NET_4_0 fixes for System.Uri also apply to Moonlight (SL4)

* System/Uri.cs: Update some NET_4_0 to include MOONLIGHT too

13 years agoDo not allow + sign when specifying the port of an URI
Sebastien Pouliot [Tue, 21 Sep 2010 19:51:00 +0000 (15:51 -0400)]
Do not allow + sign when specifying the port of an URI

* System/Uri.cs: A bit more strict when parsing the port number

* Test/System/UriTest2.cs: Add test cases with different, mostly
invalid, ports (e.g. negative, float, too big...)

13 years agoFix some host name checks, delay port check and fix some exceptions messages
Sebastien Pouliot [Tue, 21 Sep 2010 18:50:29 +0000 (14:50 -0400)]
Fix some host name checks, delay port check and fix some exceptions messages

* System/Uri.cs: Fix host name checks. Delay port check until the host
name is checked (compatibility). Fix exception messages to match the
expected values from the NCL tests.

* Test/System/UriTest2.cs: Add some test cases for host names

13 years agoDon't store objects in a Hashtable.
Gonzalo Paniagua Javier [Tue, 21 Sep 2010 21:26:28 +0000 (17:26 -0400)]
Don't store objects in a Hashtable.

Storing the objects in Hashtable causes the GetHashCode() and may be
Equals() methods to be called on the object, which MS does not do.
I'm using a list holding WeakReferences. Not sure if hard references
would be ok.

Fixes bug #640688.

13 years ago[corlib] Prevent BinaryFormatter to throw on missing fields
Andrés G. Aragoneses [Tue, 21 Sep 2010 15:20:34 +0000 (23:20 +0800)]
[corlib] Prevent BinaryFormatter to throw on missing fields

This commit includes unit tests that were run in MS.NET > 2.0.
The old behaviour of MS.NET 1.1 is still included in the patch
as an ONLY_1_1 define, to be backport-friendly to other branches
(but can be removed from now on in next commits, as mono master
doesn't include this profile anymore). Fixes BNC#324144.

13 years agoEnable cardtable for parallel mark-sweep.
Rodrigo Kumpera [Tue, 21 Sep 2010 13:58:35 +0000 (10:58 -0300)]
Enable cardtable for parallel mark-sweep.

* sgen-marksweep.c (mono_sgen_marksweep_init): Enable
cardtable for the parallel collector.

This closes by 50% the gap in binary-tree against the
serial collector.

13 years agoAdd support for break on unverifiable for verifier failure.
Rodrigo Kumpera [Tue, 21 Sep 2010 13:57:30 +0000 (10:57 -0300)]
Add support for break on unverifiable for verifier failure.

* mini.c (mini_method_compile): Break on verification
failure.

13 years agoNew tests.
Marek Safar [Tue, 21 Sep 2010 09:49:31 +0000 (10:49 +0100)]
New tests.

13 years agoDon't restore unused flags
Marek Safar [Tue, 21 Sep 2010 09:42:28 +0000 (10:42 +0100)]
Don't restore unused flags

13 years ago[640722] Consider delegate parameters when checking member hiding
Marek Safar [Tue, 21 Sep 2010 09:33:31 +0000 (10:33 +0100)]
[640722] Consider delegate parameters when checking member hiding

13 years ago[640709] Don't reuse method parameters for base proxy, they can be hoisted
Marek Safar [Tue, 21 Sep 2010 08:09:50 +0000 (09:09 +0100)]
[640709] Don't reuse method parameters for base proxy, they can be hoisted

13 years ago[640699] Reduced compound expressions need explicit conversion too.
Marek Safar [Tue, 21 Sep 2010 07:42:48 +0000 (08:42 +0100)]
[640699] Reduced compound expressions need explicit conversion too.

13 years agoImplement postfix operations involving an implicit user operator.
Marek Safar [Mon, 20 Sep 2010 19:12:46 +0000 (20:12 +0100)]
Implement postfix operations involving an implicit user operator.

13 years agoFix (isolate) internal namespace for Udp transport.
Atsushi Eno [Tue, 21 Sep 2010 07:46:07 +0000 (16:46 +0900)]
Fix (isolate) internal namespace for Udp transport.

13 years agoAdd missing Properties property.
Atsushi Eno [Tue, 21 Sep 2010 06:23:35 +0000 (15:23 +0900)]
Add missing Properties property.

13 years agoImplement IDesignerLoaderHost2 interface.
Carlos Alberto Cortez [Tue, 21 Sep 2010 01:00:04 +0000 (03:00 +0200)]
Implement IDesignerLoaderHost2 interface.

* IDesignerLoaderHost2.cs: New 4.0 interface.

13 years agoAdd IDesignerLoaderHost2.cs to our build.
Carlos Alberto Cortez [Tue, 21 Sep 2010 00:58:53 +0000 (02:58 +0200)]
Add IDesignerLoaderHost2.cs to our build.

* System.dll.sources: Add IDesignerLoaderHost2.cs to our build.

13 years agoAdd IDesignerHostTransactionState.cs and TypeDescriptionProviderService.cs to our...
Carlos Alberto Cortez [Mon, 20 Sep 2010 19:34:35 +0000 (21:34 +0200)]
Add IDesignerHostTransactionState.cs and TypeDescriptionProviderService.cs to our build.

* System.dll.sources: Add IDesignerHostTransactionState.cs and
TypeDescriptionProviderService.cs to our build.

13 years agoImplement IDesignerHostTransactionState.cs
Carlos Alberto Cortez [Mon, 20 Sep 2010 19:32:20 +0000 (21:32 +0200)]
Implement IDesignerHostTransactionState.cs

* IDesignerHostTransactionState.cs: New 4.0 interface.

13 years agoImplement TypeDescriptionProviderService.
Carlos Alberto Cortez [Mon, 20 Sep 2010 19:20:15 +0000 (21:20 +0200)]
Implement TypeDescriptionProviderService.

* TypeDescriptionProviderService.cs: New class.

13 years agoImplement AddProviderTransparent and RemoveProviderTransparent for TypeDescriptor.
Carlos Alberto Cortez [Mon, 20 Sep 2010 11:42:29 +0000 (13:42 +0200)]
Implement AddProviderTransparent and RemoveProviderTransparent for TypeDescriptor.

* TypeDescriptor.cs: Implement AddProviderTransparent and
RemoveProviderTransparent - we only call to the already existing
AddProvider and RemoveProvider methods respectively.

13 years ago[System.Configuration] Added check for SettingProviderAttribute on settings class
Carsten Schlote [Sun, 22 Aug 2010 00:31:54 +0000 (02:31 +0200)]
[System.Configuration] Added check for SettingProviderAttribute on settings class

There is no checkfor the SettingProviderAttribute attached to a Settings class.
.NET uses this to replace the default LocalSettingsProvider with your
own SettingsProvider.

The patch adds this feature.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years ago[System.Configuration] Fixed GetProductName() function
Carsten Schlote [Sun, 22 Aug 2010 13:54:44 +0000 (15:54 +0200)]
[System.Configuration] Fixed GetProductName() function

Added missing check for empty strongname. This case is now handled the
same way as a missing strongname.

GetProductName() now correctly uses _Url_ and assembly.EscapedCodeBase
for its output.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years ago[System.Configuration] Fixed GetEvidenceHash() function to produce valid filenames
Carsten Schlote [Sun, 22 Aug 2010 13:50:52 +0000 (15:50 +0200)]
[System.Configuration] Fixed GetEvidenceHash() function to produce valid filenames

The previous implementation creates eventually invalid filenames in a
random fashion on linux, mac, windows by having '/' or '\' chars
in the base64 output. As a result you can't save or retrieve your settings
due to filesystem errors.

This patch changes the output to plain hex values. This is a bit longer
then a base64 string, but also 100% filesystem safe.

Might

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years agoHad an issue where the linklabel was clicked, the form was redrawn with some changes...
acken [Mon, 20 Sep 2010 21:08:39 +0000 (05:08 +0800)]
Had an issue where the linklabel was clicked, the form was redrawn with some changes and some internal behavior called the OnGotFocus where sorted_links now was null and focused_index was 0. Don't know wheter that is wrong but solved the issue with a nullcheck

13 years agoput the x11 devel package back in buildrequires and a couple other spec fixes
Andrew Jorgensen [Mon, 20 Sep 2010 23:23:51 +0000 (17:23 -0600)]
put the x11 devel package back in buildrequires and a couple other spec fixes

13 years agoUse new verifier function to lazily check.
Rodrigo Kumpera [Mon, 20 Sep 2010 22:26:12 +0000 (19:26 -0300)]
Use new verifier function to lazily check.

* class.c: The typeref table is now lazily verified thanks
to some awesome obfuscators that love to produce junk.
So it has to be checked everytime before usage instead of
at loading time.

13 years agoAdd function to validate an individual row in the typeref table.
Rodrigo Kumpera [Mon, 20 Sep 2010 22:22:54 +0000 (19:22 -0300)]
Add function to validate an individual row in the typeref table.

* metadata-verify.c: Add mono_verifier_verify_typeref_row
that checks the metadata of a single row. Fix code around
to couple with this new function.

* verify-internals.h: Export it.

13 years agoUri.LocalPath is unescaped - even if original URI is escaped
Sebastien Pouliot [Mon, 20 Sep 2010 20:52:19 +0000 (16:52 -0400)]
Uri.LocalPath is unescaped - even if original URI is escaped

* System/Uri.cs: Unescape LocalPath

* Test/System/UriTest2.cs: Add test case where an original URI contains
an escaped path.

13 years agoUri.OriginalString is a bit misleading since it's computed for merged URI
Sebastien Pouliot [Mon, 20 Sep 2010 20:23:31 +0000 (16:23 -0400)]
Uri.OriginalString is a bit misleading since it's computed for merged URI

* System/Uri.cs: Compute the expected OriginalString when an absolute
URI is merged with a (String or Uri) relative Uri to create a new Uri
instance. Keep original fragment around for ToString

* Test/System/UriTest2.cs: Add test cases for Fragment and Query when
special characters are used. Most of them are not escaped in ToString
* Test/System/UriTest3.cs: Uncomment an Assert that is now fixed.

13 years agoActual exception message vary wrt scheme
Sebastien Pouliot [Mon, 20 Sep 2010 18:35:43 +0000 (14:35 -0400)]
Actual exception message vary wrt scheme

* System/Uri.cs: Exception message does not specify Authority when a
file:// URI is parsed

13 years agoFix different between an empty Uri.UserInfo and the absence of username/password
Sebastien Pouliot [Mon, 20 Sep 2010 18:08:12 +0000 (14:08 -0400)]
Fix different between an empty Uri.UserInfo and the absence of username/password

* System/Uri.cs: An empty username/password is treated differently than
having none, i.e. the '@' character is kept present in the URI

* Test/System/UriTest2.cs: Add test case with an empty UserInfo

13 years agoOnly return true on Windows for Uri.IsUnc on file:// URI
Sebastien Pouliot [Mon, 20 Sep 2010 17:36:59 +0000 (13:36 -0400)]
Only return true on Windows for Uri.IsUnc on file:// URI

* System/Uri.cs: IsUnc returns true for file:/// URI on Windows only.
This makes us closer to Mac-behavior (see NCL tests) since the other
properties, e.g. LocalPath, match this. Also fix some exception text
where the values are checked by some test cases.

* Test/System/UriTest.cs: Adjust some test cases wrt Win32
* Test/System/UriTest2.cs: Adjust a test case wrt Win32

13 years agoRemove NET_2_0 and ONLY_1_1 from UriTest.cs (its already confusing enough ;-)
Sebastien Pouliot [Mon, 20 Sep 2010 15:27:36 +0000 (11:27 -0400)]
Remove NET_2_0 and ONLY_1_1 from UriTest.cs (its already confusing enough ;-)

* Test/System/UriTest.cs: Remove NET_2_0 and ONLY_1_1

13 years agoFix merging relative URI that looks like complete URI (e.g. scheme)
Sebastien Pouliot [Mon, 20 Sep 2010 14:43:19 +0000 (10:43 -0400)]
Fix merging relative URI that looks like complete URI (e.g. scheme)

* System/Uri.cs: Fix merging URI where a relative URI contains a ':'
but no valid scheme

* Test/System/UriTest2.cs: Add test cases where some bad (if absolute)
URI are valid when merged (as relative) with an absolute URI

13 years agoReport the broken type name instead of assembly's.
Rodrigo Kumpera [Mon, 20 Sep 2010 17:53:39 +0000 (14:53 -0300)]
Report the broken type name instead of assembly's.

13 years agoUse List<Exception> instead of ArrayList to make things prettier.
Rodrigo Kumpera [Mon, 20 Sep 2010 17:44:20 +0000 (14:44 -0300)]
Use List<Exception> instead of ArrayList to make things prettier.

13 years agoFix AssemblyBuilder::GetTypes () with unfinished types.
Rodrigo Kumpera [Mon, 20 Sep 2010 17:29:50 +0000 (14:29 -0300)]
Fix AssemblyBuilder::GetTypes () with unfinished types.

* AssemblyBuilder.cs (GetTypes): Raise ReflectionTypeLoadException
if any type was not finished.

* AssemblyBuilderTest.cs: Add test for GetTypes () and incomplete
TypeBuilders'.

Fixes #640288

13 years agoFirst pass at profiler hooks in sgen.
Paolo Molaro [Mon, 20 Sep 2010 16:58:42 +0000 (18:58 +0200)]
First pass at profiler hooks in sgen.

* sgen-gc.c, sgen-los.c: added hooks for the important GC events.
Update some of the GC-related performance counters, too.

13 years agoInclude TargetFrameworkAttribute in monotouch and monodroid as well
Geoff Norton [Mon, 20 Sep 2010 16:31:42 +0000 (12:31 -0400)]
Include TargetFrameworkAttribute in monotouch and monodroid as well

13 years agoDon't check inferred dynamic type arguments against best candidate constraints.
Marek Safar [Mon, 20 Sep 2010 15:08:46 +0000 (16:08 +0100)]
Don't check inferred dynamic type arguments against best candidate constraints.

13 years agoMore missing conversions between object and dynamic
Marek Safar [Mon, 20 Sep 2010 11:22:57 +0000 (12:22 +0100)]
More missing conversions between object and dynamic

13 years agoIgnor test since its fix has been reverted
Jb Evain [Mon, 20 Sep 2010 15:12:04 +0000 (17:12 +0200)]
Ignor test since its fix has been reverted

13 years agoRevert "[Fix] Fix the default binder when selecting params methods."
Jb Evain [Mon, 20 Sep 2010 15:04:58 +0000 (17:04 +0200)]
Revert "[Fix] Fix the default binder when selecting params methods."

This reverts commit 6a7443d8089c92f722d87c81f6c7d22c2c0deafb.

13 years ago[monodis] Ensure we don't try to free uninitialized memory.
Alan McGovern [Mon, 20 Sep 2010 13:03:42 +0000 (14:03 +0100)]
[monodis] Ensure we don't try to free uninitialized memory.

13 years ago[640285] Initialize this in current block instead of original block
Marek Safar [Mon, 20 Sep 2010 08:34:07 +0000 (09:34 +0100)]
[640285] Initialize this in current block instead of original block

13 years agoParse secondary static like expression as a non-cast
Marek Safar [Mon, 20 Sep 2010 08:04:25 +0000 (09:04 +0100)]
Parse secondary static like expression as a non-cast

13 years agoAvoid a superfluous copy.
Rodrigo Kumpera [Thu, 16 Sep 2010 20:44:13 +0000 (17:44 -0300)]
Avoid a superfluous copy.

        * sgen-marksweep.c (major_scan_card_table): Avoid an extra
        copy under overlapping card.

13 years agoCleanup definitions and clearly states what are the tunables.
Rodrigo Kumpera [Thu, 16 Sep 2010 20:33:35 +0000 (17:33 -0300)]
Cleanup definitions and clearly states what are the tunables.

* sgen-cardtable.h: Auto detect the need for
SGEN_HAVE_OVERLAPPING_CARDS.

* sgen-cardtable.h: Add CARD_TABLE_BITS and make CARD_COUNT_BITS
depend on it.

* sgen-cardtable.h: Document which and how each tunable affect
runtime of sgen.

13 years agoFix los scanning with overlapping cards.
Rodrigo Kumpera [Thu, 16 Sep 2010 20:32:32 +0000 (17:32 -0300)]
Fix los scanning with overlapping cards.

* sgen-cardtable.c (sgen_cardtable_scan_object): If the
card range overflows the cardtable, split the scanning in
two steps.

13 years agoUse card pointer as induction variable.
Rodrigo Kumpera [Thu, 16 Sep 2010 19:43:11 +0000 (16:43 -0300)]
Use card pointer as induction variable.

* sgen-cardtable.c (sgen_cardtable_scan_object): Use
the card pointer as the loop induction variable so
it's easier handle overlapping cards and overflow.

13 years agoFix overlapping support for copy/clear functions.
Rodrigo Kumpera [Thu, 16 Sep 2010 18:26:23 +0000 (15:26 -0300)]
Fix overlapping support for copy/clear functions.

* sgen-cardtable.c: The copy/clear functions may write
into invalid memory if a block lives across the edges
of the cardtable address range.

13 years agoFix OP_CARDTABLE to support overlapping cards.
Rodrigo Kumpera [Thu, 16 Sep 2010 17:11:18 +0000 (14:11 -0300)]
Fix OP_CARDTABLE to support overlapping cards.

* cpu-x86.md: Increase the max size of OP_CARDTABLE.

* mini-x86.c (mono_arch_output_basic_block): If a mask
is returned, emit code for it.

13 years agoDocument some cardtable requirements and add an assert.
Rodrigo Kumpera [Wed, 15 Sep 2010 23:50:53 +0000 (20:50 -0300)]
Document some cardtable requirements and add an assert.

13 years agoAdd store_mem_imm to the x86 machine description. Fixes #640377.
Zoltan Varga [Sun, 19 Sep 2010 17:43:52 +0000 (19:43 +0200)]
Add store_mem_imm to the x86 machine description. Fixes #640377.

13 years agoMove the setting of mono_lmf, mono_lmf_addr and mono_jit_tls into separate functions...
Zoltan Varga [Sat, 18 Sep 2010 05:50:19 +0000 (07:50 +0200)]
Move the setting of mono_lmf, mono_lmf_addr and mono_jit_tls into separate functions to reduce the number of #ifdefs.

13 years agoMake MonoThreadCleanupFunc take an InternalThread instead of a Thread.
Zoltan Varga [Sat, 18 Sep 2010 05:47:37 +0000 (07:47 +0200)]
Make MonoThreadCleanupFunc take an InternalThread instead of a Thread.
Move its definition to threads-types.h since it is not public API. Use this
to remove the workaround in thread_cleanup () so the JIT info for threads is
properly cleaned up at shutdown.

13 years agoFix escaping on relative URI
Sebastien Pouliot [Fri, 17 Sep 2010 19:26:33 +0000 (15:26 -0400)]
Fix escaping on relative URI

* System/Uri.cs: While parsing only escape the path for absolute URI.
Do not unescape relative URI in ToString and avoid calling
AppendQueryAndFragment on them (relative) since both are not parsed as
such.

* Test/System/UriTest2.cs: Add test case to show that a relative URI is
NOT escaped by ToString

13 years agoAdd support for IPv6 in System.Uri.DnsSafeHost
Sebastien Pouliot [Fri, 17 Sep 2010 18:10:25 +0000 (14:10 -0400)]
Add support for IPv6 in System.Uri.DnsSafeHost

* System/Uri.cs: Fix DnsSafeHost for IPv6 addresses, removing the []
brackets and adding, when available, the scope id

* Test/System/UriTest2.cs: Add DnsSafeHost test cases for IPv6 address,
one without scope id, another with a scope id

13 years agoFix Uri when a colon ':' is not followed by a port number
Sebastien Pouliot [Fri, 17 Sep 2010 15:47:20 +0000 (11:47 -0400)]
Fix Uri when a colon ':' is not followed by a port number

* System/Uri.cs: Fix parsing the port/host when a ':' is present without
a port number on non-file:// URI

* Test/System/UriTest2.cs: Add test cases where an URI contains a ':'
but is not followed by a port number

13 years agoFix typo (host vs hostName) in one of UriBuilder ctor
Sebastien Pouliot [Fri, 17 Sep 2010 13:57:02 +0000 (09:57 -0400)]
Fix typo (host vs hostName) in one of UriBuilder ctor

* System/UriBuilder.cs: Fix typo from previous change

* Test/System/UriBuilderTest.cs: Add regression test for that .ctor

13 years agoUriBuilder is more forgiving (than Uri) when parsing string uri
Sebastien Pouliot [Fri, 17 Sep 2010 13:17:31 +0000 (09:17 -0400)]
UriBuilder is more forgiving (than Uri) when parsing string uri

* System/UriBuilder.cs: Refactor constructors to share Initialization
methods. Allow a second chance to .ctor(string) to parse an URI by
assuming it's an HTTP URI

* Test/System/UriBuilderTest.cs: Add test case with string URI that do
not provide a scheme - UriBuilder will default them to http:// even if
Uri would not parse them

13 years agoFix case where 'incomplete' IPv6 address are used in UriBuilder
Sebastien Pouliot [Fri, 17 Sep 2010 12:43:39 +0000 (08:43 -0400)]
Fix case where 'incomplete' IPv6 address are used in UriBuilder

* System/UriBuilder.cs: Fix Host property to add the missing brackets
on IPv6 address (if missing from input)

* Test/System/UriBuilderTest.cs: Add test cases with incomplete IPv6
addresses. Add test case with a relative Uri used in UriBuilder ctor

13 years agoUpdate UriBuilder.Path once the Uri has been created
Sebastien Pouliot [Fri, 17 Sep 2010 11:55:39 +0000 (07:55 -0400)]
Update UriBuilder.Path once the Uri has been created

* System/UriBuilder.cs: Update UriBuilder.Path once the Uri has been
created using Uri.AbsolutePath

* Test/System/UriBuilderTest.cs: Add test case with path missing the
initial / which shows the UriBuilder.Path property is being updated
after the creation of the Uri instance.

13 years ago3.5 version of Sys.Web.Ext is gone
Andrew Jorgensen [Fri, 17 Sep 2010 18:21:44 +0000 (12:21 -0600)]
3.5 version of Sys.Web.Ext is gone

13 years agoProtocolMapping needed config section, default items and support in ServiceHostBase.
Atsushi Eno [Fri, 17 Sep 2010 15:23:37 +0000 (00:23 +0900)]
ProtocolMapping needed config section, default items and support in ServiceHostBase.

13 years agoRevert my last patch
Gonzalo Paniagua Javier [Fri, 17 Sep 2010 14:52:31 +0000 (10:52 -0400)]
Revert my last patch

Not only it didn't fix anything but it broke a test.

13 years agoUser operators are resolved in a batch, pick up the foremost
Marek Safar [Fri, 17 Sep 2010 14:45:12 +0000 (15:45 +0100)]
User operators are resolved in a batch, pick up the foremost

13 years agoMake the dynamic sites container name really unique
Marek Safar [Fri, 17 Sep 2010 14:41:19 +0000 (15:41 +0100)]
Make the dynamic sites container name really unique

13 years agoFixes preference of a user-defined conversion operators over lifted conversion operators
Marek Safar [Fri, 17 Sep 2010 12:36:53 +0000 (13:36 +0100)]
Fixes preference of a user-defined conversion operators over lifted conversion operators

13 years agoFixes cloning of a variable declarator.
Marek Safar [Fri, 17 Sep 2010 10:16:43 +0000 (11:16 +0100)]
Fixes cloning of a variable declarator.

13 years agoImplement predefined binary enum operators involving an implicit user conversion
Marek Safar [Fri, 17 Sep 2010 10:06:40 +0000 (11:06 +0100)]
Implement predefined binary enum operators involving an implicit user conversion

13 years agoRecover wrong invalid character constants.
Marek Safar [Thu, 16 Sep 2010 12:31:52 +0000 (13:31 +0100)]
Recover wrong invalid character constants.

13 years agoChanged mode of a few files from 755 to 644
Marek Habersack [Fri, 17 Sep 2010 08:33:07 +0000 (10:33 +0200)]
Changed mode of a few files from 755 to 644

13 years agoFix typo in Makefile causing build breakage
Rolf Bjarne Kvinge [Fri, 17 Sep 2010 08:32:27 +0000 (10:32 +0200)]
Fix typo in Makefile causing build breakage

13 years agoAdd working .svc handler in 4.0 web.config, fix standard endpoint handling and get...
Atsushi Eno [Fri, 17 Sep 2010 07:00:16 +0000 (16:00 +0900)]
Add working .svc handler in 4.0 web.config, fix standard endpoint handling and get xsp4 working.

13 years agoMerge branch 'master' of github.com:mono/mono
Atsushi Eno [Fri, 17 Sep 2010 03:34:58 +0000 (12:34 +0900)]
Merge branch 'master' of github.com:mono/mono

13 years agoMore .spec reorgs
Andrew Jorgensen [Thu, 16 Sep 2010 23:12:12 +0000 (17:12 -0600)]
More .spec reorgs

13 years agoOnly build one version of libmonoruntimemoon.la (the convenience lib)
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 22:18:40 +0000 (00:18 +0200)]
Only build one version of libmonoruntimemoon.la (the convenience lib)

13 years agoAdd a configure option to disable building the shared libmono library
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 22:17:39 +0000 (00:17 +0200)]
Add a configure option to disable building the shared libmono library

13 years agoDisable assembly remapping for moonlight
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 10:20:01 +0000 (12:20 +0200)]
Disable assembly remapping for moonlight

13 years agoAdd configure option for disabling assembly remapping
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 10:19:28 +0000 (12:19 +0200)]
Add configure option for disabling assembly remapping

13 years agoUpdate UriBuilder.Host once the Uri has been created
Sebastien Pouliot [Thu, 16 Sep 2010 21:29:55 +0000 (17:29 -0400)]
Update UriBuilder.Host once the Uri has been created

* System/UriBuilder.cs: Update UriBuilder.Host once the Uri has been
created

* Test/System/UriBuilderTest.cs: Add test case with IPv6 host (address)
which shows the UriBuilder.Host property is being updated after the
creation of the Uri instance.

13 years agoFix known (NotWorking) test cases for UriBuilder and drop NET_2_0 defines
Sebastien Pouliot [Thu, 16 Sep 2010 20:35:47 +0000 (16:35 -0400)]
Fix known (NotWorking) test cases for UriBuilder and drop NET_2_0 defines

* System/Uri.cs: Add EscapeCommonHexBracketsQuery constant since ? also
needs to be escaped from UriBuilder
* System/UriBuilder.cs: Fix Equals (escaping '?') and UserInfo. Fix NRE
in ctor that was fixed in FX4. Drop NET_2_0 defines.

* Test/System/UriBuilderTest.cs: Drop NET_2_0 defines and add new ones
for NET_4_0. Add more asserts in the test cases that were failing.

13 years agoFix line endings
Sebastien Pouliot [Thu, 16 Sep 2010 20:17:39 +0000 (16:17 -0400)]
Fix line endings

* System/UriBuilder.cs: Fix line endings

13 years agoFix path reduction when %2e are used in an URI
Sebastien Pouliot [Thu, 16 Sep 2010 18:35:32 +0000 (14:35 -0400)]
Fix path reduction when %2e are used in an URI

* System/Uri.cs (Reduce): Process %2E while reducing a path. Avoid, when
possible, the creation of StringBuilder and replace ArrayList with
generics

* Test/System/UriTest2.cs: Add test case where %2e and %2E are used

13 years agoFix (existing and) remaining NotWorking tests for System.Uri
Sebastien Pouliot [Thu, 16 Sep 2010 15:49:21 +0000 (11:49 -0400)]
Fix (existing and) remaining NotWorking tests for System.Uri

* System/Uri.cs: Fix TryCreate overloads wrt NotWorking unit tests

* Test/System/UriTest2.cs: Remove NET_2_0 and ONLY_1_1 defines from tests
* Test/System/UriTest3.cs: Remove NET_2_0 and [Category("NotWorking")]
from tests. Merge MakeRelativeUri_Uri_Null_[MS|Mono] together since the
(reported) issue was fixed in NET_4_0

13 years agoFixes to System.Uri wrt 'file' scheme
Sebastien Pouliot [Thu, 16 Sep 2010 14:37:50 +0000 (10:37 -0400)]
Fixes to System.Uri wrt 'file' scheme

* System/Uri.cs: Fix 'file' URI since they can't have a query

* Test/System/UriTest2.cs: Add new test case for 'file' URIs and
some asserts on "custom" URI (which do support queries)

13 years agoFix typo. It has been there for 4 years.
Gonzalo Paniagua Javier [Thu, 16 Sep 2010 17:12:41 +0000 (13:12 -0400)]
Fix typo. It has been there for 4 years.

Why on earth this wasn't found earlier? $20 reward to whoever gives a
plausible explanation.

13 years agoBuild monodoc before mdoc.
Jonathan Pryor [Thu, 16 Sep 2010 17:09:56 +0000 (13:09 -0400)]
Build monodoc before mdoc.

mdoc deps on monodoc.  Doh!

13 years agoMake mdoc a 2.0 app, not a 4.0 app.
Jonathan Pryor [Thu, 16 Sep 2010 16:23:55 +0000 (12:23 -0400)]
Make mdoc a 2.0 app, not a 4.0 app.

The problem is build sanity: it's possible to disable the 4.0 profile
(--with-profile4=no) while not disabling documentation building
(--with-mcs-docs=yes is the default).  The result would be a 4.0-less
build, and thus no mdoc, and thus no mdoc to assemble the documentation,
and thus a build break as we attempted to use an app during the build
which didn't exist.

Oops.

mdoc doesn't need to be a 4.0 app anyway...