mono.git
13 years agoAdd simplex Discovery contract interfaces.
Atsushi Eno [Mon, 16 Aug 2010 06:09:29 +0000 (15:09 +0900)]
Add simplex Discovery contract interfaces.

13 years ago[fix] #625214: Allow DataGridView navigation even if ScrollBars is None.
Carlos Alberto Cortez [Sun, 15 Aug 2010 22:55:19 +0000 (00:55 +0200)]
[fix] #625214: Allow DataGridView navigation even if ScrollBars is None.

* DataGridView.cs: When refreshing the scrolling info,
set the values for the internal scrollbars even if we are forced
to not display them, since they are used to compute the
navigation, which should be available *always*.

13 years agoNew Test for #620326.
Thomas Goldstein [Sun, 15 Aug 2010 19:20:04 +0000 (21:20 +0200)]
New Test for #620326.

* ListControlTest.cs: New test for #620326 - actual values being
passed in the Format event.

13 years ago[fix] #620326: Use the actual value of the items in the Format event.
Thomas Goldstein [Sun, 15 Aug 2010 19:17:26 +0000 (21:17 +0200)]
[fix] #620326: Use the actual value of the items in the Format event.

* ListControl.cs: Use the actual value of the items in the
Format event, just as .net does. Fixes #620326.

13 years agoAugment our ListView selection events test.
Carlos Alberto Cortez [Sun, 15 Aug 2010 16:17:02 +0000 (18:17 +0200)]
Augment our ListView selection events test.

* ListViewEventTest.cs: Another test for items added using AddRange
that are already selected.

13 years agoNew test case for #621749.
Mark Strobert [Sun, 15 Aug 2010 16:07:44 +0000 (18:07 +0200)]
New test case for #621749.

* ListViewEventTest.cs: New test case for #621749,
for already selected items being inserted to
ListViewItemCollection.

13 years ago[fix] #621749: Update selection when adding/inserting a ListViewItem.
Carlos Alberto Cortez [Sun, 15 Aug 2010 15:50:08 +0000 (17:50 +0200)]
[fix] #621749: Update selection when adding/inserting a ListViewItem.

* ListViewItem.cs:
* ListView.cs: Force an update in the selection if a new
added/inserted item to ListViewItemCollection is already
selected.

13 years agoRemove all NET_2_0 directives for ListViewItem.
Carlos Alberto Cortez [Sun, 15 Aug 2010 10:31:24 +0000 (12:31 +0200)]
Remove all NET_2_0 directives for ListViewItem.

* ListViewItem.cs: Remove all the NET_2_0 directives since
we don't need them anymore.

13 years ago[fix] #621475: Properly clear selection when setting Text to empty.
Carlos Alberto Cortez [Sat, 14 Aug 2010 11:43:06 +0000 (13:43 +0200)]
[fix] #621475: Properly clear selection when setting Text to empty.

* TextBoxBase.cs: In Text property always call
Document.SetSelectionToCaret just like we do in other places
calling Document.Empty(). This way we don't leave our selection
stuff in an inconsistent state.

13 years agoFormatting
Gonzalo Paniagua Javier [Fri, 13 Aug 2010 21:27:56 +0000 (17:27 -0400)]
Formatting

13 years ago[Fix] Keep looping in ReadKey until we get the actual right EventType, fixing bug...
Alex Fort [Thu, 12 Aug 2010 20:23:52 +0000 (16:23 -0400)]
[Fix] Keep looping in ReadKey until we get the actual right EventType, fixing bug #322414 and related.

Instead of a do/while loop, just keep looping until both KeyDown is true, and EventType == 1. It seems that sometimes when EventType == 1, KeyDown wasn't true but it would stop looping anyway. This caused mouse presses, context menu changes, and focus changes to register as key presses. With the new infinite loop, only actual key presses will be registered.

13 years agoforgot to add some files.
Atsushi Eno [Fri, 13 Aug 2010 19:46:43 +0000 (04:46 +0900)]
forgot to add some files.

13 years ago[627488] Inflate inherited base method constraints with MVAR arguments
Marek Safar [Fri, 13 Aug 2010 18:41:41 +0000 (19:41 +0100)]
[627488] Inflate inherited base method constraints with MVAR arguments

13 years agoMerge branch 'marek'
Marek Safar [Fri, 13 Aug 2010 18:27:26 +0000 (19:27 +0100)]
Merge branch 'marek'

13 years agoRemove Mono.Options.dll dependency
Marek Safar [Fri, 13 Aug 2010 18:26:42 +0000 (19:26 +0100)]
Remove Mono.Options.dll dependency

13 years agoMerge branch 'marek'
Marek Safar [Fri, 13 Aug 2010 17:06:28 +0000 (18:06 +0100)]
Merge branch 'marek'

13 years agoFixed crlf issue
Marek Safar [Fri, 13 Aug 2010 17:05:58 +0000 (18:05 +0100)]
Fixed crlf issue

13 years agoMerge branch 'master' of github.com:mono/mono
Marek Safar [Fri, 13 Aug 2010 17:05:03 +0000 (18:05 +0100)]
Merge branch 'master' of github.com:mono/mono

13 years agoFixed crlf issue
Marek Safar [Fri, 13 Aug 2010 17:04:32 +0000 (18:04 +0100)]
Fixed crlf issue

13 years agoAdd ccrewrite manpage to spec
Andrew Jorgensen [Fri, 13 Aug 2010 16:59:24 +0000 (10:59 -0600)]
Add ccrewrite manpage to spec

13 years agoClean up lf
Marek Safar [Fri, 13 Aug 2010 16:57:08 +0000 (17:57 +0100)]
Clean up lf

13 years agoNew test
Marek Safar [Fri, 13 Aug 2010 16:48:29 +0000 (17:48 +0100)]
New test

13 years agoNot all nested generic types are allowed for typeof expression.
Marek Safar [Fri, 13 Aug 2010 16:33:43 +0000 (17:33 +0100)]
Not all nested generic types are allowed for typeof expression.

13 years agoCheck inaccessible type arguments
Marek Safar [Fri, 13 Aug 2010 16:28:36 +0000 (17:28 +0100)]
Check inaccessible type arguments

13 years agoAdd ccrewrite wrapper
Andrew Jorgensen [Fri, 13 Aug 2010 15:53:05 +0000 (09:53 -0600)]
Add ccrewrite wrapper

13 years ago[xbuild] Fix a string format issue with guid.
Ankit Jain [Fri, 13 Aug 2010 16:07:24 +0000 (21:37 +0530)]
[xbuild] Fix a string format issue with guid.

Make sure that the format string doesn't have guid in
"{...}" format or String.Format gets confused.

13 years ago[xbuild] Handle references to vc*proj projects.
Ankit Jain [Fri, 13 Aug 2010 16:02:47 +0000 (21:32 +0530)]
[xbuild] Handle references to vc*proj projects.

If a project references an unsupported project, like a .vcproj or
.vcxproj, then raise the appropriate warning for that.

13 years agoDisable two faulty tests that timeout the build bot.
Jérémie Laval [Fri, 13 Aug 2010 16:15:26 +0000 (17:15 +0100)]
Disable two faulty tests that timeout the build bot.

13 years agoMove NET_4_0 define checks at the right position under the licence text
Jérémie Laval [Fri, 13 Aug 2010 14:32:16 +0000 (15:32 +0100)]
Move NET_4_0 define checks at the right position under the licence text

13 years agoongoing DiscoveryEndpoint work.
Atsushi Eno [Fri, 13 Aug 2010 15:03:36 +0000 (00:03 +0900)]
ongoing DiscoveryEndpoint work.

13 years agoOnly do a null check in LDFLDA if the address is an object reference.
Zoltan Varga [Fri, 13 Aug 2010 14:53:29 +0000 (16:53 +0200)]
Only do a null check in LDFLDA if the address is an object reference.

13 years agoMake reflection lazier.
Rodrigo Kumpera [Thu, 12 Aug 2010 23:07:34 +0000 (20:07 -0300)]
Make reflection lazier.

* reflection.c (mono_reflection_get_type_internal): Don't
mono_class_init the resulting classes.

13 years agoAvoid initing the class in more cases. Cleanup error handling a bit.
Rodrigo Kumpera [Thu, 12 Aug 2010 21:35:24 +0000 (18:35 -0300)]
Avoid initing the class in more cases. Cleanup error handling a bit.

* class.c (mono_class_get_methods): Don't mono_class_init
the type.

* class.c (mono_class_get_properties): Ditto.

* class.c (mono_class_get_events): Ditto.

* icall.c (ves_icall_Type_GetMethodsByName): Ditto.

* icall.c (ves_icall_Type_GetConstructors_internal): Ditto.

* icall.c (ves_icall_Type_GetPropertiesByName): Don't
mono_class_init the types. Move error handling to a label
at the end of the function.

* icall.c (ves_icall_Type_GetEvents_internal): Ditto.

13 years agoAdded ccrewrite.1 man page to makefile
Chris Bacon [Fri, 13 Aug 2010 14:24:42 +0000 (22:24 +0800)]
Added ccrewrite.1 man page to makefile

13 years agoAdded man page for ccrewrite
Chris Bacon [Fri, 13 Aug 2010 13:56:10 +0000 (21:56 +0800)]
Added man page for ccrewrite

13 years agoChange #if line position in BarrierPostPhaseException to be below licence text
Jérémie Laval [Fri, 13 Aug 2010 13:36:12 +0000 (14:36 +0100)]
Change #if line position in BarrierPostPhaseException to be below licence text

13 years agoAdd BarrierPostPhaseException and use it when executing post-phase delegate in Barrier.
Jérémie Laval [Fri, 13 Aug 2010 13:18:16 +0000 (14:18 +0100)]
Add BarrierPostPhaseException and use it when executing post-phase delegate in Barrier.

13 years agoAdd ccrewrite script
Marek Safar [Fri, 13 Aug 2010 11:46:08 +0000 (12:46 +0100)]
Add ccrewrite script

13 years agoMerge CodeContracts
Marek Safar [Fri, 13 Aug 2010 11:33:41 +0000 (12:33 +0100)]
Merge CodeContracts

13 years agoMerge remote branch 'chrisdunelm/master'
Marek Safar [Fri, 13 Aug 2010 11:33:00 +0000 (12:33 +0100)]
Merge remote branch 'chrisdunelm/master'

13 years agoAdd BOOTSTRAP_NET_4_0 define check in LazyInitializer (since it's now used in ManualR...
Jérémie Laval [Fri, 13 Aug 2010 11:00:05 +0000 (12:00 +0100)]
Add BOOTSTRAP_NET_4_0 define check in LazyInitializer (since it's now used in ManualResetEventSlim).

13 years agoAdd a null check to LDFLDA, the spec requires it.
Zoltan Varga [Fri, 13 Aug 2010 10:36:18 +0000 (12:36 +0200)]
Add a null check to LDFLDA, the spec requires it.

13 years agoPort ConcurrentBag to use ConcurrentDictionary.
Jérémie Laval [Fri, 13 Aug 2010 10:30:02 +0000 (11:30 +0100)]
Port ConcurrentBag to use ConcurrentDictionary.

ConcurrentDictionary is now used to store the per-thread CyclicDeque instances instead of maintaining a growing array ourselves. Add hints are still used.

13 years agoCorrect typo in Barrier test fixture name
Jérémie Laval [Fri, 13 Aug 2010 10:29:24 +0000 (11:29 +0100)]
Correct typo in Barrier test fixture name

13 years agoPort Barrier to use ManualResetEventSlim for its waiting operations.
Jérémie Laval [Fri, 13 Aug 2010 10:28:08 +0000 (11:28 +0100)]
Port Barrier to use ManualResetEventSlim for its waiting operations.

It replaces the simpler spinning on a boolean value while still being used in the same copying way in the algorithm.

13 years agoPort CountdownEvent to use a ManualResetEventSlim for all its waiting operations...
Jérémie Laval [Fri, 13 Aug 2010 10:26:13 +0000 (11:26 +0100)]
Port CountdownEvent to use a ManualResetEventSlim for all its waiting operations and use it as the native handle too.

13 years agoForce usage of 2 threads in one of ManualResetEventSlim unit test. It has no sense...
Jérémie Laval [Fri, 13 Aug 2010 10:25:10 +0000 (11:25 +0100)]
Force usage of 2 threads in one of ManualResetEventSlim unit test. It has no sense for more than that.

13 years agoLazy initialization of ManualResetEventSlim's underlying kernel object.
Jérémie Laval [Fri, 13 Aug 2010 10:23:38 +0000 (11:23 +0100)]
Lazy initialization of ManualResetEventSlim's underlying kernel object.

It avoids allocating kernel ressources when the standard fast path is used which is the main goal of this type.

13 years agoImplicit conversions between dynamic and object is allowed for managed
Marek Safar [Fri, 13 Aug 2010 10:15:37 +0000 (11:15 +0100)]
Implicit conversions between dynamic and object is allowed for managed
types only

13 years ago[Fix] emit the proper metadata version for net_4_0 assemblies
jbevain [Fri, 13 Aug 2010 10:11:45 +0000 (12:11 +0200)]
[Fix] emit the proper metadata version for net_4_0 assemblies

13 years agoRemoved code that is no longer required due to change to Cecil 0.6.*
Chris Bacon [Fri, 13 Aug 2010 09:14:57 +0000 (10:14 +0100)]
Removed code that is no longer required due to change to Cecil 0.6.*

13 years agoongoing announcement and discovery work as well as several bugfixes.
Atsushi Eno [Fri, 13 Aug 2010 07:31:54 +0000 (16:31 +0900)]
ongoing announcement and discovery work as well as several bugfixes.

13 years agoChannelDispatcherBase could be non-ChannelDispatcher. In WCF Discovery such type...
Atsushi Eno [Fri, 13 Aug 2010 07:07:42 +0000 (16:07 +0900)]
ChannelDispatcherBase could be non-ChannelDispatcher. In WCF Discovery such type actually seems to exist, so it's not theoretical anymore.

13 years ago[asp.net] Scripts may be requested also from pages without associated ScriptManager
Marek Habersack [Fri, 13 Aug 2010 00:15:32 +0000 (02:15 +0200)]
[asp.net] Scripts may be requested also from pages without associated ScriptManager

Make sure ScriptManager exists in the current page before attempting to use it.

13 years ago[asp.net] Fix for bug #626829. Nodes need to be re-populated on postback, with popula...
Marek Habersack [Thu, 12 Aug 2010 22:02:56 +0000 (00:02 +0200)]
[asp.net] Fix for bug #626829. Nodes need to be re-populated on postback, with populate on demand active

When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.

Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)

13 years ago[asp.net] Client-side callbacks must use new names for the target and argument fields
Marek Habersack [Thu, 12 Aug 2010 11:19:10 +0000 (13:19 +0200)]
[asp.net] Client-side callbacks must use new names for the target and argument fields

__CALLBACKTARGET and __CALLBACKARGUMENT have been renamed to __CALLBACKID and __CALLBACKPARAM, respectively,
recently and this script didn't get update for the change causing callbacks not to work on master.

13 years agoAdd mono-abi-info and Mono.CodeContracts to spec
Andrew Jorgensen [Thu, 12 Aug 2010 22:04:22 +0000 (16:04 -0600)]
Add mono-abi-info and Mono.CodeContracts to spec

13 years agoAvoid passing uninitialized memory to get_call_info () in the x86 backend.
Zoltan Varga [Thu, 12 Aug 2010 20:36:01 +0000 (22:36 +0200)]
Avoid passing uninitialized memory to get_call_info () in the x86 backend.

13 years agoRevert "Speculatively revert 9b3b838d43aa652bdfa426b (BRANCH_CONST = 100 -> 10) to...
Zoltan Varga [Thu, 12 Aug 2010 19:42:04 +0000 (21:42 +0200)]
Revert "Speculatively revert 9b3b838d43aa652bdfa426b (BRANCH_CONST = 100 -> 10) to see if that fixes the buildbot tests on x86."

This reverts commit 99395459eed932c197dddaa08924ed5be36e246c.

13 years agoFix a loader error leak and make some System.Type methods lazier.
Rodrigo Kumpera [Thu, 12 Aug 2010 19:19:08 +0000 (16:19 -0300)]
Fix a loader error leak and make some System.Type methods lazier.

* icall.c (ves_icall_MonoType_get_Module): Don't mono_class_init
the type as it's not needed.

* icall.c (ves_icall_MonoType_get_Assembly): Ditto.

* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
mono_reflection_get_type can return a non-null type and set a
loader error. Don't leak it.

Fixes #630773

13 years agoMerge remote branch 'upstream/master'
Chris Bacon [Thu, 12 Aug 2010 18:56:19 +0000 (19:56 +0100)]
Merge remote branch 'upstream/master'

13 years agoMoved back to Cecil version 0.6.*
Chris Bacon [Thu, 12 Aug 2010 18:47:09 +0000 (19:47 +0100)]
Moved back to Cecil version 0.6.*
PDB files are not supported any more.
Symbol writing is not supported.

13 years agoSpeculatively revert 9b3b838d43aa652bdfa426b (BRANCH_CONST = 100 -> 10) to see if...
Zoltan Varga [Thu, 12 Aug 2010 18:14:51 +0000 (20:14 +0200)]
Speculatively revert 9b3b838d43aa652bdfa426b (BRANCH_CONST = 100 -> 10) to see if that fixes the buildbot tests on x86.

13 years agoBump corlib version because of the CustomAttributeData:.ctor() signature change.
Zoltan Varga [Thu, 12 Aug 2010 12:42:29 +0000 (14:42 +0200)]
Bump corlib version because of the CustomAttributeData:.ctor() signature change.

13 years agoOptimize little bit cloning operations.
Marek Safar [Thu, 12 Aug 2010 14:31:33 +0000 (15:31 +0100)]
Optimize little bit cloning operations.

13 years agoSpeed up Array.Resize
Marek Safar [Wed, 11 Aug 2010 15:39:34 +0000 (16:39 +0100)]
Speed up Array.Resize

13 years agoNew test.
Marek Safar [Wed, 11 Aug 2010 12:24:47 +0000 (13:24 +0100)]
New test.

13 years agoDo not try to create InnerChannel when not necessary. Add more AnnouncementClient...
Atsushi Eno [Thu, 12 Aug 2010 13:41:40 +0000 (22:41 +0900)]
Do not try to create InnerChannel when not necessary. Add more AnnouncementClient tests.

13 years agoDo not try to create InnerChannel while retrieving State. It tries to change the...
Atsushi Eno [Thu, 12 Aug 2010 13:38:11 +0000 (22:38 +0900)]
Do not try to create InnerChannel while retrieving State. It tries to change the state itself and moreover causes invalid operations.

13 years agoTidy up
Chris Bacon [Thu, 12 Aug 2010 13:28:35 +0000 (14:28 +0100)]
Tidy up

13 years agoMerge remote branch 'upstream/master'
Chris Bacon [Thu, 12 Aug 2010 13:22:15 +0000 (14:22 +0100)]
Merge remote branch 'upstream/master'

13 years agoMinor updates
Chris Bacon [Thu, 12 Aug 2010 13:19:53 +0000 (14:19 +0100)]
Minor updates

13 years agoAdd comments on some of SplitOrderedList's methods.
Jérémie Laval [Thu, 12 Aug 2010 11:14:44 +0000 (12:14 +0100)]
Add comments on some of SplitOrderedList's methods.

13 years agoWhen hard node deletion fails in SplitOrderedList, restart the process from the saved...
Jérémie Laval [Thu, 12 Aug 2010 11:13:45 +0000 (12:13 +0100)]
When hard node deletion fails in SplitOrderedList, restart the process from the saved start point instead of straight from the head.

13 years agoCache new segment array creation in SplitOrderedList to reuse it in case CAS fails.
Jérémie Laval [Thu, 12 Aug 2010 11:12:25 +0000 (12:12 +0100)]
Cache new segment array creation in SplitOrderedList to reuse it in case CAS fails.

13 years agoTweak SplitOrderedList MaxLoad value (i.e. less pair per bucket).
Jérémie Laval [Thu, 12 Aug 2010 11:01:33 +0000 (12:01 +0100)]
Tweak SplitOrderedList MaxLoad value (i.e. less pair per bucket).

13 years agoFix GetParent method in SplitOrderedList, it wasn't returning a meaningful value.
Jérémie Laval [Thu, 12 Aug 2010 11:01:02 +0000 (12:01 +0100)]
Fix GetParent method in SplitOrderedList, it wasn't returning a meaningful value.

13 years agoAdd additional unit test for ConcurrentDictionary to validate behavior with the new...
Jérémie Laval [Thu, 12 Aug 2010 09:46:55 +0000 (10:46 +0100)]
Add additional unit test for ConcurrentDictionary to validate behavior with the new SplitOrderedList backend.

13 years agoPort ConcurrentDictionary to use SplitOrderedList class.
Jérémie Laval [Thu, 12 Aug 2010 09:46:32 +0000 (10:46 +0100)]
Port ConcurrentDictionary to use SplitOrderedList class.

13 years agoAdd auxiliary methods to SplitOrderedList to allow better integration with Concurrent...
Jérémie Laval [Thu, 12 Aug 2010 09:44:35 +0000 (10:44 +0100)]
Add auxiliary methods to SplitOrderedList to allow better integration with ConcurrentDictionary API.

Several method in ConcurrentDictionary do a combination of two actions or two different actions depending on a test. These additional methods to the standard SplitOrderedList operation set are for these.

13 years agoAdd SplitOrderedList to the build system
Jérémie Laval [Tue, 10 Aug 2010 15:10:56 +0000 (16:10 +0100)]
Add SplitOrderedList to the build system

13 years agoFixicate SplitOrderedList and tune default values
Jérémie Laval [Tue, 10 Aug 2010 15:10:35 +0000 (16:10 +0100)]
Fixicate SplitOrderedList and tune default values

13 years agoCompilable implementation of SplitOrderList
Jérémie Laval [Tue, 10 Aug 2010 14:15:50 +0000 (15:15 +0100)]
Compilable implementation of SplitOrderList

13 years agoAdd new split ordered list type based on the eponymous data structure.
Jérémie Laval [Mon, 9 Aug 2010 14:21:25 +0000 (15:21 +0100)]
Add new split ordered list type based on the eponymous data structure.

This data structure is to be used internally by ConcurrentDictionary. Theory from paper "Split-Ordered Lists: Lock-Free Extensible Hash Tables" and "A Pragmatic Implementation of Non-Blocking Linked-Lists".

13 years agoMinor changes
Chris Bacon [Thu, 12 Aug 2010 11:09:41 +0000 (12:09 +0100)]
Minor changes

13 years agoImprovements as suggested by Marek
Chris Bacon [Thu, 12 Aug 2010 10:45:56 +0000 (11:45 +0100)]
Improvements as suggested by Marek

13 years agoongoing AnnouncementClient implementation.
Atsushi Eno [Thu, 12 Aug 2010 10:33:46 +0000 (19:33 +0900)]
ongoing AnnouncementClient implementation.

13 years agoAdd a FIXME to abcrem.
Zoltan Varga [Thu, 12 Aug 2010 09:32:36 +0000 (11:32 +0200)]
Add a FIXME to abcrem.

13 years ago[asp.net] Fix for bug #617746. GridRow must auto-bind only properties directly declar...
Marek Habersack [Thu, 12 Aug 2010 09:10:51 +0000 (11:10 +0200)]
[asp.net] Fix for bug #617746. GridRow must auto-bind only properties directly declared in item type

When GridView auto-generates columns it uses reflection to retrieve list of public properties present
in the item type. Only the properties that have bindable type and are declared directly in the item
type must be considered for column auto-generation.

13 years agoChannelFactory<T> and ClientBase<T> do not reject ServiceEndpoint with null Binding...
Atsushi Eno [Thu, 12 Aug 2010 09:04:23 +0000 (18:04 +0900)]
ChannelFactory<T> and ClientBase<T> do not reject ServiceEndpoint with null Binding or Address.

13 years agoAdd new constructors in 4.0.
Atsushi Eno [Thu, 12 Aug 2010 07:50:48 +0000 (16:50 +0900)]
Add new constructors in 4.0.

13 years agoFix infinite loop in mono_class_get_nested_types () if a nested type fails to load...
Zoltan Varga [Thu, 12 Aug 2010 00:36:26 +0000 (02:36 +0200)]
Fix infinite loop in mono_class_get_nested_types () if a nested type fails to load. Fixes # 630041. Add a test.

13 years agoAdd some error handling to custom attribute loading.
Rodrigo Kumpera [Wed, 11 Aug 2010 21:33:03 +0000 (18:33 -0300)]
Add some error handling to custom attribute loading.

* reflection.c (mono_reflection_resolve_custom_attribute_data):
Check for loader and type load errors.

13 years agoLazy load custom attribute data arguments.
Rodrigo Kumpera [Wed, 11 Aug 2010 21:05:26 +0000 (18:05 -0300)]
Lazy load custom attribute data arguments.

in mcs/class/corlib/System.Reflection:

* CustomAttributeData.cs: This now receives only the information
required to later load argument data. This information is stored
in a new field that is later discarded.

in mono/mono/metadata:

* icall-def.h: Add new icall from CustomAttributeData.

* object-internals.h: Add new reflection.c function.

* reflection.c (mono_reflection_get_custom_attrs_info): Don't
init the class when retrieving custom attributes since we must
handle broken types.

* reflection.c (create_custom_attr_data): Don't resolve cattr
arguments eagerly. Instead pass enough information to
CustomAttributeData so it can later on create them.

* reflection.c (mono_reflection_resolve_custom_attribute_data):
new icall used to create the cattr data arguments.

This is required to match MS behavior and fix some of the issues
triggered by trying to compile MD.

Fixes #630074

13 years ago[asp.net] Partial fix for bug #575600. Support opening another app configuration.
Marek Habersack [Wed, 11 Aug 2010 20:10:10 +0000 (22:10 +0200)]
[asp.net] Partial fix for bug #575600. Support opening another app configuration.

WebConfigurationHost now supports one more parameter passed to it in InitForConfiguration -
a boolean telling whether the configuration being initialized belongs to another app. If it is
true then the virtual path passed to InitForConfiguration is used as the application virtual
path. This has the effect that IsDefinitionAllowed doesn't throw an exception when a configuration
element with the MachineToApplication level is parsed.
WebConfigurationManager.FindWebConfig checks whether the path passed to it belongs to this application
which allows the mechanism described in the first paragraph to work.

13 years ago[asp.net] Partial fix for bug #575600. Convert virtual path to absolute only if neces...
Marek Habersack [Wed, 11 Aug 2010 12:15:43 +0000 (14:15 +0200)]
[asp.net] Partial fix for bug #575600. Convert virtual path to absolute only if necessary in HttpRequest.MapPath

Also added two tests for HttpRequest.MapPath which check cases when the baseVirtualDir
is not rooted.

13 years agoAdded ccrewrite library, tool and tests.
Chris [Wed, 11 Aug 2010 19:35:08 +0000 (20:35 +0100)]
Added ccrewrite library, tool and tests.

13 years agoongoing UdpAnnouncementEndpoint work.
Atsushi Eno [Wed, 11 Aug 2010 18:32:44 +0000 (03:32 +0900)]
ongoing UdpAnnouncementEndpoint work.

13 years agoongoing AnnouncementService work.
Atsushi Eno [Wed, 11 Aug 2010 17:26:58 +0000 (02:26 +0900)]
ongoing AnnouncementService work.

13 years agoadd new AddServiceEndpoint() overload in 4.0.
Atsushi Eno [Wed, 11 Aug 2010 17:25:33 +0000 (02:25 +0900)]
add new AddServiceEndpoint() overload in 4.0.