* ChunkStream.cs: simplified condition for WantMore property.
* WebConnection.cs: in Connect(), finish any pending reads we might
have for chunked data. Ignore possible blank lines at the very
beginning of the server response. Honor user set KeepAlive in
HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
his suggestions and code.
svn path=/trunk/mcs/; revision=35934
* expression.cs (Invocation.BetterFunction): If two methods have
equal parameter types, but only one of them is generic, the
non-generic one wins.
(New.DoResolve): Don't set `is_struct' to false if we're a generic
instance; just use `Type.IsValueType' to determine whether
something is a struct or not.
(MemberAccess.DoResolveAsTypeStep): Don't modify the `args' field,
so we can be called multiple times.
svn path=/trunk/mcs/; revision=35933
* iterators.cs
(Iterators): Added `current_type' and `this_type' fields.
(Iterators.DefineIterator): Create a new EmitContext and store it
in `ec'; compute `this_type'.
svn path=/trunk/mcs/; revision=35928
* typemanager.cs
(TypeManager.IsPrivateAccessible): New public method.
(Closure.Filter): Use IsPrivateAccessible() instead of IsEqual().
svn path=/trunk/mcs/; revision=35926
* class.cs (TypeContainer.DefineType): Call
TypeBuilder.DefineGenericParameters() before resolving the type
parameters.
(MethodData.parent_method): New protected field.
(MethodData..ctor): Added `MethodInfo parent_method' argument.
(MethodData.Define): Compute `parent_method'.
* decl.cs
(MemberCore.GetObsoleteAttribute): Don't create a new EmitContext.
(MemberCore.GetClsCompliantAttributeValue): Likewise.
(DeclSpace.ec): New protected field; store the EmitContext here.
(DeclSpace.EmitContext): New public property.
(DeclSpace.ResolveType): Un-comment from the [Obsolte] attribute.
(DeclSpace.ResolveNestedType): New public method.
(DeclSpace.ResolveTypeExpr): Just call ResolveAsTypeTerminal() here.
(DeclSpace.NestedAccessible): Added `Type tb' argument.
(DeclSpace.FamilyAccessible): Likewise.
(DeclSpace.FindType): Call ResolveNestedType() for nested types.
(DeclSpace.GetClsCompliantAttributeValue): Don't create a new
EmitContext.
* delegate.cs (Delegate.Define): Store the EmitContext in the `ec'
field.
* enum.cs (Enum.Define): Store the EmitContext in the `ec' field.
(Enum.Emit): Don't create a new EmitContext.
svn path=/trunk/mcs/; revision=35925
* class-internals.h (MonoGenericContainer): Removed `method' and
`signature', replaced them with `is_method' and `is_signature'
flags. Added `context'.
* loader.c (method_from_methodspec): Take a `MonoGenericContext *'
instead of a `MonoGenericContainer *'.
* metadata.c (mono_metadata_generic_param_equal): Removed the hack
for dynamic type parameters.
(mono_metadata_load_generic_params): Setup `container->context'.
* reflection.c (mono_reflection_setup_generic_class): Setup
`tb->generic_container->context'.
(do_mono_reflection_bind_generic_parameters): Use
mono_class_inflate_generic_type() to correctly inflate types,
rather than using our own hack just for MONO_TYPE_VAR.
svn path=/trunk/mono/; revision=35915
* ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
and Bottom, left and right are illegal values for this and
multiline is enabled when the alignment is set to left or right.
(DrawTab): Each alignment block should draw the text itself now
because Left requires special love. Also add rendering for Left
aligned tabs.
svn path=/trunk/mcs/; revision=35914
Only reflect properties from type's members if the type does not
override Properties.
* ConfigurationElementCollection.cs: Implemented Equals and GetHashCode.
Other minor fixes.
* ConfigurationProperty.cs: It is not a subclass of ConfigurationElement.
* NonEmptyStringConfigurationProperty.cs, NonEmptyStringFlags.cs:
Implemented.
svn path=/trunk/mcs/; revision=35903
* assembly.c (mono_assembly_names_equal): Reenable the comparison of
assembly versions and public key tokens. Fixes#69113.
svn path=/trunk/mono/; revision=35902
* Control.cs: unified a few bool fields into an int one.
* ControlCollection.cs: use an array internally instead of always
allocating an arraylist. Also added our own enumerator.
* EmptyControlCollection.cs: there's no 'special' ctor now in the base
class.
svn path=/trunk/mcs/; revision=35900
* metadata.h, metadata.c, domain-internals.h, marshal.c: include
the MonoClass pointer instead of the token in exception clauses.
* reflection.c: updates for the above and make the code not depend
on the structure of MonoExceptionClause.
svn path=/trunk/mono/; revision=35891
file attribute).
* ConfigHelper.cs: GetNameValueCollection now returns a
ConfigNameValueCollection instance which is a NameValueCollection with a
modification flag.
* ConfigInfo.cs: Added XPath property.
* Configuration.cs: Implemented AppSettings property. Set the Path property
of sections and groups.
* ConfigurationElement.cs: Support key serialization. Properly reset
nested elements.
* ConfigurationElementCollection.cs: Initial implementation.
* ConfigurationSection.cs: Impemented Path and GetRuntimeObject.
* ConfigurationSectionGroup.cs: Implemented Path.
* SectionGroupInfo.cs: Little fix.
svn path=/trunk/mcs/; revision=35884
- (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
rendering and incorrect text rect clipping
- (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
rendering and incorrect text rect clipping
svn path=/trunk/mcs/; revision=35882
Attribute.GetValidPlaces() with an equivalent instance method
Attribute.GetValidTargets() 2) Added new methods Attributes.Emit
() and Attribute.Emit(). 3) Migrated functionality of
ApplyAttributes to ApplyAttributeBuilder of respective classes.
* class.cs, decl.cs, codegen.cs, const.cs, parameter.cs :
Implemented ApplyAttributeBuilder() in the following classes:
TypeContainer, Constructor, Field, Property, Event, DeclSpace,
AssemblyClass, ModuleClass, Const, Method, Parameter.
* codegen.cs: Implemented Emit() in the following classes:
AssemblyClass and ModuleClass.
svn path=/trunk/mcs/; revision=35880
bottom when they are bottom aligned so the bottoms of the tabs get
displayed.
* TabControl.cs (DropRow): Move rows up instead of down when the
tab control is bottom aligned.
svn path=/trunk/mcs/; revision=35872
* expression.cs: emit unary operator code.
* TypeOf.cs: back to Microsoft.JScript namespace. fix typo.
* Literal.cs: constrain more the case of negative numeric literal.
svn path=/trunk/mcs/; revision=35868
* outline.cs: If a type is in the namespace that we
are looking at right now, dont print out the fullname
this cuts down on verbosity
svn path=/trunk/mcs/; revision=35862
MonoPosixHelper (the support directory).
* support/Makefile.am: Add sys-sendfile.c to the build.
* support/dirent.c, support/fcntl.c, support/unistd.c: Remove compile-time
checks for -64 apis (pread64, etc.), as they're superfluous. GLibc
#defines the functions to the appropriate -64 counterpart when necessary,
and Darwin is intrinsically large-file-aware, so manual checking on my
part is redundant and unnecessary.
* support/grp.c: Add checks for non-portable functions getgrnam_r,
getgrgid_r.
* support/pwd.c: Add checks for non-portable functions getpwnam_r,
getpwuid_r.
* support/mph.h: Clean up macro handling for type overflow checking.
svn path=/trunk/mono/; revision=35828
variables. Used to support both an in-tree mcs/ and a sibling
mcs/ directory.
* Makefile.am (mcs_topdir): Remove.
(dist-hook): Distribute mcs/ as a subdirectory.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Use mcs_topdir and mcs_topdir_from_srcdir.
* runtime/net_1_1/Makefile.am (mscorlib.dll $(gac_assemblies) $(mdb_files)):
Likewise.
(all-local): Depend on $(mdb_files) too.
* runtime/net_2_0/Makefile.am: Likewise.
svn path=/trunk/mono/; revision=35821
Attributable.AttributeTargets
* decl.cs: Made MemeberCore a derived class of
Attributable.
* parameter.cs: Made Parameter a derived class of
Attributable.
* class.cs: Commented out the "never used" class Indexer. I
suspect that the class will never be required in VB.NET context
and can possibly be stripped off after careful inspection.
* tree.cs, module.cs, interface.cs, enum.cs, delegate.cs,
const.cs, codegen.cs: Changes necessiated by the above changes.
svn path=/trunk/mcs/; revision=35818
* XmlTextReaderTests.cs : added tests for 2.0 entity handling.
* XmlValidatingReaderTests.cs : modified tests for entity handling
that are changed in 2.0.
svn path=/trunk/mcs/; revision=35813
* XmlTextReader2.cs : added. It is used to serve public API, plus
entity handling support.
* DTDObjectModel.cs,
DTDValidatingReader.cs,
XmlDocumentType.cs,
XmlParserContext.cs,
XmlTextReader.cs :
Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
source reader, and never handles tokenization.
The reason for "Mono.Xml2" is to avoid large changes in constructor.f
svn path=/trunk/mcs/; revision=35812
* Tokenizer.cs : just use raw string instead of char[].
* XPathNavigator.cs : reuse NameTable when creating XmlTextReader.
svn path=/trunk/mcs/; revision=35810
* XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
* XmlDocument.cs : use NameTable in Load() and LoadXml().
* XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
svn path=/trunk/mcs/; revision=35808
* class-internals.h (MonoMethod): Move addr to MonoMethodPInvoke
since most only those methods use it. the code member of
MonoMethodPInvoke was dead, so that can be removed too. Also,
remove inline_count (again, not used), and move slot so that it
can share bits with some other flags. This saves 8 bytes in the
structure and gives us about 50 kb back for mcs helloworld.cs
* *.[ch]: Do naming changes for the above. 2004-11-07 Ben Maurer <[email protected]>
* tramp-*.c: we no longer support icalls without wrappers, so
a bit of code can be removed here
svn path=/trunk/mono/; revision=35800
* loader.c (mono_method_get_header): Lazily init the header
on first access.
(mono_get_method_from_token): don't init the header here
(mono_free_method): the header may never be allocated
Overall, this saves 150 kb of unmanaged allocations
for mcs helloworld.cs. That accounts for 10% of the unmanaged
memory at runtime.
svn path=/trunk/mono/; revision=35797
* XmlFilterReader.cs : ReadInnerXml() and ReadOuterXml() should not
invoke those of argument reader. It causes unfiltered results like
XmlValidatingReader bug in MS.NET 1.0. Just don't implement it.
svn path=/trunk/mcs/; revision=35796
* loader.c, loader.h (mono_method_get_header): new accessor.
* *.[ch]: use the above method. Prepares us to lazily load
the header.
svn path=/trunk/mono/; revision=35794
* IntegerFormatter.cs: Avoid .ToCharArray, it was being used in
places where there was no reason for it. Also, allocate buffers
using stackalloc. This avoids the cost of allocating a char []
buffer in the gc. Also did some minor style changes.
This gives a huge reduction in memory allocation for integer formatting.
often you see something like:
665 KB System.IntegerFormatter::FormatGeneral(long,int,NumberFormatInfo,bool,int)
463 KB 11710 System.Char[]
201 KB 11710 System.String
This patch removes the char [] part. (it also removes the
tochararray, which accounts for even more.
svn path=/trunk/mcs/; revision=35792
* Iterator.cs :
- Made copy constructor certainly different from other constructors.
- Position is never computed in each derived type. All MoveNext() are
now MoveNextCore().
- Most of the protected members could just be private.
svn path=/trunk/mcs/; revision=35776
* metadata.c (builtin_types): Add types for System.Object here.
(mono_metadata_parse_type_full): Cache MonoType*'s that are
for a class or valuetype from klass->this_arg or klass->byval_arg.
On mcs for a hello world, this gets us down from 21836 MonoType's
to 14560.
(mono_metadata_free_type): Account for the above change.
svn path=/trunk/mono/; revision=35772
redundant and replaced LookupAttr with LookupClass.
* rootcontext.cs:
* module.cs: Miscellaneous changes
* mb-parser.jay: Upadted actions of the attributes grammar
* codegen.cs: 1) Introduced new classes CommonAssemblyModulClass,
AssemblyClass, ModuleClass 2) Introduced following methods
CodeGen.AddGlobalAttributes, CodeGen.EmitGlobalAttributes
* class.cs: Factored out TypeContainer.AttributeUsage
* attribute.cs: 1) Factored out Attribute.UsageAttribute and
Attribute.GetAttributeUsage 2) Introducing the new base class
Attributable from which all Attributable types will be derived in
the future 3) Added new accessors Attribute.IsAssemblyAttribute
and Attribute.IsModuleAttribute
svn path=/trunk/mcs/; revision=35771
* Expression.cs, XPathNavigator.cs : hold raw expression field for
get_Expression. It is preparation for expression optimization.
svn path=/trunk/mcs/; revision=35767
* ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
prevents another huge leak when compiling with ssa. Secondly, the
performance of doing this rather than freeing the lists is much
better. GList does a lock every time you allocate a list link,
so that it can use a memory pool. So, it is better to just use
a memory pool of our own.
svn path=/trunk/mono/; revision=35752
* ssa.c, linear-scan.c: replace g_list_remove_link with
g_list_delete. The remove one does not free the GList, so we were
leaking memory. On -O=all --compile-all with corlib, this cut down
3 MB of allocations.
svn path=/trunk/mono/; revision=35750
* appdomain.c (ves_icall_System_AppDomain_GetData): Throw an
exception instead of asserting if name is null.
(ves_icall_System_AppDomain_GetData): Ditto.
svn path=/trunk/mono/; revision=35746
* TypeBuilderTest.cs: Ignore some tests which depend on TypeBuilder
features which are unlikely to change due to mcs depending on them.
svn path=/trunk/mcs/; revision=35745
* statement.cs (Return.Resolve): Fix regression in typo: if
`in_exc', we have to request a NeedReturnLabel, this was a typo
introduced in the anonymous method check-in. Fixes#69131.
svn path=/trunk/mcs/; revision=35738
* icall.c (ves_icall_System_Reflection_Assembly_GetEntryAssembly):
Return NULL when the domain does not have entry_assembly set.
svn path=/trunk/mono/; revision=35737
* Indexers were using the ShortName when defining themselves,
causing a regression in the compiler bootstrap when applying the
patch from 2004-11-02 (first part), now they use their full name
and the bug is gone.
Reapplied:
2004-11-02 Miguel de Icaza <[email protected]>
* class.cs (Event.Define, Indexer.Define, Property.Define): Do not
special case explicit implementations, we should always produce
the .property or .event declaration.
svn path=/trunk/mcs/; revision=35728
* reflection.c (mono_reflection_create_runtime_class): Move setting
of wastypebuilder here, so mono_get_type_object () returns a MonoType
for enums too.
svn path=/trunk/mono/; revision=35723
* AuthenticodeFormatter.cs: Now use BitConverterLE for explicit
little-endian convertion.
* PrivateKey.cs: Now use BitConverterLE for explicit little-endian
convertion for PVK files.
svn path=/trunk/mcs/; revision=35703
* marshal.c (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi): Return NULL here instead of an empty string to match MS behavior.
(ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len):
Throw an ArgumentNullException if 'ptr' is null.
svn path=/trunk/mono/; revision=35700
* runtime/net_2_0/Makefile.am (install-data-local):
* runtime/net_1_1/Makefile.am (install-data-local): Applied patch
from G�tz Waschk ([email protected]). Make this work
with DESTDIR.
svn path=/trunk/mono/; revision=35699
* mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
into a new function mono_create_jit_trampoline ().
svn path=/trunk/mono/; revision=35692
* Mono.Posix.dll.sources: Add lots of new files to the binding.
* PosixConvert.cs: New file; conversion functions for Mono.Posix types.
* PosixDirectory.cs: New file; Friendly wrapper over directory information.
* PosixDirectoryInfo.cs: New file; Friendly wrapper over directory information.
* PosixEnvironment.cs: New file; Friendly wrapper over environment information.
* PosixFile.cs: New file; Friendly wrapper over file information.
* PosixFileInfo.cs: New file; Friendly wrapper over file information.
* PosixFileSystemInfo.cs: New file; Friendly wrapper over `stat'.
* PosixGroup.cs: New file; User Group-related functionality
* PosixGroupInfo.cs: New file; User Group-related functionality
* PosixIOException.cs: New file; Exception for POSIX-generated exceptions.
* PosixMarshal.cs: New file; utility functions for marshaling, etc.
* PosixProcess.cs: New file; Friendly wrapper over process information.
* PosixStream.cs: New file; Friendly wrapper over file descriptors.
* PosixSymbolicLinkInfo.cs: New file; Friendly wrapper over symbolic links.
* PosixUser.cs: New file; Friendly wrapper over user information.
* PosixUserInfo.cs: New file; Friendly wrapper over user information.
* Stdlib.cs: New file; C standard library exports.
* Syscall.cs: Effective re-write.
- Organize exports by header file
- add additional enumerations (Error for the E* error values, etc.)
- always explicitly specify enumeration underlying type
- Use a new wrapping infrastructure so that ABI-stable types are exported
- For example, size_t is exported as ulong, not IntPtr.
- Wrap more functions, and wrap them better (such as getpwnam).
- This release is NOT backward compatible. Many names are the same, and
hopefully they're still compatible, but no effort was made to maintain
compatibility. For example, FileMode was removed and replaced with
FilePermissions, to avoid a name conflict with System.IO.FileMode.
* make-map.cs: Another effective re-write, to clean up the code, produce
better output, and produce more output. For example, most of
PosixConvert can be auto-generated, so it is (modulo version delays and
bootstrap issues). `map.c' is now conditional on all macros, and has
error checking for invalid/unsupported values.
svn path=/trunk/mcs/; revision=35690
* attribute.cs: Removed the incomplete and (for now) unnecessary
Mono.MonoBASIC.Operator class. Let us bother about this later.
Stripping off these unused bits will help me in 1) refactoring the
mbas Attributes related code 2) reusing the code from the mcs code
base.
svn path=/trunk/mcs/; revision=35685
moved it's functionality to Attributes class.
* class.cs:
* mb-parser.jay:
* module.cs: Replaced references to AttributeSection with the equivalent constructs.
* rootcontext.cs: Removed the following unused methods
AddGlobalAttribute and AddGlobalAttributeSection.
svn path=/trunk/mcs/; revision=35682
- Fix RadioButton and CheckBox rendering when Appearance = Button (normal and
flatstyle).
- Correct outer rectangle color when drawing focus rectangle
- Adjust button bounds to be 1 px smaller when focused
- Make button not draw sunken 3d border when pushed (windows compat)
- Fix CPDrawBorder3D to not make bottom right hand corner rounded
- Offset the text in RadioButton and Checkbox when being rendered as a button.
- Hover and Click behaviour for Colored FlatStyle.Flat and Popup radiobuttons
- Fixed disabled rendering for colored flatstyle radiobuttons (both)
- Fixed disabled text rendering for normally rendered radiobuttons
svn path=/trunk/mcs/; revision=35677
* reflection.c (build_compressed_metadata): Fix the previous patch for
big endian systems. GUINT32_FROM_LE isn't needed on strlen and was overwriting
the stack.
svn path=/trunk/mono/; revision=35676
* ConfigurationElement.cs: Added support for the different update modes.
* SectionGroupInfo.cs: Support loading the same configuration section
from different files.
* SectionInfo.cs: Properly write back configuration data for which a
section object has not been created.
svn path=/trunk/mcs/; revision=35675
* reflection.c (mono_reflection_get_type): Avoid triggering a
TypeResolve multiple times for the same type. Fixes#65577.
svn path=/trunk/mono/; revision=35647
- We set the 'pos' in UpdatePos() method to minimum, if it's less than minimum. This is required to handle the case if large_change is more than max, and use LargeChange property instead of large_change variable.
- We return max+1 when large_change is more than max, like MS does.
svn path=/trunk/mcs/; revision=35639
- Fixed/implemented layout LargeIcon, SmallIcon and List views for ListView.
- Fixed calculations for ListViewItem and implemented Clone() method.
svn path=/trunk/mcs/; revision=35635
(I'm working on improving the harness to move more work to 'make' rather
than using the shell. That should improve matters on Cygwin some more.)
svn path=/trunk/mcs/; revision=35631
(all.override): Fix to actually perform optimization to avoid
the two-pass build if we are not signing assemblies.
svn path=/trunk/mcs/; revision=35627
* XmlTextReader.cs : Manually expanded some of AppendValueChar() and
XmlChar.IsWhitespace() which are on critical points on performance
(marked as FIXME, but it depends on JIT).
svn path=/trunk/mcs/; revision=35624
* XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
ReadName() now returns atomized LocalName and Prefix. Second, to
avoid extraneous split, SetProperties() now takes prefix and
localName that might be given from ReadName(). Third, removed
FillNames(). This optimizes "namespace-aware and prefixed document"
parsing 10-20% faster.
svn path=/trunk/mcs/; revision=35622
* reflection.c (ensure_runtime_vtable): make sure to free
overrides. Also, we were allocating an array of MonoMethod not an
array of MonoMethod*.
svn path=/trunk/mono/; revision=35620
* TextureBrush.cs (Clone): While cloning, it is not enough to let
GDIPlus clone the underlying data, we must alos clone the managed
information.
* Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
errors in the future, set the lock on the object before doing any
other tests, not after.
(Clone): While cloning, it is not enough to let
GDIPlus clone the underlying data, we must alos clone the managed
information.
* Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
errors in the future.
Set the lock in the object before checkign disposed.
* SolidBrush.cs (Clone): While cloning, it is not enough to let
GDIPlus clone the underlying data, we must alos clone the managed
information.
(Dispose): Set the nativeObject to IntPtr.Zero to catch
errors in the future.
2004-11-03 Miguel de Icaza <[email protected]>
* ColorPalette.cs: Add internal Clone method
svn path=/trunk/mcs/; revision=35607
* XmlTextReader.cs :
With related to AddNamespace(), there was extra string.StartsWith()
calls. Now AttributeTokenInfo.FillNames() is splitted into
FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
at FillPrefixAndXmlns().
svn path=/trunk/mcs/; revision=35601
* PasswordDeriveBytes.cs: Fixed possible ArgumentException when asking
multiple GetBytes than results in more bits than the hash function can
provide.
svn path=/trunk/mcs/; revision=35600
* XmlTextReader.cs :
Reduces LookupNamespace() call in FillNames(). This improves 6-7%
speedup in some scenario.
Code refactory; Removed unused code. AddAttribute() is used only for
DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
FillNames() is not required. Two SetProperties() are ambiguous, so
renamed one (that takes TokenInfo) as SetTokenProperties().
svn path=/trunk/mcs/; revision=35598
* KeyPairPersistenceTest.cs: Re-fix as the UnauthorizedAccessException
is the InnerException of a CryptographicException.
svn path=/trunk/mcs/; revision=35594
* DSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
fail if the key container directory wasn't yet created (root).
* PasswordDeriveBytesTest.cs: Added tests for NET_2_0, more tests
for all constructors, tests for properties and a test for bug 69036.
* RSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
fail if the key container directory wasn't yet created (root).
svn path=/trunk/mcs/; revision=35593
* XmlTextReader.cs : LookupNamespace() don't have to be called in
ReadStartTag() to check prefix, since NamespaceURI is filled in
FillNames(). 10% performance up by avoiding this extra check.
svn path=/trunk/mcs/; revision=35590
* expression.cs (StringConcat): Handle being called twice,
as when we have a concat in a field init with more than two
ctors in the class
svn path=/trunk/mcs/; revision=35574
* class.cs (Event.Define, Indexer.Define, Property.Define): Do not
special case explicit implementations, we should always produce
the .property or .event declaration.
svn path=/trunk/mcs/; revision=35572
* inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
The darwin ABI needs some special handling for 1 and 2 byte structs
Lets use lbz/lhz instead of lwz everywhere.
* mini-ppc.c (calculate_sizes): The Darwin ABI needs from special handling
for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
Use stb/sth for the former, and put the latter always on stack instead of in
argument registers.
svn path=/trunk/mono/; revision=35563
* reflection.c: Fix some spec conformance issues with the PE file
structures so mcs compiled apps run on the Net 2.0 beta.
svn path=/trunk/mono/; revision=35560
* CustomDataClassGenerator.cs : custom DataTable ctor should call
InitializeFields(), and those DataColumns created by that method
should take data type. This should fix bug #68972.
svn path=/trunk/mcs/; revision=35557
* decl.cs (MemberName): Renamed GetFullName to GetPartialName
since it will not return correct data if people use this
unresolved in the presence of using statements (see test-313).
* class.cs (MethodData.Define): If we are an explicit interface
implementation, set the method name to the full name of the
interface plus the name of the method.
Notice that using the method.MethodName.GetFullName() does not
work, as it will only contain the name as declared on the source
file (it can be a shorthand in the presence of using statements)
and not the fully qualifed type name, for example:
using System;
class D : ICloneable {
object ICloneable.Clone () {
}
}
Would produce a method called `ICloneable.Clone' instead of
`System.ICloneable.Clone'.
* namespace.cs (Alias.Resolve): Use GetPartialName.
svn path=/trunk/mcs/; revision=35553
* test-mbas.make: Added support for --runtime option in
test-mbas.pl. When working with mbas within the cygwin
environment, this option permits executing of compiled test cases
either within the Microsoft's .NET runtime environment or the
mono's runtime environment.
svn path=/trunk/mcs/; revision=35552
* MonoIOError.cs: All of these fields just take up room in corlib,
bloating things up. To make it worse, we need to malloc data at
runtime about them. Since most are not used, am commenting them
out
svn path=/trunk/mcs/; revision=35543
* assign.cs (Assign.DoResolve): Only do the transform of
assignment into a New if the types are compatible, if not, fall
through and let the implicit code deal with the errors and with
the necessary conversions.
svn path=/trunk/mcs/; revision=35541
* HttpWebResponse.cs: don't lock up when the cookie received ends with
a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
svn path=/trunk/mcs/; revision=35530
underlying type before converting value to string as we'd otherwise be
using the enum field name. Fixes bug #66630.
svn path=/trunk/mcs/; revision=35526
* appdomain.c (ves_icall_System_AppDomain_createDomain): Inherit
application base from the root domain if not set. Fixes#65641.
(mono_runtime_init): Fix warning.
svn path=/trunk/mono/; revision=35506
* AuthenticodeFormatter.cs: Fixed spcSpOpusInfo attribute (it wasn't
added) and contentType attribute (was added 2 times). Also fixed the
case where we signed an already Authenticode signed file (re-signing).
* SoftwarePublisherCertificate.cs: Support for base64 encoded ASN.1
files (either Unicode or ASCII).
svn path=/trunk/mcs/; revision=35480
* man/mono.1: documented MONO_THREADS_PER_CPU.
* mono/metadata/appdomain.c: call mono_thread_pool_init.
* mono/metadata/threadpool.[ch]: new mono_thread_pool_init that sets
the max. number of worker threads based on the number of CPUs and the
environment variable MONO_THREADS_PER_CPU if present. The defaults are
50 (25) for non-windows (windows) systems.
svn path=/trunk/mono/; revision=35476
* ASN1.cs: Throw an NotSupportedException when "undefined length
encoding" is used (#68903 but it's not a fix ;-). Fixed GetBytes to
encode structures bigger than 64k (fix#68907). Simplified ToString
and added Length to help debugging.
svn path=/trunk/mcs/; revision=35450
* XmlSchemaAttribute.cs : AttributeSchemaType could be determined on
compilation time. AttributeType is obsolete.
* XmlSchemaElement.cs : ditto for ElementSchemaType and ElementType.
svn path=/trunk/mcs/; revision=35447
(bootstrap-libs): New target. Invokes the net_2_0_bootstrap profile.
(gmcs.exe): Invoke bootstrap-libs.
(clean-local): Clean the net_2_0_bootstrap profile too.
(PROGRAM_INSTALL_DIR): New.
(install-local): Use it.
svn path=/trunk/mcs/; revision=35443
(profile-do--net_2_0_bootstrap--all): New target.
(profile-do--net_2_0--all): Depend on it.
(distdir,top_distdir): Remove.
(dist-tarball): Define distdir here for dist-recursive.
svn path=/trunk/mcs/; revision=35438
* XmlSchemaComplexType.cs : added LocalElements, with the description
why it can never be correct implementation.
* XmlSchemaUtil.cs : use IHasXmlParserContext.
svn path=/trunk/mcs/; revision=35436
* XmlSchemaSimpleTypeUnion.cs : Added 2.0 BaseMemberTypes property
(this property name is also ambiguous and should be changed too.)
svn path=/trunk/mcs/; revision=35433
* XmlSchemaSimpleTypeList.cs : Added 2.0 BaseItemType property (BTW
this property name is really ambiguous and should be changed.)
svn path=/trunk/mcs/; revision=35432
* DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
When XmlTextReader is created with NodeType Element or Attribute,
skip possible text declaration (that might be used for resolving
entities) that specifies text encoding. With this fix, bug #61274
must be regarded as fixed.
svn path=/trunk/mcs/; revision=35428
* XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
XmlTextReader trick anymore. XmlNodeReader itself it used instead.
svn path=/trunk/mcs/; revision=35427
* XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
XmlReader.ReadInnerXmlInternal(). It should work fine.
Ditto for ReadOuterXml().
svn path=/trunk/mcs/; revision=35423
* String.cs: Rather than == String.Empty, use .Length == 0. It
is a bit faster (avoids a method call, and the code is less complex).
svn path=/trunk/mcs/; revision=35406
* AuthenticodeDeformatterTest.cs: Check timestamp as an UTC value so
that the test can work anywhere in the world (and not just at home ;)
svn path=/trunk/mcs/; revision=35396
* KeyPairPersistence.cs: Added localization for exceptions messages.
Also added more details (type and path) when an exception is thrown.
svn path=/trunk/mcs/; revision=35395
StreamHelper internal class.
* Icon.cs: Removed an ugly hack that used temp files in
ToBitmap () method. We use MemoryStream instead.
svn path=/trunk/mcs/; revision=35394
* XmlDocument.cs : use XPathEditableDocument again.
* XmlNode.cs : To be compatible with XPathEditableDocument, it should
not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
svn path=/trunk/mcs/; revision=35389
* XmlChar.cs, XmlConstructs.cs :
Switched again, for reducing per-process memory consumption.
* XmlInputStream.cs :
Just 64 bytes of buffer would be enough, for example like
<?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
svn path=/trunk/mcs/; revision=35382
* mono-debug-debugger.c (write_class): don't call mono_class_init
here, as even with the check for (!klass->init_pending), we get
into a situation where we're hitting cycles in class
initialization. Fixes#68816.
svn path=/trunk/mono/; revision=35374
* expression.cs (LocalVariableReference.DoResolveLValue): Check
for obsolete use of a variable here. Fixes regression on errors
svn path=/trunk/mcs/; revision=35371
* HttpWebRequest.cs: don't fail if the request has already been sent
when accessing ContentType setter. Fixes bug #68848.
svn path=/trunk/mcs/; revision=35366
* DateTimeTest.cs (TestToString): Remove test C28.
The test does not work in banglore because they have an
offset that has a half-hour part.
svn path=/trunk/mcs/; revision=35363
Fix#62358, implemented security attribute encoding.
* attribute.cs (Attribute.CheckSecurityActionValididy): New method.
Tests permitted SecurityAction for assembly or other types.
(Assembly.ExtractSecurityPermissionSet): New method. Transforms
data from SecurityPermissionAttribute to PermisionSet class.
* class.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.
* codegen.cs (AssemblyClass.ApplyAttributeBuilder): Added
special handling for System.Security.Permissions.SecurityAttribute
based types.
* enum.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.
* parameter.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.
* rootcontext.cs: Next 2 core types.
* typemanager.cs (TypeManager.security_permission_attr_type):
Built in type for the SecurityPermission Attribute.
(code_access_permission_type): Build in type.
svn path=/trunk/mcs/; revision=35362
* expression.cs (LocalVariableReference.DoResolveBase, Emit):
Remove the tests for `ec.RemapToProxy' from here, and encapsulate
all of this information into
EmitContext.EmitCapturedVariableInstance.
* codegen.cs (EmitCapturedVariableInstance): move here the
funcionality of emitting an ldarg.0 in the presence of a
remapping. This centralizes the instance emit code.
(EmitContext.EmitThis): If the ScopeInfo contains a THIS field,
then emit a load of this: it means that we have reached the
topmost ScopeInfo: the one that contains the pointer to the
instance of the class hosting the anonymous method.
* anonymous.cs (AddField, HaveCapturedFields): Propagate field
captures to the topmost CaptureContext.
2004-10-12 Miguel de Icaza <[email protected]>
* expression.cs (LocalVariableReference): Move the knowledge about
the iterators into codegen's EmitCapturedVariableInstance.
2004-10-11 Miguel de Icaza <[email protected]>
* codegen.cs (EmitContext.ResolveTopBlock): Emit a 1643 when not
all code paths return a value from an anonymous method (it is the
same as the 161 error, but for anonymous methods).
2004-10-08 Miguel de Icaza <[email protected]>
The introduction of anonymous methods in the compiler changed
various ways of doing things in the compiler. The most
significant one is the hard split between the resolution phase
and the emission phases of the compiler.
For instance, routines that referenced local variables no
longer can safely create temporary variables during the
resolution phase: they must do so from the emission phase,
since the variable might have been "captured", hence access to
it can not be done with the local-variable operations from the runtime.
* statement.cs
(Block.Flags): New flag `IsTopLevel' to indicate that this block
is a toplevel block.
(ToplevelBlock): A new kind of Block, these are the blocks that
are created by the parser for all toplevel method bodies. These
include methods, accessors and anonymous methods.
These contain some extra information not found in regular blocks:
A pointer to an optional CaptureContext (for tracking captured
local variables and parameters). A pointer to the parent
ToplevelBlock.
(Return.Resolve): Catch missmatches when returning a value from an
anonymous method (error 1662).
Invoke NeedReturnLabel from the Resolve phase instead of the emit
phase.
(Break.Resolve): ditto.
(SwitchLabel): instead of defining the labels during the
resolution phase, we now turned the public ILLabel and ILLabelCode
labels into methods called GetILLabelCode() and GetILLabel() that
only define the label during the Emit phase.
(GotoCase): Track the SwitchLabel instead of the computed label
(its contained therein). Emit the code by using
SwitchLabel.GetILLabelCode ().
(LocalInfo.Flags.Captured): A new flag has been introduce to track
whether the Local has been captured or not.
(LocalInfo.IsCaptured): New property, used to tell whether the
local has been captured.
* anonymous.cs: Vastly updated to contain the anonymous method
support.
The main classes here are: CaptureContext which tracks any
captured information for a toplevel block and ScopeInfo used to
track the activation frames for various local variables.
Each toplevel block has an optional capture context associated
with it. When a method contains an anonymous method both the
toplevel method and the anonymous method will create a capture
context. When variables or parameters are captured, they are
recorded on the CaptureContext that owns them, for example:
void Demo () {
int a;
MyDelegate d = delegate {
a = 1;
}
}
Here `a' will be recorded as captured on the toplevel
CapturedContext, the inner captured context will not have anything
(it will only have data if local variables or parameters from it
are captured in a nested anonymous method.
The ScopeInfo is used to track the activation frames for local
variables, for example:
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++){
MyDelegate d = delegate {
call (i, j);
}
}
At runtime this captures a single captured variable `i', but it
captures 10 different versions of the variable `j'. The variable
`i' will be recorded on the toplevel ScopeInfo, while `j' will be
recorded on a child.
The toplevel ScopeInfo will also track information like the `this'
pointer if instance variables were referenced (this is necessary
as the anonymous method lives inside a nested class in the host
type of the method).
(AnonymousMethod): Expanded to track the Toplevel, implement
`AnonymousMethod.Compatible' to tell whether an anonymous method
can be converted to a target delegate type.
The routine now also produces the anonymous method content
(AnonymousDelegate): A helper class that derives from
DelegateCreation, this is used to generate the code necessary to
produce the delegate for the anonymous method that was created.
* assign.cs: API adjustments for new changes in
Convert.ImplicitStandardConversionExists.
* class.cs: Adjustments to cope with the fact that now toplevel
blocks are of type `ToplevelBlock'.
* cs-parser.jay: Now we produce ToplevelBlocks for toplevel blocks
insteda of standard blocks.
Flag errors if params arguments are passed to anonymous methods.
* codegen.cs (EmitContext): Replace `InAnonymousMethod' with
`CurrentAnonymousMethod' which points to the current Anonymous
Method. The variable points to the AnonymousMethod class that
holds the code being compiled. It is set in the new EmitContext
created for the anonymous method.
(EmitContext.Phase): Introduce a variable and an enumeration to
assist in enforcing some rules about when and where we are allowed
to invoke certain methods (EmitContext.NeedsReturnLabel is the
only one that enfonces this right now).
(EmitContext.HaveCaptureInfo): new helper method that returns
whether we have a CapturedContext initialized.
(EmitContext.CaptureVariable): New method used to register that a
LocalInfo must be flagged for capturing.
(EmitContext.CapturedParameter): New method used to register that a
parameters must be flagged for capturing.
(EmitContext.CapturedField): New method used to register that a
field must be flagged for capturing.
(EmitContext.HaveCapturedVariables,
EmitContext.HaveCapturedFields): Return whether there are captured
variables or fields.
(EmitContext.EmitMethodHostInstance): This is used to emit the
instance for the anonymous method. The instance might be null
(static methods), this (for anonymous methods that capture nothing
and happen to live side-by-side with the current method body) or a
more complicated expression if the method has a CaptureContext.
(EmitContext.EmitTopBlock): Routine that drives the emission of
code: it will first resolve the top block, then emit any metadata
and then emit the code. The split is done so that we can extract
any anonymous methods and flag any captured variables/parameters.
(EmitContext.ResolveTopBlock): Triggers the resolution phase,
during this phase, the ILGenerator should not be used as labels
and local variables declared here might not be accessible to any
code that is part of an anonymous method.
Exceptions to this include the temporary variables that are
created by some statements internally for holding temporary
variables.
(EmitContext.EmitMeta): New routine, in charge of emitting all the
metadata for a cb
(EmitContext.TemporaryReturn): This method is typically called
from the Emit phase, and its the only place where we allow the
ReturnLabel to be defined other than the EmitMeta. The reason is
that otherwise we would have to duplicate a lot of logic in the
Resolve phases of various methods that today is on the Emit
phase.
(EmitContext.NeedReturnLabel): This no longer creates the label,
as the ILGenerator is not valid during the resolve phase.
(EmitContext.EmitThis): Extended the knowledge in this class to
work in anonymous methods in addition to iterators.
(EmitContext.EmitCapturedVariableInstance): This emits whatever
code is necessary on the stack to access the instance to a local
variable (the variable will be accessed as a field).
(EmitContext.EmitParameter, EmitContext.EmitAssignParameter,
EmitContext.EmitAddressOfParameter): Routines to support
parameters (not completed at this point).
Removals: Removed RemapLocal and RemapLocalLValue. We probably
will also remove the parameters.
* convert.cs (Convert): Define a `ConstantEC' which points to a
null. This is just to prefity some code that uses
ImplicitStandardConversion code and do not have an EmitContext
handy.
The idea is to flag explicitly that at that point in time, it is
known that the conversion will not trigger the delegate checking
code in implicit conversions (which requires a valid
EmitContext).
Everywhere: pass new EmitContext parameter since
ImplicitStandardConversionExists now requires it to check for
anonymous method conversions.
(Convert.ImplicitStandardConversionExists): If the type of an
expression is the anonymous_method_type, and the type is a
delegate, we invoke the AnonymousMethod.Compatible method to check
whether an implicit conversion is possible.
(Convert.ImplicitConversionStandard): Only do implicit method
group conversions if the language level is not ISO_1.
* delegate.cs (Delegate.GetInvokeMethod): Common method to get the
MethodInfo for the Invoke method. used by Delegate and
AnonymousDelegate.
* expression.cs (Binary.DoNumericPromotions): only allow anonymous
method conversions if the target type is a delegate.
Removed extra debugging nops.
(LocalVariableReference): Turn the `local_info' into a public
field.
Add `prepared' field, the same hack used for FieldExprs to cope
with composed assignments, as Local variables do not necessarily
operate purely on the stack as they used to: they can be captured
fields.
Add `temp' for a temporary result, like fields.
Refactor DoResolve and DoResolveLValue into DoResolveBase.
It now copes with Local variables that are captured and emits the
proper instance variable to load it from a field in the captured
case.
(ParameterReference.DoResolveBase): During the resolve phase,
capture parameters if we are in an anonymous method.
(ParameterReference.Emit, ParameterReference.AddressOf): If in an
anonymous method, use the EmitContext helper routines to emit the
parameter reference.
* iterators.cs: Set RemapToProxy to true/false during the
EmitDispose class.
* parameters.cs (GetParameterByName): New helper method.
* typemanager.cs (anonymous_method_type) a new type that
represents an anonyous method. This is always an internal type,
used as a fencepost to test against the anonymous-methodness of an
expression.
svn path=/trunk/mcs/; revision=35340
* XmlTextReader.cs : Don't create attribute Value string on Read()
(i.e. create string when get_Value() is invoked.) This optimizes
some kind of XmlTextReader usage significantly such as Skip().
svn path=/trunk/mcs/; revision=35338
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
code that reads the url from the config file, instead of doing it at
the moment of generation. This fixes bug #68795.
svn path=/trunk/mcs/; revision=35333
* mini.c (mono_jit_free_method): Provide extra information for
this error. Currently this leaks, but will be turned into a
developer option in the future.
svn path=/trunk/mono/; revision=35332
* driver.c (mono_main): Applied patch from Willibald Krenn <[email protected]>. Make --graph work for icalls and pinvoke methods.
svn path=/trunk/mono/; revision=35330
* ChunkStream.cs:
(WantMore): we're not done until we get a 0 chunk size and the trailer.
The 0 can be expressed as more than one character too (ie, 000000).
* HttpWebRequest.cs: new argument in SetResponseError.
* WebConnection.cs: added argument to HandleError as a hint for
debugging.
(Connect): make the chunked stream be in the expected state when
reusing.
* WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
svn path=/trunk/mcs/; revision=35312
* image.c: Avoid overwriting values in the loaded_images_hash when an
assembly is loaded multiple times. Fixes#61152.
svn path=/trunk/mono/; revision=35308
* assembly.c (mono_assembly_names_equal): Compare the cultures as well,
so multiple satellite assemblies for the same name can be loaded.
Fixes#68259.
* mono_domain_assembly_preload: Actually return the loaded assembly,
not NULL.
svn path=/trunk/mono/; revision=35304
* aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte
boundary. Fixes reading of PATCH_INFO_R4 and R8.
(mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
svn path=/trunk/mono/; revision=35296
* gc.c (finalize_domain_objects): Call GC_invoke_finalizers () so
pending finalizers are not invoked after the appdomain has been
unloaded. Fixes#67862.
svn path=/trunk/mono/; revision=35292
Add text between end of current lookup window and next % match if we just got a match, or add all text to the end if there are no further % matches.
This fixes bug #64995.
svn path=/trunk/mcs/; revision=35291
Fixed bugs #63705, #67130
* decl.cs (MemberCache.MemberCache): Add parameter to distinguish
imported and defined interfaces.
(CacheEntry, EntryType): Changed to protected internal.
* class.cs (TypeContainer.DoDefineMembers): Setup cache for
interfaces too.
* typemanager.cs (LookupInterfaceContainer): New method.
Fills member container from base interfaces.
svn path=/trunk/mcs/; revision=35286
* Mono.Data/.cvsignore
* Mono.Data/AssemblyInfo.cs
* Mono.Data/Makefile
* Mono.Data/Mono.Data.dll.sources: added files
for build of Mono.Data.dll
This assembly includes the ProviderFactory
* Makefile: added Mono.Data.dll to the build
* Mono.Data/app.config: added providers and
removed obsolete providers to app settings xml file
* Mono.Data/test/Mono.Data.dll: delete
svn path=/trunk/mcs/; revision=35282
* XPathEditableDocument.cs :
Now it implements updated version of .NET 2.0.
.ctor() should accept XmlNode, instead of XmlDocument.
svn path=/trunk/mcs/; revision=35267
* XPathDocument.cs : now all the new stuff that used to be in 2.0 are
reverted.
* XPathEditableNavigator.cs : It will be removed. Right now modified
a bit to pass build.
* XPathNavigator.cs : Added members that are merged from
XPathEditableNavigator. Updated members name.
svn path=/trunk/mcs/; revision=35264
* AuthenticodeFormatter.cs: Fixed case where Url is null (broken since
we switched from string to Uri). Now use "using" for FileStream.
svn path=/trunk/mcs/; revision=35243
data if the provided url does not have the expected format. This fixes
a regression from the fix for bug #66768 and fixes#68669.
svn path=/trunk/mcs/; revision=35242
data if the provided url does not have the expected format. This fixes
a regression from the fix for bug #66768 and fixes#68669.
svn path=/trunk/mcs/; revision=35241
* icall.c: Allows the runtime to "share" (when known) the public key
token of an assembly. This avoid the need to recalculate the token
(from the public key) in managed code.
svn path=/trunk/mono/; revision=35238
* regex.cs: Fixed a bug introduced with the last patch which
prevented any replacements when a postive count is given.
This also happens in all overloads without count parameter.
svn path=/trunk/mcs/; revision=35236
* debug-helpers.c (append_class_name): use '+' as the delimiter,
not '/', so that it matches what the debugger uses to look up
methods.
svn path=/trunk/mono/; revision=35234
* SqlSharpCli.cs: removed obsolete providers (Mono.Data.MySql,
Mono.Data.PostgreSqlClient, Mono.Data.DB2Client),
added provider for FirebirdSql.Data.Firebird, fixed
loading of external providers so they work with
Mono having a GAC
svn path=/trunk/mcs/; revision=35228
* mini-exceptions.c (mono_handle_exception): Call
mono_debugger_handle_exception() to tell the debugger about
catch/finally clauses.
svn path=/trunk/mono/; revision=35226
* mono-debug-debugger.c (mono_debugger_throw_exception): New
public method; this is called each time an exception is thrown and
allows the debugger to use exception catch points.
svn path=/trunk/mono/; revision=35225
test-compiler-jit-real, and move body to harness.mk.
Update to use 'make' to loop over testcases, so that they can be
run in parallel.
(run-test-local): Update.
(test-generics-2): Likewise.
* harness.mk: New file. Contains the actual harness, and also
lists dependencies in multi-file testcases.
svn path=/trunk/mcs/; revision=35220
* mono-debug-debugger.c (mono_debugger_handle_exception): Write
the stack pointer and the exception object in some struct and pass
that to the debugger.
svn path=/trunk/mono/; revision=35211
* MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the method table
before actually writing it to disk and update MethodEntry.Index.
* MonoSymbolTable.cs (MethodEntry.Index): Make this a writable
property; set it after creating all the methods and sorting the
method table.
svn path=/trunk/mcs/; revision=35185
2004-09-13 Chris Toshok <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
token before writing out the method index, since the "index" used
elsewhere is just added to the MethodIndexOffset.
svn path=/trunk/mcs/; revision=35183
* mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
used by CEE_NEWARR.
* ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
svn path=/trunk/mono/; revision=35177
* mini-exceptions.c (mono_handle_exception): Call
mono_debugger_handle_exception() to tell the debugger about
catch/finally clauses.
svn path=/trunk/mono/; revision=35172
* mono-debug-debugger.h (MonoDebuggerEvent): Added
MONO_DEBUGGER_EVENT_EXCEPTION.
* mono-debug-debugger.c (mono_debugger_handle_exception): New
public function to send the debugger a notification for an
exception and inform it about a catch/finally clause.
svn path=/trunk/mono/; revision=35171
* Evidence.cs: Fix the case where GetPublicKey returns a 0 length
byte array so that we don't create an invalid StrongName evidence.
svn path=/trunk/mcs/; revision=35169
SiteMapDataSourceView.cs:
SqlDataSourceView.cs:
XmlDataSourceView.cs: Cosmetic changes because of modifications in
base class, DataSourceView. Changes are to keep things compiling.
svn path=/trunk/mcs/; revision=35167
* ast.cs (Function): added method emit_return_local_field, if
there's a return stm inside a function we must allocate a
JSLocalField indicating the return type of the function.
* FunctionDeclaration.cs, FunctionExpression.cs: generate the
extra JSLocalField if needed
svn path=/trunk/mcs/; revision=35162
our form and as the non-client area where menus are drawn
- Added/Moved required tie-ins to Jordi's menus
- Fixed/Implemented the FormStartPosition functionality
svn path=/trunk/mcs/; revision=35159
* XmlSerializationWriter.cs : When namespace is an empty string,
XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
such case.
svn path=/trunk/mcs/; revision=35146
* SecurityManager.cs: Changed private static methods to use a single
parameter (as method permissions overrides class permissions for
demand, assert, deny and permitonly).
svn path=/trunk/mcs/; revision=35143
SiteMapDataSourceView.cs: Corrected class definition and updated.
XmlHierarchicalDataSourceView.cs: Modified according to changes in
base class.
svn path=/trunk/mcs/; revision=35127
* marshal.c (emit_marshal_object): Fix freeing of memory when a reference type is
marshalled as [In,Out]. Fixes#58325.
svn path=/trunk/mono/; revision=35113
* System.Text.RegularExpressions/regex.cs: in Replace, when count is
negative, replacement continues to the end of the string.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added test for this
fix.
Fixes bug #68398. Patch by Jon Larimer.
svn path=/trunk/mcs/; revision=35110
* expression.cs (Cast.DoResolve): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
(Probe.DoResolve): Likewise.
svn path=/trunk/mcs/; revision=35108
* class.cs (FieldMember.Define): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
(MemberBase.DoDefine): Likewise.
* expression.cs (New.DoResolve): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
(ComposedCast.DoResolveAsTypeStep): Likewise.
* statement.cs (LocalInfo.Resolve): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
svn path=/trunk/mcs/; revision=35093
* XmlTextReader.cs :
Fixed CheckCharacters setter that always set false.
CheckCharacters check is also required for ReadText(). This fixes
bug #68449.
svn path=/trunk/mcs/; revision=35085
- Added SetModal stub
- Added generation of WM_ACTIVATE message (still needs testing)
- Added SetTopMost stub
- Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
svn path=/trunk/mcs/; revision=35074
- Added Owner/OwnedForms handling
- Implemented Z-Ordering for owned forms
- Removed unneeded private overload of ShowDialog
- Fixed ShowDialog, added the X11 incarnation of modal handling (or so I
hope)
- Fixed Close(), had wrong default
- Added firing of OnLoad event
- Added some commented out debug code for Ownership handling
svn path=/trunk/mcs/; revision=35068
* DateTime.cs (ZeroPad): Use unsafe code to speed this up. We
avoid entering slow integer formatting code.
(_ToString): Use ZeroPad here when possible, as it is faster.
svn path=/trunk/mcs/; revision=35057
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
is regatded as invalid. This fixes bug #68410. (Error message was
also not correct.)
svn path=/trunk/mcs/; revision=35045
* DataSet.cs : Also clear UnhandledAttributes ArrayList before
generating next attribute column schema. This fixes bug #68432.
svn path=/trunk/mcs/; revision=35043
* CodeAccessPermission.cs: Implemented stubs (soon to be icalls) to
get/set/clear the current security frame on the stack. Implemented
Assert, Deny and PermitOnly with the new methods. Changed Demand to
use the CheckAssert, CheckDeny, CheckPermitOnly and CheckDemand
introduced in 2.0.
* PermissionSet.cs: Fixed IsEmpty using documentation from 2.0 beta 1.
Implemented immediate (i.e. no stack walk) caller demand (CAS and
non-CAS) required for LinkDemand and InheritanceDemand. Implemented
Assert, Deny and PermitOnly using CodeAccessPermission new methods.
Re-implement Demand to separate CAS and non-CAS permissions.
* SecurityManager.cs: Added new private static methods that will
either be called by the JIT (linkdemand), runtime (inheritancedemand)
or by code emitted by the JIT (demand, assert, deny and permitonly).
svn path=/trunk/mcs/; revision=35042
methods as their native size, fixed bug #57543, #57545.
* mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
This saves a temporary register and mullw call down into 1 (minor perf
increase for cases like sum = sum * 5;
svn path=/trunk/mono/; revision=35039
* PrincipalPermission.cs: Fixed bug in Intersect (thanks to Alain
Normandin). Changed XML tag to "Permission" (not "IPermission").
svn path=/trunk/mcs/; revision=35030
- Added an internal virtual method Paint (), so that
derived classes can do their painting on their own.
- Modified OnPaint () to call Paint ().
svn path=/trunk/mcs/; revision=35025
This change in CreateParams fixes this on Windows. We
still need to implement this windowstyle behavior in
our X11 driver.
svn path=/trunk/mcs/; revision=35017
* TextInfo.cs (ToString) Fix the return value for ToString.
(Add a new parameter: the CultureInfo, since we implemented things
in terms of the CultureInfo in our runtime, and not the
TextInfo).
svn path=/trunk/mcs/; revision=35012
* Iterator.cs :
- Added WrapperIterator to return BaseIterator in such case that
variable reference is resolved to XPathNodeIterator. This fixes
bug #68267.
- Path ".." is reverse axis (actually no effect).
- Fixed DescendantIterator.Clone() that missed "_finished" field.
* Expression.cs :
In ExprVariable.Evaluate(), use WrapperIterator() for custom
XPathNodeIterator.
svn path=/trunk/mcs/; revision=34996
* Socket.cs (Sockets ): Set Accept()ed socket blocking status to
be the same as the listening socket. This follows MS behaviour.
svn path=/trunk/mcs/; revision=34989
* sockets.c (_wapi_accept): Revert the previous change. We now
set the accepted socket to have the same blocking status as the
listening socket in managed code. This follows MS behaviour.
svn path=/trunk/mono/; revision=34987
- Fixed the MouseMove event handling when mouse is pressed,
ie drag event handling.
- Replaced the usage of ToolBarButton.Pressed property to
ToolBarButton.pressed internal variable.
svn path=/trunk/mcs/; revision=34984
with mouse pressed ie mouse drag event.
- Changed 'Pressed' property to return true only when
'inside' and 'pressed' are both true.
- Some coding style love.
svn path=/trunk/mcs/; revision=34983
* sockets.c (_wapi_accept): On Darwin, make sure a newly
accept()ed socket is blocking. Fixes bug 67355, patch by
[email protected].
svn path=/trunk/mono/; revision=34980
* DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
correct subclass is returned. This fixes bug #67631
svn path=/trunk/mcs/; revision=34979
* mb-parser.jay: For statement is enabled to take
optional declaration of the counter variable.
E.g. now for statement can be declared as
For i as integer = 0 to 5
End For
svn path=/trunk/mcs/; revision=34974
* DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
correct subclass is returned. This fixes bug #67627
svn path=/trunk/mcs/; revision=34970
independent error messages and splitted them in to multiple files
where possible so that atmost one error is tested for in any given
file.
svn path=/trunk/mcs/; revision=34966
* DataSet.cs : clear UnhandledAttributes ArrayList before generating
next element column schema. This fixes bug #68256.
svn path=/trunk/mcs/; revision=34959
* Fix check rendering (centre correctly for normal style, offset
correctly for FlatStyle).
* Fix border color usage (use backcolor) for FlatStyle.Popup
* Use checkbox.Capture instead of checkbox.is_pressed when rendering
flatstyle states.
svn path=/trunk/mcs/; revision=34952
files that emit just a single compile time error. All these files have
multiple errors. Each of these files need to be broken in to multiple
files so that no more than one error gets reported by a test case.
svn path=/trunk/mcs/; revision=34947
* class.cs (TypeContainer.EmitContext): New property.
(DefineNestedTypes): Create an emitcontext for each part.
(MethodCore.DoDefineParameters): Use container's emitcontext.
Pass type array to InternalParameters.
(MemberBase.DoDefine): Use container's emitcontext.
(FieldMember.Define): Likewise.
(Event.Define): Likewise.
(SetMethod.GetParameterInfo): Change argument to EmitContext.
Pass type array to InternalParameters.
(SetIndexerMethod.GetParameterInfo): Likewise.
(SetMethod.Define): Pass emitcontext to GetParameterInfo.
* delegate.cs (Define): Pass emitcontext to
ComputeAndDefineParameterTypes and GetParameterInfo. Pass type
array to InternalParameters.
* expression.cs (ParameterReference.DoResolveBase): Pass
emitcontext to GetParameterInfo.
(ComposedCast.DoResolveAsTypeStep): Remove check on
ec.ResolvingTypeTree.
* parameter.cs (Parameter.Resolve): Change argument to
EmitContext. Use ResolveAsTypeTerminal.
(Parameter.GetSignature): Change argument to EmitContext.
(Parameters.ComputeSignature): Likewise.
(Parameters.ComputeParameterTypes): Likewise.
(Parameters.GetParameterInfo): Likewise.
(Parameters.ComputeAndDefineParameterTypes): Likewise.
Re-use ComputeParameterTypes. Set ec.ResolvingTypeTree.
* support.cs (InternalParameters..ctor): Remove variant that takes
a DeclSpace.
* typemanager.cs (system_intptr_expr): New.
(InitExpressionTypes): Initialize it.
(this has been tested with a full mono bootstrap, and has been used
to build gtk-sharp, dbus, monodoc, tomboy, and monodevelop)
svn path=/trunk/mcs/; revision=34945
member out of private constructor to class initialization.
So that, we get it right even if Graphics is not instantiated.
This fixes the problem we face (otherwise) when we make first
call to Graphics.FromHwnd () method.
svn path=/trunk/mcs/; revision=34943
documentation. They need to return defined colors if the passed
color matches the configured control color. Thanks to John BouAntoun for
pointing this out.
svn path=/trunk/mcs/; revision=34940
* expression.cs (MemberAccess.DoResolve): If we're a SimpleName
and have type arguments, create and resolve a ConstructedType.
svn path=/trunk/mcs/; revision=34933
* expression.cs (MemberAccess.DoResolve): If we're a SimpleName
and have type arguments, create and resolve a ConstructedType.
svn path=/trunk/mcs/; revision=34929
* every *.cs: moved to namespace-based subdirectories as is the norm in Mono
* Mono.GetOptions.dll.sources: adjusted to new sources locations
svn path=/trunk/mcs/; revision=34924
* DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
DataColumn.ReadOnly was not handled. This fixes bug #68005.
Attribute defaultValue was not handled too.
svn path=/trunk/mcs/; revision=34905
* decl.cs (MemberCache.FindMemberToOverride): Use
TypeManager.IsEqual() to compare the parameters and Type.Equals()
to compare the invocationType.
svn path=/trunk/mcs/; revision=34894
* typemanager.cs (TypeManager.IsEqual): Added support for arrays.
When comparing two type parameters, only do the signature-only
comparision for method type parameters.
svn path=/trunk/mcs/; revision=34893
* TypeBuilder.cs (TypeBuilder.setup_generic_class): Renamed to
create_generic_class() and added a new setup_generic_class().
(TypeBuilder.DefineGenericParameters): Call setup_generic_class()
before creating the type parameters.
svn path=/trunk/mcs/; revision=34891
* metadata.c (mono_metadata_generic_param_equal): We always have
an owner.
* class.c
(mono_class_from_generic_parameter): We need to have an owner.
(my_mono_class_from_generic_parameter): Likewise.
* reflection.c (mono_reflection_setup_generic_class): Renamed to
mono_reflection_create_generic_class() and added a new
mono_reflection_setup_generic_class().
(mono_reflection_initialize_generic_param): If we're a nested
generic type and inherited from the containing class, set our
owner to the outer class.
svn path=/trunk/mono/; revision=34890
* icall.c (ves_icall_System_Reflection_MethodBase_GetMethodBodyInternal): New icall.
* reflection.c (mono_method_body_get_object): New function to create
a MethodBody object.
* object-internals.h object.h: Add MonoReflectionMethodBody structure.
svn path=/trunk/mono/; revision=34886
* Makefile: Move Microsoft.VisualBasic.dll to be built after
System.Windows.Forms.dll is built, because VB now requires SWF. This
fixes the build.
svn path=/trunk/mcs/; revision=34883
* Makefile: Added reference to System.Windows.Forms as interface Microsoft.VisualBasic.CompilerServices.IVbHost needs it.
svn path=/trunk/mcs/; revision=34869
* FileSystem.cs: Adjusting exposed API according to class status page ('ref' instead of 'out').
Commented out an additional API.
svn path=/trunk/mcs/; revision=34867
* mb-parser.jay: If statement is enabled to parse
following type of statement
If <condition> Then <statement> else <statement>
svn path=/trunk/mcs/; revision=34861
* class.cs (TypeContainer.DefineType): Only call TypeParameter.Define()
on our own type parameters, not on the ones we inherit from a containing
class.
* expression.cs (Invocation.InferType): Use `==', not `Equals()' for
the comparision.
* generic.cs (TypeParameter.Define): We may only be called once.
* pending.cs (Pending.InterfaceMethod): Call TypeManager.Real_IsEqual()
instead of TypeManager.IsEqual().
* typemanager.cs (TypeManager.Real_IsEqual): New method; this'll
soon be renamed to IsEqual() and thus replace the old IsEqual().
svn path=/trunk/mcs/; revision=34854
* mini.c (mono_method_to_ir): If we're a generic method, get the
MonoGenericContainer from our MonoMethodNormal and create a
MonoGenericContext from it.
svn path=/trunk/mono/; revision=34850
* class-internals.h
(MonoGenericInst): Added `MonoGenericContainer *container'.
(MonoGenericMethod): Likewise.
(MonoGenericContext): Likewise.
(MonoGenericParam): Added `MonoGenericContainer *owner'.
* metadata.c
(do_mono_metadata_parse_type): Added a `MonoGenericContainer *' argument.
(do_mono_metadata_parse_generic_inst): Likewise.
(mono_metadata_parse_type_full): New public method. This is the actual
mono_metadata_parse_type() implementation - with an additional
`MonoGenericContainer *' argument.
(mono_metadata_parse_array_full): Likewise.
(mono_metadata_parse_signature_full): Likewise.
(mono_metadata_parse_method_signature_full): Likewise.
(mono_metadata_parse_mh_full): Likewise.
(mono_type_create_from_typespec): Likewise.
(mono_metadata_interfaces_from_typedef_full): New public method;
this is similar to the other _full() methods, but we take a
`MonoGenericContext *' since we have to pass it to mono_class_get_full().
(mono_metadata_parse_generic_param): Take an additional
`MonoGenericContainer *' argument and lookup the MonoGenericParam
from that container.
(mono_metadata_generic_param_equal): New static method to compare
two type parameters.
(_mono_metadata_type_equal): New static method; takes an
additional `gboolean signature_only' argument - if true, we don't
compare the owners of generic parameters.
(mono_metadata_signature_equal): Call _mono_metadata_type_equal()
with a TRUE argument - do a signature-only comparision.
* loader.c: Use the new _full() methods and pass the
MonoGenericContainer to them.
* object-internals.h (MonoReflectionTypeBuilder): Added
`MonoGenericContainer *generic_container' field.
(MonoReflectionMethodBuilder): Likewise.
* icall.c (ves_icall_type_Equals): Use _mono_metadata_type_equal()
and do a signature-only comparision.
svn path=/trunk/mono/; revision=34849
* expression.cs (MemberAccess.ResolveMemberAccess): When looking
up a constant, do not use the "Const" object after LookupConstant,
instead use the result that is returned in the `out' parameter
that already has the GetValue done. Fixes the corlib regression,
and removes duplicated code.
svn path=/trunk/mcs/; revision=34843
* System.Web/TraceContext.cs: don't cast to Page is the handler it's
not a page.
* System.Web.Configuration/WebConfigurationSettings.cs: use
CurrentExecutionFilePath instead of FilePath. Fixes bug #67982.
svn path=/trunk/mcs/; revision=34841
* const.cs (ConvertExpressionToConstant): Refactor code that does
the Expression to Constant checking. This can be used in other
places in the compiler that need to go from an Expression that
wraps a Constant (like the casts) to a Constant.
* ecore.cs (Expression.ConvertIntLiteral): If we got enumerations,
unfold those into the underlying types before testing for the
ImplicitConversions, as that code wont cope with casts from
enumerations to constants.
* statement.cs (SwitchLabel.ResolveAndReduce): Reuse
ConvertExpressionToConstant.
svn path=/trunk/mcs/; revision=34836
* support/Makefile.am (libMonoPosixHelper_la_SOURCES): Do not build
zlib_macros if zlib.h is not found.
* configure.in: Add check for zlib.h.
svn path=/trunk/mono/; revision=34818
* domain-internals.h (MonoDomain): Rename 'assemblies' hash table to
'assembly_by_name' and add an 'assemblies' list.
* assembly.h assembly.c: Add a new search hook for determining whenever
an assembly is already loaded. Use this instead of searching in the
loaded_assemblies list.
* domain.c appdomain.c: Implement the new search hook so loaded
assemblies are now scoped by appdomain. Fixes#67727.
svn path=/trunk/mono/; revision=34810
* typemanager.cs: Changing StandardModule to use less memory, by doing string
concatenation only once. It was wasting 1 MB on the test case.
svn path=/trunk/mcs/; revision=34809
* XPathSequence.cs :
missed last checkin.
Added WrapperIterator, RemovalIterator for fn:remove(),
InsertingIterator for fn:insertBefore() and DistinctValueIterator
for fn:distinct-values().
* XQueryCliFunction.cs :
Improved error message. Handle null argument as empty sequence.
* XQueryFunction.cs :
Fixed incorrect function name fn:zero-or-more -> fn:zero-or-one.
* XQueryFunctionCliImpl.cs :
Implemented some functions. Fixed some function signatures.
svn path=/trunk/mcs/; revision=34801
is not invariant, avoid an icall on every character.
(This chopped off 15s on a testcase that 'mbas' originally took 1m35s.)
svn path=/trunk/mcs/; revision=34798
* DataSet.cs :
- When AllowDBNull is false on attribute DataColumn, its schema
should contain use="required". This fixes bug #66792.
- If MaxLength is set on attribute DataColumn, the mapped schema
type should contain maxLength facet. This fixes bug #66793.
svn path=/trunk/mcs/; revision=34792
* XPath2Expression.cs, XPathSequence.cs :
Changed ListIterator.ctor() signature not to demand current sequence.
* XQueryCliFunction.cs, XQueryFunctionCliImpl.cs :
Now, to represent a sequence, IEnumerable is not used anymore (it is
confusing because System.String is also IEnumerable). So those native
functions should just require XPathSequence (for user functions?
not idea how MS will solve the "problem").
If a native function method has [XQueryFunctionContext] attribute,
then it means that the function requires current sequence, so fill
it before invoking the method.
* XQueryFunctionContextAttribute.cs : added, to mark "it needs
current sequence" for fn:position() and fn:count().
svn path=/trunk/mcs/; revision=34788
* Makefile (run-mcs-tests): Save log of output to
$(TEST_PROFILE).log.
(run-generics-tests): Likewise.
Report from K Sathyasudha <[email protected]>.
svn path=/trunk/mcs/; revision=34775
sync with errors/Makefile.
Reported by K Sathyasudha <[email protected]>.
Testcases for type-resolution.
* test-300.cs: Add tests for local declarations and 'foreach'.
* test-301.cs: New testcase: several 'unsafe' related keywords.
* test-302.cs: New testcase: 'catch' clause parameters.
* test-303.cs: New testcase: 'using' keyword.
* test-304.cs, test-305.cs, test-306.cs, test-307.cs: New.
Variants that use namespace aliases.
* Makefile (NEW_TEST_SOURCES_common): Add new testcases.
svn path=/trunk/mcs/; revision=34774
* decl.cs (MemberCore.InUnsafe): New property.
* class.cs (MemberBase.DoDefine): Use ResolveAsTypeTerminal
with newly created EmitContext.
(FieldMember.Define): Likewise.
* delegate.cs (Delegate.Define): Likewise.
* ecore.cs (SimpleName.ResolveAsTypeStep): Lookup with alias
only if normal name-lookup fails.
(TypeExpr.DoResolve): Enable error-checking.
* expression.cs (ArrayCreation.DoResolve): Use ResolveAsTypeTerminal.
(SizeOf.DoResolve): Likewise.
(ComposedCast.DoResolveAsTypeStep): Likewise.
(StackAlloc.DoResolve): Likewise.
* statement.cs (Block.Flags): Add new flag 'Unsafe'.
(Block.Unsafe): New property.
(Block.EmitMeta): Set ec.InUnsafe as appropriate.
(Unsafe): Set 'unsafe' flag of contained block.
(LocalInfo.Resolve): Use ResolveAsTypeTerminal.
(Fixed.Resolve): Likewise.
(Catch.Resolve): Likewise.
(Using.ResolveLocalVariableDecls): Likewise.
(Foreach.Resolve): Likewise.
svn path=/trunk/mcs/; revision=34773
* DefaultWatcher.cs: if the file is removed between reading the
directory and filling the file info, catch the exception and ignore the
file. Fixes bug #59482.
svn path=/trunk/mcs/; revision=34767
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
pattern has no wildcards. Fixes bug #67447.
svn path=/trunk/mcs/; revision=34765
* icall.c (ves_icall_Type_GetInterfaces): Include interfaces
implemented by other interfaces in the result. Fixes#65764.
svn path=/trunk/mono/; revision=34761
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
changes when Transfer or Execute are used, not FilePath.
* System.Web/HttpServerUtility.cs: moved form saving/restoring from
Transfer to Execute, as it's needed there too. the query string is
correctly set now. Fixes bug #67388.
* System.Web/HttpContext.cs:
* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
instead of SetFilePath.
svn path=/trunk/mcs/; revision=34747
* XPathSequence.cs, XQueryTokenizer.cs :
removed commented && unused code.
* XQueryContext.cs, XQueryCliFunction.cs, XQueryFunction.cs,
XQueryFunctionCliImpl.cs :
Now that position() requires current sequence that is not managed by
XQueryContextManager (that is for FLWOR), it need to support
XPathSequence input as the current node information.
svn path=/trunk/mcs/; revision=34741
* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal):
Handle unloadable modules without crashing.
* image.c (load_modules): Revert the previous patch since modules must
have a fixed index inside the array.
svn path=/trunk/mono/; revision=34737
* ast.cs: added GetContainerFunction property.
* Statement.cs: added class NotVoidReturnEventArgs and delegate
NotVoidReturnEventHandler, throw an event in case we find a
return, the enclosing function object takes care of changing the
return type of the function.
* FunctionDeclaration.cs, FunctionExpression.cs: take care of
return's inside functions.
2004-09-22 Cesar Lopez Nataren <[email protected]>
svn path=/trunk/mcs/; revision=34736
* XPathAtomicValue.cs : missing Init() definition for float and string;
latter one resulted in infinite loop in Init(object,XmlSchemaType).
svn path=/trunk/mcs/; revision=34733
* XQueryParser.jay, XQueryTokenizer.cs :
Added attribute value template support.
* XPath2Expression.cs : Inside attribute value, expressions must not
serialize attributes as attribute node but should just pick value up.
e.g. attr="{foo/@bar}" and <elem>{foo/@bar}</elem> are different.
svn path=/trunk/mcs/; revision=34730
* PrincipalPermission.cs: Fixed bug where a change to a permission
(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
to clear existing entries.
svn path=/trunk/mcs/; revision=34724
* XPathNavigatorReader.cs : Actually all other kind of nodes than
Element and Root must be treated as "start node only" as well as
attributes and namespaces.
svn path=/trunk/mcs/; revision=34718
* XPathDocument2Editable.cs : for WriteAttributes(), use
CreateAttributesWriter() that creates attribute tree XmlWriter.
* XPathNavigatorReader.cs : the reader was missing attributes when
it is created with an element node that has attriibutes.
svn path=/trunk/mcs/; revision=34717
* icall.c (ves_icall_MonoType_get_Namespace): Return NULL instead of
an empty string when a type has no namespace. Fixes#64230.
svn path=/trunk/mono/; revision=34711
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
SetInternal.
svn path=/trunk/mcs/; revision=34698
* cs8205.cs: remove, same as cs1624
* cs8206.cs: fix yield syntax, and add line number, now passes
* cs8207.cs: remove, same as cs1623
* cs8208.cs: remove, same as cs1625
* cs8209.cs: remove, same as cs1631
svn path=/trunk/mcs/; revision=34695
* tabledefs.h: Added "internal" security actions to support non-CAS
permissions NonCasDemand, NonCasLinkDemand and NonCasInheritance.
Note: they do not seems to be used anymore in 2.0 (new metadata format)
svn path=/trunk/mono/; revision=34693
* XPathNavigator.cs : TypedValue could be implemented.
* XPathEditableNavigator.cs : removed some MonoTODO since now there
are implementations.
svn path=/trunk/mcs/; revision=34692
* XQueryParser.jay, XPath2Expression.cs, XPathSequence.cs :
two or more Filter expressions could be simply constructed as
nested FilterExpr objects.
svn path=/trunk/mcs/; revision=34691
* XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
For attribute nodes, it should not use WriteSubtree() which does not
support attribute nodes.
svn path=/trunk/mcs/; revision=34690
* XPathNavigatorReader.cs : It can reject attribute and namespace
nodes as its input (It is used only for WriteNode(), InsertBefore()
and so on, which are not intended to be used with attribute nodes).
On Initial state, it was Element that should check IsEmptyElement,
and Root should just go to the first child node.
svn path=/trunk/mcs/; revision=34689
* ecore.cs (Expression.Constantity): Add support for turning null
into a constant.
* const.cs (Const.Define): Allow constants to be reference types
as long as the value is Null.
svn path=/trunk/mcs/; revision=34687
* XPathNavigatorReader.cs : When the reader's root node is not of type
Root, it incorrectly skipped the node itself.
svn path=/trunk/mcs/; revision=34685
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
tunneling a secure connection.
* ServicePoint.cs: added UseConnect property.
* ServicePointManager.cs: set the UseConnect property when we use a http
proxy for a https connection.
* WebConnection.cs: setup the tunnled connection when using a proxy and
https.
svn path=/trunk/mcs/; revision=34682
* namespace.cs (NamespaceEntry.Using): No matter which warning
level is set, check if this namespace name has already been added.
svn path=/trunk/mcs/; revision=34675
* DataSet.cs : For a row, when a relation is not nested, then it is
still output target since it won't be written as a child of its
parent. It fixes bug #66379.
svn path=/trunk/mcs/; revision=34670
* class-internals.h (MonoGenericContainer): New type.
(MonoMethodNormal): Replaced `MonoGenericParam *gen_params' with
`MonoGenericContainer *generic_container'.
(MonoClass): Replaced `gen_params' and `num_gen_params' with
`MonoGenericContainer *generic_container'.
* metadata.c (mono_metadata_load_generic_params): Return a
`MonoGenericContainer *' instead of a `MonoGenericParam *';
removed the `num' argument.
svn path=/trunk/mono/; revision=34665
* system.c: check the number of online processors instead of the
existing ones. Sanitize return value if it's an error.
svn path=/trunk/mono/; revision=34650
Fix#67108
* attribute.cs: Enum conversion moved to
GetAttributeArgumentExpression to be applied to the all
expressions.
svn path=/trunk/mcs/; revision=34636
* AssemblyBuilderAccess.cs: Remove [Flags].
* PackingSize.cs: Add new 2.0 members. Remove [Flags].
* AssemblyBuilder.cs: Add net 2.0 Save method.
* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
net 2.0. Reorganize fields so the layout visible to the runtime is the
same under 1.0 and 2.0. Add 2.0 properties.
svn path=/trunk/mcs/; revision=34632
* icall.c (ves_icall_System_Reflection_Module_GetPEKind): Add support
for dynamic images.
* object-internals.h (MonoReflectionAssemblyBuilder): Add pe_kind and
machine fields.
* metadata-internals.h (MonoDynamicImage): Add pe_kind and machine fields.
* reflection.c: Save pe_kind and machine values into the generated
image file.
svn path=/trunk/mono/; revision=34631
* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
net 2.0. Reorganize fields so the layout visible to the runtime is the
same under 1.0 and 2.0. Add 2.0 properties.
svn path=/trunk/mcs/; revision=34628
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes): Return the
created MonoType for dynamic types. Fixes#66180.
svn path=/trunk/mono/; revision=34625
* ssa.c: Fixed casts to unsigned where the value was of 64 bits in
simulate_long_compare.
* process.c: Fixed alignments to 32 bits (casting to unsigned is unsafe on
64 bits platforms).
svn path=/trunk/mono/; revision=34620
* *.cs: fix some incorrect tests by either addding a Main method,
or adding a -t:library compiler option. Makes one test pass, and adds
19 to *-expect-wrong-error as they compile when they shouldn't
* *mcs-expect-*-error: update
svn path=/trunk/mcs/; revision=34599
* Control.cs: even if the control has no children the naming container
may contain the control we're looking for. Fixes bug #67304.
svn path=/trunk/mcs/; revision=34593
* class.c (TypeContainer.DefineType): Flag error if
base types aren't accessible due to access permissions.
* decl.cs (DeclSpace.ResolveType): Move logic to
Expression.ResolveAsTypeTerminal.
(DeclSpace.ResolveTypeExpr): Thin layer over
Expression.ResolveAsTypeTerminal.
(DeclSpace.CheckAccessLevel, DeclSpace.FamilyAccess):
Refactor code into NestedAccess. Use it.
(DeclSpace.NestedAccess): New.
* ecore.cs (Expression.ResolveAsTypeTerminal): Add new
argument to silence errors. Check access permissions.
(TypeExpr.DoResolve, TypeExpr.ResolveType): Update.
* expression.cs (ProbeExpr.DoResolve): Use ResolveAsTypeTerminal.
(Cast.DoResolve): Likewise.
(New.DoResolve): Likewise.
(InvocationOrCast.DoResolve,ResolveStatement): Likewise.
(TypeOf.DoResolve): Likewise.
* expression.cs (Invocation.BetterConversion): Return the Type of
the better conversion. Implement section 14.4.2.3 more faithfully.
(Invocation.BetterFunction): Make boolean. Make correspondence to
section 14.4.2.2 explicit.
(Invocation.OverloadResolve): Update.
(Invocation): Remove is_base field.
(Invocation.DoResolve): Don't use is_base. Use mg.IsBase.
(Invocation.Emit): Likewise.
svn path=/trunk/mcs/; revision=34585
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/trunk/mcs/; revision=34578
* Convert.cs: ConvertToBase* was not endian aware. Implemented EndianSwap
and swapping of all values before going into the BitConverter so that values
are returned with proper endianess.
svn path=/trunk/mcs/; revision=34577
derived maps. This was done in IncludeMetadata, but this method is
not called by the xsd tool.
* XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
attribute for primitive types and arrays.
* XmlSchemaImporter.cs: Only export all object-derived maps if the
Object type is explicitly referenced by an element.
* XmlSerializationWriter.cs: Minor fix.
svn path=/trunk/mcs/; revision=34573
* expression.cs:
* ecore.cs:
Fix for resolution of event expression
when we have a AddHandler statement
like
AddHandler Me.E, AddressOf Me.EH
Submitted by Raja Harinath<[email protected]>
svn path=/trunk/mcs/; revision=34556
* Mono.Data.SqliteClient/Sqlite.cs added.
* Mono.Data.SqliteClient/SqliteDataAdapter.cs added.
* Mono.Data.SqliteClient/SqliteRowUpdatedEventArgs added.
* Mono.Data.SqliteClient/SqliteRowUpdatedEventHandler added.
* Mono.Data.SqliteClient/SqliteRowUpdatingEventArgs added.
* Mono.Data.SqliteClient/SqliteRowUpdatingEventHandler added.
* Mono.Data.SqliteClient/SqliteDataReader.cs GetSchemaTable fixed.
* All sources documented.
I submited a patch to SqliteClient, now Sqlite Data
Provider has full implemented, I think that the good
idea is describe this on release notes.
-Everaldo
svn path=/trunk/mcs/; revision=34544
'close' to the requested color, it avoids having to create a colormap.
Depending on the display this could mean the used color is slightly off
the desired color. Might have to change it to a more resource intensive
colormap approach, but it will work as a workaround to avoid red screens.
svn path=/trunk/mcs/; revision=34541
* System.Web.Compilation/AspGenerator.cs: added OtherTags.
* System.Web.UI/ControlBuilder.cs: don't close server tags when we get
to a closing tag that is not applied to a server control. Fixes bug
#60323.
svn path=/trunk/mcs/; revision=34534
handle. Add a flag to check if we are on unix so we aren't calling
Environment.OSVersion.Platform all the time. Mad props to Peter
Bartok for this.
svn path=/trunk/mcs/; revision=34530
* RSAManaged.cs: KeySize is always a multiple of 8 bits (promotion to
a bigger size if required) to match MS implementation (and other
issues like SSL).
svn path=/trunk/mcs/; revision=34526
* marshal.c (mono_ftnptr_to_delegate): This method was improperly
attempting to marshal the delegate_trampoline as the method_addr.
This patch has a static hashtable of marshalled delegates so that
we can map delegate_trampoline addresses back to delegates. This
allows a delegate passed to managed code to be passed back into native
code. Fixes#67039
svn path=/trunk/mono/; revision=34521
IWebPart.cs: Added new property and removed extra property.
WebPart.cs: Corrected according to change in interface IWebPart.
svn path=/trunk/mcs/; revision=34510
* Each DrawXXX method for a control now is passed the object for the
control to be drawn in order to allow accessing any state the theme
might require
* ControlPaint methods for the theme now have a CP prefix to avoid
name clashes with the Draw methods for controls
* Every control now retrieves it's DefaultSize from the current theme
svn path=/trunk/mcs/; revision=34494
exception if it is cached. This avoids the automatic rethrowal of
the exception after the catch of the wrapper. Also check for pending
interruptions before calling the managed method. This is done using
the new method emit_thread_force_interrupt_checkpoint, since the
normal checkpoint method is ignored when running the invoke wrapper.
* object.c: If the abort exception is rethrown, set the abort_exc
field of the thread, so it will be rethrown aftere every catch.
* threadpool.c: Only run an interruption checkpoint if what has been
requested is a stop of the thread (aborts will be ignored).
* threads.c: By default, a thread will now never be interrumped while
running the runtime invoke wrapper (this ensures that runtime_invoke
will always return to the caller if an exception pointer is provided).
There is a new special method mono_thread_force_interruption_checkpoint()
to force an interruption checkpoint even if running a protected
wrapper, which is used by the same runtime invoke wrapper to do a check
at a safe point.
I'm leaving the ves_* rename for another patch ;-)
svn path=/trunk/mono/; revision=34489
* io.c (pipe_close_private): Fix one small typo in the last change
that totally hosed process creation with redirected pipes.
svn path=/trunk/mono/; revision=34484
* Makefile (TEST_EXCLUDES_common): Remove 'module-3'.
(TEST_SOURCES_win32): Rename from WINDOWS_SOURCES.
(TEST_NOPASS): Comment out tests that already are in
TEST_SOURCES_common.
svn path=/trunk/mcs/; revision=34483
which releases the cctor locks held by a thread.
* threads.c, threads.h: In thread_cleanup, release cctor locks held
by a thread. Added mono_thread_exit() method to be used to safely stop
a thread.
svn path=/trunk/mono/; revision=34481
* GenericTypeParameterBuilder.cs
(GenericTypeParameterBuilder.ContainsGenericParameters): Return
true here; System.Type.ContainsGenericParameters returns true when
called on a type parameter, so let's do the same here.
svn path=/trunk/mcs/; revision=34464
* generic.cs
(GenericConstraints.EffectiveBaseClass): New public property.
(TypeParameter.GenericConstraints): New public property.
(ConstructedType.CheckConstraints): Improved.
* convert.cs (Convert.TypeParam_EffectiveBaseType): New private method.
(Convert.TypeParameterConversion): New private method; use this in
ImplicitReferenceConversion() and ImplicitReferenceConversionExists()
for all conversions related to type parameters.
svn path=/trunk/mcs/; revision=34463
* driver.c mini.h trace.c: Move the setting of the main assembly into
a separate function called mono_trace_set_assembly () and call it after
actually loading the main assembly. Fixes#66872.
svn path=/trunk/mono/; revision=34453
(NEW_TEST_SOURCES_common): Rename from NEW_TEST_SOURCES.
(TEST_SOURCES_common): Rename from TEST_SOURCES.
(TEST_SOURCES_all): Rename to ALL_TEST_SOURCES. Handle profile- and
platform-specific test inclusion and exclusion.
(TEST_SOURCES_default, TEST_SOURCES_net_2_0, TEST_EXCLUDES_common)
(TEST_EXCLUDES_net_2_0): New. Reorganized from various other variables.
(TEST2_SOURCES, UNSAFE_SOURCES): Remove. Merge into TEST_SOURCES_common.
(test-2, test-unsafe-compiler-jit): Remove. Merge into test-compiler-jit.
* 2tests-*.cs, unsafe-*.cs, test-58.cs, test-171.cs:
Add 'Compiler options: '.
svn path=/trunk/mcs/; revision=34432
the profile being tested.
(nunit-$(PROFILE).stamp): Rename from nunit.stamp.
* config-default.make (TEST_HARNESS): Look for 'nunit-console' in
profile-specific directory.
svn path=/trunk/mcs/; revision=34428
* FieldInfo.cs: Add support for returning MarshalAsAttribute.
* ParameterInfo.cs: Add marshalAs field, add support for returning
MarshalAsAttribute.
svn path=/trunk/mcs/; revision=34416
* reflection.c (mono_param_get_objects): Fill out MarshalAsImpl field.
* reflection.c (mono_reflection_marshal_from_marshal_spec): New
function to convert a MarshalSpec structure to its managed counterpart.
* reflection.c: Fix warnings.
* object-internals.h (MonoReflectionParameter): Add MarshalAsImpl
field.
svn path=/trunk/mono/; revision=34414
* Npgsql/NpgsqlDataReader.cs:
GetBytes: Added a little fix for proper handling of getbytes with current Npgsql semantics in mind. For while, we just support offset value of 0 as we
read all the bytes field value at a time. So there is no copy when offset is not 0.
svn path=/trunk/mcs/; revision=34406
* Npgsql/NpgsqlCommand.cs:
ReplaceParameterValue: Fixed parameter replace when next byte after parameter name is '\\r'. Thanks Ivan Radovanovic rivan at sezampro dot yu for the fix.
GetParseCommandText: Added a workaround to have some queries which are giving parameter type problems. Thanks Martin ( martijn at boland dot org) for bug report.
svn path=/trunk/mcs/; revision=34395
* object-internals.h (MonoReflectionDllImportAttribute): New structure.
* icall.c: Add new icalls for GetDllImportAttribute and GetFieldOffset.
svn path=/trunk/mono/; revision=34376
* wapi-private.h:
* sockets.c:
* socket-private.h:
* io.c:
* io-private.h:
* handles-private.h: Cope when a file descriptor is reused while
the handle that thought it owned it is still referenced, instead
of asserting. Probably fixes bug 66479, though we've been unable
to reproduce it.
svn path=/trunk/mono/; revision=34366
* ContentType.cs: Implement initial support for the ClientHelloV2 message.
* RecordProtocol.cs: Implement initial support for the ClientHelloV2 message.
svn path=/trunk/mcs/; revision=34360
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.
svn path=/trunk/mcs/; revision=34346
* convert.cs (Convert.ImplicitReferenceConversion): Added implicit
type parameter conversions for type parameters which are known to
be reference types.
svn path=/trunk/mcs/; revision=34332
* generic.cs (GenericConstraints): Added `IsReferenceType' and
`IsValueType' properties.
* support.cs (ReflectionConstraints): Use
Type.GetGenericParameterConstraints() instead of the old hack.
svn path=/trunk/mcs/; revision=34328
* generic.cs (ReflectionConstraints): Moved here and made it an
abstract class.
* support.cs (ReflectionConstraints): Moved to generic.cs.
svn path=/trunk/mcs/; revision=34327
* support.cs
(ReflectionConstraints): Un-nested this class and made it public.
* typemanager.cs
(TypeManager.GetTypeParameterConstraints): New public method.
(TypeManager.HasConstructorConstraint): Use the attributes.
svn path=/trunk/mcs/; revision=34326
* support.cs (GenericConstraints): Replaced `HasConstructor',
`IsReferenceType' and `IsValueType' with `Attributes'.
(ReflectionParameters.ReflectionConstraints): Removed the Create()
method and made the .ctor public.
* generic.cs (Constraints.Attributes): New public property.
(Constraints): Renamed `HasConstructor' -> `HasConstructorConstraint',
`IsReferenceType' -> `HasReferenceTypeConstraint' and
`IsValueType' -> `HasValueTypeConstraint'.
svn path=/trunk/mcs/; revision=34325
* NpgsqlTypes/NpgsqlTypesHelper.cs:
ConvertToBackend: Added support for System.Enum types. Now enumerated types can be used correctly as a paramater value. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34322
* appdomain.c:
(mono_domain_set): allow setting a domain that is being unloaded.
(mono_domain_unload): invoke the DomainUnload callbacks in the domain
being unloaded.
svn path=/trunk/mono/; revision=34315
* expression.cs (LocalVariableReference.DoResolveLValue):
Do not report warning 219 for out values.
(EmptyExpression.Null): New member to avoid extra allocations.
* rootcontext.cs: Warning 4 is back.
svn path=/trunk/mcs/; revision=34312
* MonoCustomAttrs.cs (GetCustomAttributes): Rename the icall to
GetCustomAttributesInternal and add a 'pseudoAttrs' argument.
svn path=/trunk/mcs/; revision=34309
* GenericTypeParameterBuilder.cs
(GenericTypeParameterBuilder.SetGenericParameterAttributes): New
public method, replaces the old Mono_* hacks.
svn path=/trunk/mcs/; revision=34300
* cs-parser.jay: Fix wrong warning 642 report.
* cs-tokenizer.cs (CheckNextToken): New helper;
Inspect next character if is same as expected.
svn path=/trunk/mcs/; revision=34297
* TlsClientKeyExchange.cs: Removed .Clear call on private key as itn't
ours (but only a reference). It also requires the callback to recreate
a new key object each time (which is worse). This also implies that
the caller (implementing the callback) is responsible to clear it.
svn path=/trunk/mcs/; revision=34291
The MethodBase in the message may not be the same type of the object
(the method can be called using an interface).
svn path=/trunk/mcs/; revision=34280
* AssemblyInfo.cs: Updated version to 1.1.2 for next release.
* MakeCert.cs: Hack for date parsing problem with Mono.
svn path=/trunk/mcs/; revision=34279
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
RemoveOwnedForm (still incomplete, missing on-top and common
minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the dialog
modal)
svn path=/trunk/mcs/; revision=34260
will reference the object being created).
* StackBuilderSink.cs: Take into account the forceInternalExecute
parameter.
svn path=/trunk/mcs/; revision=34255
specify that messages must be dispatched to the target object using
InternalExecute. Usually if the target is a proxy, the sink uses
RealProxy.Invoke to dispatch the method. This can't be done for local
CBOs since we would loop for ever.
svn path=/trunk/mcs/; revision=34253
message. In CreateInstanceFromMessage if the object being created
is a CBO, use the provided proxy as "this" when calling the ctor.
svn path=/trunk/mcs/; revision=34252
of MonoMethod, so it can be also used for running constructors.
* ServerIdentity.cs: Added methods for getting and setting the client
proxy in ClientActivatedIdentity. This is needed for CBOs, since
messages need to be dispatched using the proxy as "this", not the
real object.
svn path=/trunk/mcs/; revision=34251
* typemanager.cs (TypeManager.LookupGenericTypeContainer): New
public method; like LookupTypeContainer, but also works for
generic instances.
* report.cs (Report.SymbolRelatedToPreviousError): Use
TypeManager.LookupGenericTypeContainer().
svn path=/trunk/mcs/; revision=34240
* class.cs (TypeContainer.HasExplicitLayout): New property
Returns whether container has StructLayout attribute set Explicit.
(FieldMember): New abstract class for consts and fields.
(FieldMember.ApplyAttributeBuilder): Add error 636 and 637 report.
(Field): Reuse FieldMember.
* const.cs (Const): Reuse FieldMember.
* rootcontext.cs: EmitConstants call moved to class.
svn path=/trunk/mcs/; revision=34239
Thanks to Peter Sestoft for this bug report.
* expression.cs (Conditional): If both the `trueExpr' and the
`falseExpr' is a NullLiteral, return a NullLiteral.
svn path=/trunk/mcs/; revision=34237
* statement.cs (Foreach.EmitCollectionForeach): If we're in an
iterator, use `enumerator.EmitThis()' instead of `ec.EmitThis()'
for the "get_Current" call.
svn path=/trunk/mcs/; revision=34231
* SequenceType.cs : return TypedValue instead of null in case of
XPathNavigator.
* XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
* XPathSequence.cs : rewrote FLWORIterator to iterate forlet
expressions based on index.
svn path=/trunk/mcs/; revision=34223
Marek and me just fixed one of our oldest bugs: #28562 :-)
* ecore.cs (EnumConstant.GetValueAsEnumType): New public method.
* attribute.cs (Attribute.GetAttributeArgumentExpression): If
we're an EnumConstant, just return that.
(Attribute.Resolve): GetAttributeArgumentExpression() may give us
an EnumConstant. In this case, we need to use GetValueAsEnumType()
to get the value which'll actually be written into the attribute.
However, we have to use GetValue() to access the attribute's value
in the compiler.
svn path=/trunk/mcs/; revision=34221
* reflection.c (mono_reflection_setup_internal_class): If we're
System.ValueType, System.Object or System.Enum, set
`klass->instance_size' and create the vtable.
(mono_reflection_create_internal_class): If we're an enum type,
get the base class from our current corlib.
svn path=/trunk/mono/; revision=34214
* reflection.h (MonoResolveTokenError): New type.
* icall.c (ves_icall_System_Reflection_Module_ResolveMemberToken): New
icall.
* icall.c: Add an 'error' argument to the ResolveToken icalls.
svn path=/trunk/mono/; revision=34210
* RandomTest.cs: Commented test CompareWithMS following constants
changes in Mono implementation (to use Knuth's constants).
svn path=/trunk/mcs/; revision=34209
2004-09-17 Geoff Norton <[email protected]>
* reflection.c (type_get_qualified_name): If the klass is null
return the typename to avoid a NullRefEx.
(encode_cattr_value): Get the qualified name of the boxed type,
not the underlying enumtype. Fixes#62984.
svn path=/trunk/mono/; revision=34175
* codegen.cs (VariableStorage): Don't store the ILGenerator here;
if we're used in an iterator, we may be called from different
methods.
* statement.cs (Foreach.EmitFinally): Only emit an `Endfinally' if
we actually have an exception block.
svn path=/trunk/mcs/; revision=34171
* marshal.h marshal.c icall.c: Add new icalls for Alloc/FreeHGlobal. Change the
existing mono_marshal_alloc/free functions to use CoTaskMemAlloc/Free under windows.
* marshal.c: Allocate marshaller memory using mono_marshal_alloc/free.
svn path=/trunk/mono/; revision=34164
* mb-parser.jay: Fixed bug #66231 -
Now, Me.SubName, MyBase.SubName or any other qualified name
is supported by AddressOf operator
svn path=/trunk/mcs/; revision=34162
when reading a primitive value in encoded format using
ReadReferencingElement, provide the type name and namespace
since the xsi type may not be present in the xml element. This
fixes bug #65929.
svn path=/trunk/mcs/; revision=34157
Build 'mscorlib.dll' using the 'net_2_0_bootstrap' profile.
(net20bootstrapSystem): New. Build 'System.dll' using the
'net_2_0_bootstrap' profile.
($(gmcs)): Depend on both the above.
(CLEAN_FILES) [PROFILE=net_2_0]: Clean the 'net_2_0_bootstrap'
profile and 'gmcs' too.
svn path=/trunk/mcs/; revision=34154
net_2_0_bootstrap libraries if necessary.
($(the_lib)): Don't depend on a phony target. Move 'echo-warning' ...
(all-local): ... here. Will now warn unnecessarily, but is better
than rebuilding the library each time.
svn path=/trunk/mcs/; revision=34153
* icall.c (ves_icall_MonoType_GetElementType): GetElementType
should only return a type for pointers, arrays, and passbyref types.
Fixes bug #63841.
svn path=/trunk/mono/; revision=34147
* convert.cs (Convert.ImplicitReferenceConversion): When
converting to an interface type, first check whether we're
converting from a reference type.
svn path=/trunk/mcs/; revision=34138
Break inherit, checks the label stuff. Added checks for Label
stuff to Continue and Break classes. Added method Init for
DoWhile. Fixes for loops statements in order to be able for have
nested loops. Initial support for Label statements.
svn path=/trunk/mcs/; revision=34121
class Binary. Semantic Analysis for Calls it takes care of
constructors and methods, added invocation code for built in
methods. Added interface IAccesible that let us resolve the '.'
operator. Class Args handles missing or surplus arguments. Added
class BuiltIn which will take care of all builtins of ECMAScript.
svn path=/trunk/mcs/; revision=34118
* domain.c (mono_debugger_check_runtime_version): New public
function.
* icall.c (ves_icall_MonoDebugger_check_runtime_version): New icall.
svn path=/trunk/mono/; revision=34112
* AssemblyBuilder.cs: Fixed assembly-level permissions. I don't know
why I splitted them all into individual entries when only a single set
is accepted for each security action :(.
svn path=/trunk/mcs/; revision=34103
* reflection.c: Added missing sort to the declarative security
attributes table. MS implementation stops seeing the attributes if the
token number regress in the table (as shown by ildasm and permview).
svn path=/trunk/mono/; revision=34091
* class.cs, cs-parser.jay: Improve the error report for 1520:
report the actual line where the error happens, not where the
class was declared.
svn path=/trunk/mcs/; revision=34088
* assign.cs, delegate.cs, ecore.cs, expression.cs, statement.cs:
Pass location information that was available elsewhere.
svn path=/trunk/mcs/; revision=34087
* object-internals.h (MonoReflectionModule): Add 'token' field.
* reflection.c (mono_reflection_get_token): Add support for Module
and Assembly.
(mono_module_get_object): Set 'token' field.
(mono_module_file_get_object): Set 'token' field.
* icall.c: Add new Assembly and Module icalls.
svn path=/trunk/mono/; revision=34083
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
the MS implementation.
* UnionCodeGroup.cs: Resolve() will now perform union on child code
groups.
* FileCodeGroup.cs: Resolve() will now perform union on child code
groups.
* NetCodeGroup.cs: Resolve() will now perform union on child code
groups.
svn path=/trunk/mcs/; revision=34075
* loader.h loader.c class.h class.c: Add helper functions for obtaining
tokens of metadata objects.
* reflection.h reflection.c (mono_reflection_get_token): New function
to obtain the token of a metadata object.
* icall.c: Add icalls for MetadataToken and ModuleHandle methods.
svn path=/trunk/mono/; revision=34065
* Console.cs: Use the internal wrappers for StreamReader and
StreamWriter that catch IOException.
2004-09-19 Dick Porter <[email protected]>
* UnexceptionalStreamWriter.cs:
* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
StreamReader that catch IOException. Used by System.Console so
that graphical applications dont get IO errors when their
stdin/out/err vanishes (ie when they spew debug output.)
svn path=/trunk/mcs/; revision=34062
* DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
hence, adding a row cache is necessary if the original row happens to be current.
fixed bug #63097
svn path=/trunk/mcs/; revision=34061
* Npgsql/NpgsqlCommand.cs:
GetClearCommandText: Fixed an infinite loop when trying to use a parameter whose name is equals to same type name.
i.e.: parameter name :text which would conflict with :text parameter name which was being added in the replacement string.
* NpgsqlTypes/NpgsqlTypeConverters.cs:
BasicNativeToBackendTypeConverter.ToString: Fixed handling of strings with backslashes. Now they are properly escaped.
svn path=/trunk/mcs/; revision=34050
* NpgsqlCommand.cs,
NpgsqlConnector.cs: Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34038
* NpgsqlCommand.cs,
NpgsqlConnector.cs: Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34037
* ASN1.cs: In synch with corlib version. Fixed all level 4 compilation
warnings.
* PKCS7.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
svn path=/trunk/mcs/; revision=34011
* CryptoConvert.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
* KeyPairPersistence.cs: In synch with corlib version. Fixed all level
4 compilation warnings.
* PKCS1.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
* SHA224Managed.cs: Fixed all level 4 compilation warnings.
svn path=/trunk/mcs/; revision=34010
* Mono.Security.dll.sources: Added support for SHA224 hash algorithm
in Mono.Security.Cryptography.
* Mono.Security_test.dll.sources: Added unit tests for SHA224 hash
algorithm.
svn path=/trunk/mcs/; revision=34006
* SHA224.cs: New. Abstract class for all SHA224 implementations.
* SHA224Managed.cs: New. Managed implementation of SHA224 (a SHA256
derivate) as specified in RFC3874 and FIPS 180-2 Change Notice.
svn path=/trunk/mcs/; revision=34005
* SHA224ManagedTest.cs: New. Unit tests for the managed implementation
of SHA-224.
* SHA224Test.cs: New. Unit tests for SHA-224. Use test vectors from
RFC3874.
svn path=/trunk/mcs/; revision=34004
* Font.cs (FromHfont, ToHfont): Fixed windows implementation.
ToLogFont: Implemented.
* gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
avoid casts.
GdipCreateFontFromLogfontA: A new extern call.
svn path=/trunk/mcs/; revision=34002
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
svn path=/trunk/mcs/; revision=33997
* ASN1.cs: Fixed warning (l4) for unused variable.
* PKCS7.cs: Fixed warning (l4) for unused variable.
* Uri.cs: Fixed warning (l4) for unused variables. Remove sealed from
class to reduce number of warnings.
svn path=/trunk/mcs/; revision=33990
* AssemblyBuilder.cs: Keep a copy of the 3 permission set as an array
of RefEmitPermissionSet. This will allow to reuse existing
functionalities already present in the runtime.
svn path=/trunk/mcs/; revision=33984
* appdomain.c: Bumped MONO_CORLIB_VERSION to 25.
* object-internals.h: Added 3 MonoArray* members to MonoReflection
AssemblyBuilder to access the permissions set in the class lib.
* reflection.c: Added security attributes encoding step in
mono_image_build_metadata.
svn path=/trunk/mono/; revision=33983
* dump.c: Added new security actions added in 2.0: LinkDemandChoice,
InheritanceDemandChoice and DemandChoice.
* main.c: Added ".permissionset" to output IL. Removed "hassecurity"
as MS ilasm can't compile it.
svn path=/trunk/mono/; revision=33974
* tabledefs.h: Added new security actions defined in 2.0:
LinkDemandChoice, InheritanceDemandChoice and DemandChoice.
svn path=/trunk/mono/; revision=33973
finalized. There where random SIGSEVs at program termination, when
an object being finalized was trying to do a string comparison and
the current culture was already finalized.
svn path=/trunk/mono/; revision=33967
* BuiltInDatatype.cs, SchemaDataValueType.cs :
ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
XmlSchemaUri, but it is derived from System.Uri, while ours was not.
svn path=/trunk/mcs/; revision=33963
Fixed bug #55780
* ecore.cs (PropertyExpr.FindAccessors): Do not perform
deep search when property is not virtual.
(PropertyExpr.ResolveAccessors): Make one call for both
accessors.
svn path=/trunk/mcs/; revision=33956
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
svn path=/trunk/mono/; revision=33955
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
svn path=/trunk/mcs/; revision=33955
* Npgsql/NpgsqlRowDescription.cs:
FieldIndex: Really added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
svn path=/trunk/mcs/; revision=33950
ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
* XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
ImportIncludedTypes to the end, to make sure that the current map has all
needed data before derived maps are constructed.
* XmlSchemaExporter.cs: Generate the base class of simple types that are
not primitive types. Set the correct value for IsMixed in extended types.
* XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
the base class of a simple type doesn't need to be a xsd type.
All those patches fix bug #65654
svn path=/trunk/mcs/; revision=33935
* System.Data_test.dll.sources: Added OdbcPermission, OleDbPermission
and SqlClientPermission unit tests to the build.
svn path=/trunk/mcs/; revision=33931
* ChangeLog: New.
* OraclePermission.cs: Adapted to work for both Fx 1.1 and 2.0. Fx 1.1
version isn't complete (as anyway it requires FullTrust on MS
implementation) but DO NOT throw exceptions (for the security engine).
* OraclePermissionAttribute.cs: Implemented CreatePermission. Adapted
to work for both Fx 1.1 and 2.0.
svn path=/trunk/mcs/; revision=33913
* Npgsql/NpgsqlRowDescription.cs:
FieldIndex: Added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
svn path=/trunk/mcs/; revision=33910
* reflection.h: add prototype for mono_get_dbnull_object
* reflection.c: add prototypes for get_default_param_value_blobs
and mono_get_object_from_blob for fussier compilers
svn path=/trunk/mono/; revision=33907
* SqlClientPermission.cs: Added internal constructor accepting an Sql
ClientPermissionAttribute parameter (using base class protected ctor).
* SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
Permission constructor.
svn path=/trunk/mcs/; revision=33905
* OleDbPermission.cs: Added internal constructor accepting an OleDb
PermissionAttribute parameter (using base class protected ctor).
Re-added the Provider property (removed by error).
* OleDbPermission.cs: Copy now use the new OleDbPermission
constructor. Re-added the Provider property (removed by error).
svn path=/trunk/mcs/; revision=33904
* OdbcPermission.cs: Added internal constructor accepting an Odbc
PermissionAttribute parameter (using base class protected ctor).
* OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
constructor.
svn path=/trunk/mcs/; revision=33903
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
Implementation isn't complete as the restrictions seems to change the
expected results (breaking some rules like x.IsSubsetOf (x) == false).
Better (real-world) tests cases are required.
* PermissionHelper.cs: Fixed small differences between System.Data.dll
validations wrt to mscorlib.dll (XML and PermissionState).
svn path=/trunk/mcs/; revision=33902
Fixed bug #61902
* codegen.cs (TestObsoleteMethodUsage): Trace when method is
called and is obsolete then this member suppress message
when call is inside next [Obsolete] method or type.
* expression.cs: Use TestObsoleteMethodUsage member.
svn path=/trunk/mcs/; revision=33886
* UtilsTest.cs: upgraded to use nunit Assert class, also corrected testing for null that
was giving an exception when run.
svn path=/trunk/mcs/; revision=33881
* class.cs: Set default constant value for optional parameters in ParameterBuilder
* parameter.cs: Setting optional attribute
These two fixes makes sure that optional parameter with default value get emitted correctly
svn path=/trunk/mcs/; revision=33866
reduce the number of passes. We will get the assemblies signed in
the 'populate-runtime-subdir' phase.
(mcs-do-run-test-profiles): Rename from mcs-do-run-tests. Use
'test-profiles' to test all profiles.
(mcs-do-compiler-tests): Use 'compiler-tests' target in mcs/.
(bootstrap-check): Update.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Simplify.
svn path=/trunk/mono/; revision=33859
assemblies for separate profiles.
(dist-local): Don't copy files beginning with '../'.
* rules.make (dist-default): Handle any of Makefile, makefile, or
GNUmakefile being present.
* profiles/net_2_0.make (TEST_RUNTIME): Don't define.
svn path=/trunk/mcs/; revision=33854
(test-profiles, run-test-profiles): New targets.
(test-compiler): Rename to ...
(compiler-tests): ... this. Run tests on all profiles.
svn path=/trunk/mcs/; revision=33853
Control.cs: Added new attributes and a method.
FilterableAttribute.cs: New attribute, initial implementation.
ThemeableAttribute.cs: New attribute, initial implemenataion.
svn path=/trunk/mcs/; revision=33842
* Makefile: Added /nowarn:618 when compiling unit test assembly to
remove nunit obsolete warnings.
* System.Data.dll.sources: Added System.Data.Common.DbConnectionOptions
(NET_2_0) and System.Data.Common/PermissionHelper to the build.
* System.Data_test.dll.sources: Added {DBData|Odbc|OleDb|SqlClient}
PermissionAttribute unit tests to the build.
svn path=/trunk/mcs/; revision=33833
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
to support new methods in DBDataPermission.
* DbConnectionString.cs: Updated class to split from/inherit
DbConnectionOptions class.
* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
completed constructors.
* DbDataPermissionAttribute.cs: Completed/fixed class.
* PermissionHelper.cs: Helper methods to create permission classes.
svn path=/trunk/mcs/; revision=33828
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
token before writing out the method index, since the "index" used
elsewhere is just added to the MethodIndexOffset.
svn path=/trunk/mcs/; revision=33819
Backported my MemberName changes from GMCS into MCS.
- we are now using a special `MemberName' class instead of using
strings; in GMCS, the `MemberName' also contains the type
arguments.
- changed the grammar rules a bit:
* the old `member_name' is now a `namespace_or_type_name':
The rule is that we use `namespace_or_type_name' everywhere
where we expect either a "member name" (GetEnumerator) or a
"member name" with an explicit interface name
(IEnumerable.GetEnumerator).
In GMCS, the explicit interface name may include type arguments
(IEnumerable<T>.GetEnumerator).
* we use `member_name' instead of just `IDENTIFIER' for
"member names":
The rule is that we use `member_name' wherever a member may
have type parameters in GMCS.
* decl.cs (MemberName): New public class.
(MemberCore.MemberName): New public readonly field.
(MemberCore.ctor): Take a `MemberName' argument, not a string.
(DeclSpace): Likewise.
* delegate.cs (Delegate.ctor): Take a MemberName, not a string.
* enum.cs (Enum.ctor): Likewise.
* namespace.cs (AliasEntry.Alias): Changed type from Expression to
MemberName.
(AliasEntry.ctor): Take a MemberName, not an Expression.
(AliasEntry.UsingAlias): Likewise.
* class.cs (TypeContainer.ctor): Take a MemberName, not a string.
(IMethodData.MemberName): Changed type from string to MemberName.
(MemberBase.ExplicitInterfaceName): Likewise.
(AbstractPropertyEventMethod.SetupName): Make this private.
(AbstractPropertyEventMethod.ctor): Added `string prefix'
argument; compute the member name here.
(AbstractPropertyEventMethod.UpdateName): Recompute the name based
on the `member.MemberName' and the `prefix'.
* cs-parser.jay (attribute_name): Use `namespace_or_type_name',
not `type_name'.
(struct_declaration): Use `member_name' instead of `IDENTIFIER';
thus, we get a `MemberName' instead of a `string'. These
declarations may have type parameters in GMCS.
(interface_method_declaration, delegate_declaration): Likewise.
(class_declaration, interface_declaration): Likewise.
(method_header): Use `namespace_or_type_name' instead of
`member_name'. We may be an explicit interface implementation.
(property_declaration, event_declaration): Likewise.
(member_name): This is now just an `IDENTIFIER', not a
`namespace_or_type_name'.
(type_name, interface_type): Removed.
(namespace_or_type_name): Return a MemberName, not an Expression.
(primary_expression): Use `member_name' instead of `IDENTIFIER';
call GetTypeExpression() on the MemberName to get an expression.
(IndexerDeclaration.interface_type): Changed type from string to
MemberName.
(MakeName): Operate on MemberName's instead of string's.
svn path=/trunk/mcs/; revision=33810
* namespace.cs (AliasEntry.Resolve): Implement section 16.3.1.
(NamespaceEntry.Lookup): Add new argument to flag if we want the
lookup to avoid symbols introduced by 'using'.
* rootcontext.cs (NamespaceLookup): Update.
svn path=/trunk/mcs/; revision=33801
* XPathAtomicValue.cs : All .ctor() are separeted from Init().
In .ctor(object, XmlSchemaType):
- For lists that contains just one item, Init() recursively.
- For XPathAtomicValue, Init() recursively for its content fields.
For Value and TypedValue, consider typecode from XmlSchemaType.
svn path=/trunk/mcs/; revision=33790
* SequenceType.cs, XPath2Expression.cs :
Added SequenceType.IsNumeric(XmlTypeCode).
In type comparison, untyped XPathNavigator is xdt:untypedAtomic
(not sure as yet if it is always correct.)
* XQueryComparisonOperator.cs : rewrote all numeric comparison using
IsNumeric().
svn path=/trunk/mcs/; revision=33789
* AppDomain.cs: added SetupInformationNoCopy property, since
SetupInformation creates a copy now, all updates to it should use the
actual data. Fixes bug #61991 take 2.
svn path=/trunk/mcs/; revision=33788
* RadioButton.cs: fix GroupName when the control is inside a
NamingContainer different from Page. Closes bug #65586.
svn path=/trunk/mcs/; revision=33786
* XPath2Expression.cs : ComparisonExpr.CompareAtomic() should consider
spec-conformant untypedAtomic handling.
* XQueryContext.cs : Variables were incorrectly added to the older
context. Fixed Context and ContextManager constructors that were
in silly chicken-and-egg.
* XPathSequence.cs : now Context property always returns current
XQuery context (will be fixed; it is workaround for variable
resolution). In For iteration, context sequence should vary.
* XQueryComparisonOperator.cs : All value comparison failed to return
true when both operands are the same types.
* XsltCommand.cs : use XmlWriter.Create().
svn path=/trunk/mcs/; revision=33769
* CADMessages.cs: get rid of method / type name, it is not needed
* MethodCall.cs: lazily init method / type name.
* ReturnMessage.cs: lazily init method / type name, sig.
svn path=/trunk/mcs/; revision=33765
* RemotingServices.cs: use MethodBase rather than looking
for the method ourselves. It has higher perf in x-ad calls.
svn path=/trunk/mcs/; revision=33764
* System_test.dll.sources: Added unit tests for System.Diagnostics.
EventLogPermission and PerformanceCounterPermission.
svn path=/trunk/mcs/; revision=33763
* EventLogPermissionTest.cs: New. Unit tests for EventLogPermission.
* PerformanceCounterPermissionTest.cs: New. Unit tests for
PerformanceCounterPermission.
svn path=/trunk/mcs/; revision=33761
* Npgsql/NpgsqlConnection.cs:
Dispose: Improved implementation. Also added warning logging for
NpgsqlConnection leakings.
Close: Fixed code to allow calling many times even when being disposed.
* Npgsql/NpgsqlConnection.resx:
Added new warning logging message for NpgsqlConnection leakings.
* Npgsql/NpgsqlConnector.cs:
IsValid: new method to check if Connector is still valid.
* Npgsql/NpgsqlConnectorPool.cs:
GetPooledConnector: Improved to check validity of Connector.
FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.
svn path=/trunk/mcs/; revision=33757
* CADMessages.cs, MethodCall.cs: When doing an x-appdomain
call, store the method in a RuntimeMethodHandle. This allows
us to avoid the expensive lookup operations that must be done
to resolve the method. This makes xsp go from 250 r/s to 450 r/s
for me.
svn path=/trunk/mcs/; revision=33755
* Makefile: Updated to include unit tests.
* System.ServiceProcess.dll.sources: Added ServiceControllerPermission
class to the build.
* System.ServiceProcess_test.dll.sources: New. Added sources file for
unit tests.
svn path=/trunk/mcs/; revision=33749
* ChangeLog: New.
* ServiceControllerPermission.cs: New. Added permission class.
* ServiceControllerPermissionAttribute.cs: Completed TODO, added
missing validations (machine and service names). Fixed AttributeUsage.
* ServiceControllerPermissionEntry.cs: Added internal GetBaseEntry for
synchronization. Converted spaces to tabs.
* ServiceControllerPermissionEntryCollection.cs: Added synchronization
with entries in the base class. Converted spaces to tabs.
svn path=/trunk/mcs/; revision=33748
* ServiceControllerPermissionAttributeTest.cs: New. Unit tests for
ServiceControllerPermissionAttribute class.
* ServiceControllerPermissionTest.cs: New. Unit tests for Service
ControllerPermission class.
svn path=/trunk/mcs/; revision=33747
* ObjectType.cs: Corrected some test ordering in ObjTst and using new getObjTstString to test two candidate strings. Bug #65653
svn path=/trunk/mcs/; revision=33743
* System_test.dll.sources: Added PermissionHelper to the build.
* System_test.dll.sources: Added unit tests for System.Security.
Permissions.ResourcePermissionBase and ResourcePermissionBaseEntry,
System.Web.AspNetHostingPermission and AspNetHostingPermissionAttribute.
svn path=/trunk/mcs/; revision=33730
* EventLogPermission.cs: Fixed initialization (TagNames and
PermissionAccessType).
* EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added
[Obsolete] to some existing elements.
* EventLogPermissionAttribute.cs: Added missing validation to property
MachineName. Fixed changes for NET_2_0.
* PerformanceCounterPermission.cs: Fixed initialization (TagNames and
PermissionAccessType).
* PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
and added [Obsolete] to some existing elements.
* PerformanceCounterPermissionAttribute.cs: Added missing validations
to properties (Path, MachineName). Fixed changes for NET_2_0.
svn path=/trunk/mcs/; revision=33729
* ConfigurationElementCollection.cs ConfigurationElementCollectionType.cs:
New Fx 2.0 stubs
* ConfigurationElement.cs:
Fix function declaration
svn path=/trunk/mcs/; revision=33726
* DnsPermission.cs: Updated to pass new unit tests.
* DnsPermissionAttribute.cs: Cleanup.
* SocketPermission.cs: Updated to pass new unit tests.
* SocketPermissionAttribute.cs: Updated to pass new unit tests.
* WebPermission.cs: Implemented some TODO - not complete yet.
* WebPermissionAttribute.cs: Updated to pass new unit tests.
svn path=/trunk/mcs/; revision=33724
* HttpCacheAgeControl.cs HttpRequestCacheLevel.cs HttpRequestCachePolicy.cs
* RequestCacheLevel.cs RequestCachePolicy.cs:
New classes for Fx 2.0
svn path=/trunk/mcs/; revision=33723
* PermissionHelper.cs: New. Static methods to help implementation of
permission classes.
* ResourcePermissionBase.cs: Implemented all TODO (except FromXml
which isn't complete).
* ResourcePermissionBaseEntry.cs: Minor cleanup (namespaces, style).
svn path=/trunk/mcs/; revision=33721
* DnsPermissionAttributeTest.cs: New. Unit tests for DnsPermissionAttr.
* DnsPermissionTest.cs: New. Unit tests for DnsPermission.
* SocketPermissionAttributeTest.cs: New. Unit tests for
SocketPermissionAttribute.
* WebPermissionAttributeTest.cs: New. Unit tests for WebPermission
Attribute.
svn path=/trunk/mcs/; revision=33720
* AspNetHostingPermissionAttributeTest.cs: New. Unit tests for AspNet
HostingPermissionAttribute.
* AspNetHostingPermissionTest.cs: New. Unit tests for AspNetHosting
Permission.
svn path=/trunk/mcs/; revision=33719
* EventLogPermissionAttributeTest.cs: New. Unit tests for
EventLogPermissionAttribute.
* PerformanceCounterPermissionAttributeTest.cs: New. Unit tests for
PerformanceCounterPermissionAttribute.
svn path=/trunk/mcs/; revision=33718
* ResourcePermissionBaseEntryTest.cs: New. Unit tests for
ResourcePermissionBaseEntry.
* ResourcePermissionBaseTest.cs: New. Unit tests for
ResourcePermissionBase.
svn path=/trunk/mcs/; revision=33717
* mini-sparc.c mini-x86.c mini-amd64.c: Use the new
mono_type_get_underlying_type () helper function to simplify code.
svn path=/trunk/mono/; revision=33715
* DirectoryServicesPermission.cs: Completed TODO.
* DirectoryServicesPermissionAttribute.cs: Added path validation and
enable the creation of unrestricted permissions.
* DirectoryServicesPermissionEntry.cs: Add internal method to return
an ResourcePermissionBaseEntry instance.
* DirectoryServicesPermissionEntryCollection.cs: Allow synchronization
of elements with the base permission class (required to enable Copy).
svn path=/trunk/mcs/; revision=33710
* MessageQueuePermission.cs: Implemented enough TODO so compilers can
call ToXml (and the runtime can call FromXml) without exceptions.
* MessageQueuePermissionAttribute.cs: Implemented all TODO.
* MessageQueuePermissionEntry.cs: Implemented all TODO.
* MessageQueuePermissionEntryCollection.cs: Removed Clear on On*
methods and added TODO.
svn path=/trunk/mcs/; revision=33707
* AttachmentCollection.cs MailAddressCollection.cs:
New classes
* Attachment.cs: Set content string
* MailMessage.cs: Use new collection classes
* SmtpClient.cs: Lots of MIME cleanup
svn path=/trunk/mcs/; revision=33690
* TemplateParser.cs: ensure bin directory exists before trying to access
it. Fixes bug #65446 (not closed yet due to dependencies).
svn path=/trunk/mcs/; revision=33688
* System.Web/HttpStaticObjectsCollection.cs:
* System.Web.SessionState/HttpSessionState.cs: don't share static
session objects declared in the application file across the application,
but on a per-session basis. Fixes bug #65446.
svn path=/trunk/mcs/; revision=33685
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
the transfer is done from inside a page that received a postback.
Fixes bug #65613.
svn path=/trunk/mcs/; revision=33681
* mini-amd64.c: Don't access `type->data.klass' directly, call
mono_class_from_mono_type() instead since the type may be a
generic instance.
svn path=/trunk/mono/; revision=33674
C# 2.0 #pragma warning feature
* cs-tokenizer.cs (PreProcessPragma): New method;
Handles #pragma directive.
* report.cs (WarningRegions): New class; Support
class for #pragma warning directive. It tests whether
warning is enabled for a given line.
svn path=/trunk/mcs/; revision=33666
* mini-amd64.c (get_call_info): Fix support for generic instances.
(add_valuetype): Use mono_class_from_mono_type() to get the class
since we can be a generic instance.
svn path=/trunk/mono/; revision=33661
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes):
Fix GetTypes() to support dynamically created assemblies.
Patch for #65576 approved by Zoltan.
svn path=/trunk/mono/; revision=33654
* PrintingPermission.cs: Applied the new permission template.
Implemented missing To|FromXml. Fixed set operations, ...
* PrintingPermissionAttribute.cs: Added enum validation for Level and
creation of unrestricted permissions.
* PrintingPermissionLevel.cs: Added [Serializable] for NET_2_0.
svn path=/trunk/mcs/; revision=33640
* PrintingPermissionAttributeTest.cs: New. Unit tests for Printing
PermissionAttribute.
* PrintingPermissionTest.cs: New. Unit tests for PrintingPermission.
svn path=/trunk/mcs/; revision=33637
* File.cs: Added Gettextification, provide a better error message
for #62112
2004-09-08 Miguel de Icaza <[email protected]>
* Locale.cs: Added overload that calls String.Format.
svn path=/trunk/mcs/; revision=33597
* mb-parser.jay : some changes just not to stumble in global attributes definitions in multiple-lines
like we have in VS.NET generated AssemblyInfo.vb files. still need to really process that definitions like mcs does
svn path=/trunk/mcs/; revision=33573
* XPath2Expression.cs : fixed EnclosedExpr.Compile() that resulted
in index out of range.
* XPathSequence.cs : FLWORIterator got working, but only when compiled
with .NET 2.0 csc (still weird Invalid IL error happens).
svn path=/trunk/mcs/; revision=33566
* threads.c: don't call mono_thread_detach() in start_wrapper(),
avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.
svn path=/trunk/mono/; revision=33562
* XmlReader.cs : evidence is always provided.
* XmlWriter.cs, XmlTextWriter.cs :
added support for ConformanceLevel and OmitXmlDeclaration.
svn path=/trunk/mcs/; revision=33558
for each of the executables we ship.
* runtime/net_1_1/Makefile.am
* runtime/net_2_0/Makefile.am
(mdb_files, EXTRA_DIST): Add $(mdb_files).
svn path=/trunk/mono/; revision=33551
* image.c (mono_image_close): Applied patch from
[email protected] (Vasantha selvi). Fix crash when an
assembly is loaded multiple times from data.
* image.c (mono_image_open): Fix warning.
svn path=/trunk/mono/; revision=33541
* NpgsqlException.cs: Added support for deserialization of NpgsqlException.
* NpgsqlState.cs: Added missing handling of NoData message.
svn path=/trunk/mcs/; revision=33539
* expression.cs: Apply patch from Ben: Remove dead code from
ArrayCreation, and remove the TurnintoConstant call in const.cs,
as that code just threw an exception anwyays.
* const.cs: Remove the call to the turnintoconstant, for details
see bug: #63144
svn path=/trunk/mcs/; revision=33531
* literal.cs: The type of the null-literal is the null type; So
we use a placeholder type (literal.cs:System.Null, defined here)
for it.
* expression.cs (Conditional.DoResolve): Remove some old code that
is no longer needed, conversions have been fixed.
svn path=/trunk/mcs/; revision=33529
* Process.cs: Throw documented exceptions when getting stdin,
stdout or stderr and they haven't been redirected. Check that
CreatePipe didn't fail, throw exceptions if it did. Close
redirected streams when the process is disposed, rather than rely
on the GC disposing them later. Makes timeline much happier,
because it could run out of file descriptors between GC
collections.
svn path=/trunk/mcs/; revision=33501
* X509Certificate.cs: CreateFromSignedFile now throw the COMException
if the specified file isn't signed (before this was done by
AuthenticodeDeformatter). More details are available on failure.
svn path=/trunk/mcs/; revision=33500
* AuthenticodeBase.cs: Merge from Mono.Security.dll. This version is
less memory consuming (it works by 4kb blocks instead of loading the
entire assembly).
* AuthenticodeDeformatter.cs: Merge from Mono.Security.dll. Hash will
only be created if the assembly is signed. Benefits from Authenticode
Base changes.
svn path=/trunk/mcs/; revision=33498
* X509Chain.cs: Merge from Mono.Security. Fix two bugs (chain
construction from collection) and Reset-ing empty chain.
svn path=/trunk/mcs/; revision=33496
* AuthenticodeDeformatterTest.cs: New. Unit tests to validate a valid
authenticode-signed assembly (included in test file) and an invalid
(non signed) assembly (the unit test assembly).
svn path=/trunk/mcs/; revision=33494
* X509Chain.cs: Fixed a bug when constructing a certificate chain from
a collection (endless loop). Fixed bug when Reset-ing an empty chain.
svn path=/trunk/mcs/; revision=33493
* AuthenticodeBase.cs: Reworked not to load the entire file into
memory before hashing it (now in 4kb blocks). Splitted code in many
methods to allow "lighter" use by the deformatter.
* AuthenticodeDeformatter.cs: Less memory hungry so it can be used to
create Publisher evidences. No hash instance are created if the file
isn't signed.
* AuthenticodeFormatter.cs: Adapted to API changes.
svn path=/trunk/mcs/; revision=33492
* mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
trampolines, make them call an error function so people can fix their
code.
svn path=/trunk/mono/; revision=33486
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.
Reported by Jo Vermeulen <[email protected]>.
svn path=/trunk/mcs/; revision=33480
* mini.c (mono_method_to_ir): When initializing locals, handle a
generic instances like a valuetype if it's a valuetype and like a
class if it's a class.
svn path=/trunk/mono/; revision=33433
* exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
stack. Fixes#64674.
* exceptions.cs: Add test for unwinding of call arguments.
svn path=/trunk/mono/; revision=33418
* XPathEditableNavigator.cs :
AppendChild(xmlReader) ignored nodes after than first one, and
resulted in infinite loop.
Added get_OuterXml overrides. set_OuterXml should not move to
parent before deleting current.
svn path=/trunk/mcs/; revision=33414
* XPathDocument2.cs, XPathDocument2Editable.cs:
Redesigned API. Child node list should not be required (it also
harms performance). Reduced extraneous methods for XPathNavigator
/ XPathEditableNavigator implementation support.
* XPathEditableDocument.cs : event registration was missing (due to
XPathDocument changes, it might not be required anymore though).
* XPathNavigatorReader.cs :
Namespace nodes were not handled correctly.
EOF handling was incorrect.
Reduced extraneous clone from MoveTo/GetAttribute(int) and
svn path=/trunk/mcs/; revision=33408
Timeline.
2004-09-06 Dick Porter <[email protected]>
* handles.c (_wapi_handle_unref): Reset the private record's type
(CloseHandle): Check for a fd mapping failure, and return FALSE.
(_wapi_handle_process_fork): Fix long-standing bug in checking
handle return values. Also do the required bookkeeping with the
new process's handles.
* daemon.c: When creating a new process's handles, check whether
the shared space needs to be increased
2004-09-06 Dick Porter <[email protected]>
* process.c (ves_icall_System_Diagnostics_Process_Start_internal):
Close the new process's thread handle, as we don't use it. The
handle stays around forever otherwise.
svn path=/trunk/mono/; revision=33406
Renamed cattrs_for_method() to more meaningful
dump_cattrs_for_method_params()
(dump_cattrs_for_method_params): Fixed so that ".param[]" gets
dumped only when necessary. i.e., when a method parameter has
either a default value and/or when it has a custom attribute.
svn path=/trunk/mono/; revision=33402
* HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
(Clear): Don't recreate the MemoryStream and StreamWriter
svn path=/trunk/mcs/; revision=33399
* Strings.cs:
* Collection.cs:
Replaced System.ComponentModel.EditorBrowsableAttribute and
Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute
with their short and sweet equivalents.
Replaced System.ComponentModel.DefaultValueAttribute with the
newly introduced Microsoft.VisualBasic.CompilerServices
.__DefaultArgumentValueAttribute.
svn path=/trunk/mcs/; revision=33398
* mini-*.c, mini-ops.h, inssel-long32.brg: introduced
OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
set the carry/borrow flag). The sparc and s390 implementations
can now use optimized versions (and simplify the code). ppc bugfixes.
svn path=/trunk/mono/; revision=33396
* System.Web.Compilation/BaseCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs:
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
of the assembly for ashx/asmx. Otherwise we need to open the file and
check for the class name in there. Thanks to Ben for pointing this out.
svn path=/trunk/mcs/; revision=33382
* Path.cs (Combine): Array.IndexOf is slow (because of the
special cases it must handle). So, rather than doing IndexOf
just check each type of seperator.
svn path=/trunk/mcs/; revision=33375
* RemotingServices.cs (IsMethodOverloaded): use the internal
method GetMethodsByName. It does much less work than GetMembers.
svn path=/trunk/mcs/; revision=33374
* StringReader.cs (StreamReader): remove sourceChars and disposed
variables
(Read): Copy directly from the string, rather than a char []
(Dispose, CheckObjectDisposedException): the flag for being
disposed is now source == null.
svn path=/trunk/mcs/; revision=33373
* MethodCall.cs, CADMessages.cs: String.Copy (x) is the same
thing as new string (x.ToCharArray ()), however it involves
half the memory allocation
svn path=/trunk/mcs/; revision=33369
* FileIOPermissionAttributeTest.cs: Added a new test to check that the
attribute class accept (and retains) non-c14n filenames while the
permission class accept, but c14n, filenames. Fixed other tests that
didn't check for c14n results from the created permission.
svn path=/trunk/mcs/; revision=33368
* AspParser.cs:
* AspTokenizer.cs: prevent quotes from being swallowed when we're
inside a server tag and they are the next non-whitespace character.
Fixes bug #63451.
svn path=/trunk/mcs/; revision=33364
* Environment.cs: (ExpandEnvironmentVariables) don't nullify the case
insensitive enironment variables hashtable once we create it.
svn path=/trunk/mcs/; revision=33358
* Thread.cs: Changed an imperative security demand to declarative
(unsupported) so it doesn't (for now) call the security runtime.
svn path=/trunk/mcs/; revision=33355
* ContentDisposition.cs ContentType.cs DispositionTypeNames.cs
* MediaTypeNames.cs TransferEncoding.cs:
New class stubs for 2.0
svn path=/trunk/mcs/; revision=33344
* mini-exceptions.c (mono_find_jit_info): Refactor common code from
mono_arch_find_jit_info functions into a new function. Fix a memory
leak.
* exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
refactored code.
svn path=/trunk/mono/; revision=33338
Fixed cs0619-37.cs, cs0619-38.cs
* enum.cs (GetObsoleteAttribute): Removed.
* expression.cs (MemberAccess.DoResolve): Test for [Obsolete]
on Enum member is double staged. The first is tested member
and then enum.
svn path=/trunk/mcs/; revision=33337
Fixed#56986, #63631, #65231
* class.cs: (TypeContainer.AddToMemberContainer): New method,
adds member to name container.
(TypeContainer.AddToTypeContainer): New method, adds type to
name container.
(AddConstant, AddEnum, AddClassOrStruct, AddDelegate, AddMethod,
AddConstructor, AddInterface, AddField, AddProperty, AddEvent,
AddOperator): Simplified by reusing AddToMemberContainer.
(TypeContainer.UserDefinedStaticConstructor): Changed to property
instead of field.
(Method.CheckForDuplications): Fixed implementation to test all
possibilities.
(MemberBase): Detection whether member is explicit interface
implementation is now in constructor.
(MemberBase.UpdateMemberName): Handles IndexerName.
(Accessor): Changed to keep also location information.
(AbstractPropertyEventMethod): Is derived from MemberCore.
(AbstractPropertyEventMethod.IsDummy): Says whether accessor
will be emited or not.
(PropertyBase.AreAccessorsDuplicateImplementation):
Tests whether accessors are not in collision with some method.
(Operator): Is derived from MethodCore to simplify common
operations.
* decl.cs (Flags.TestMethodDuplication): Test for duplication
must be performed.
(DeclSpace.AddToContainer): Adds the member to defined_names
table. It tests for duplications and enclosing name conflicts.
* enum.cs (EnumMember): Clean up to reuse the base structures
svn path=/trunk/mcs/; revision=33334
* EncryptedXml.cs: Add support for RSA for key formatting
* Reference.cs: Include XmlDecryptionTransform
* SignedXml.cs:
Set the EncryptedKey on the XmlDecryptionTransform when
loading XML
* XmlDecryptionTransform.cs:
Clean up decryption transformation to work without ugly hack.
* XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
Implement this class based on XmlDsigC14N
* XmlSignature.cs: Add namespaces for various classes.
* KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
Remove TODO attributes from implemented methods.
* KeyInfoName.cs: Put #if NET_2_0 markers in
* Transform.cs: Implement GetDigestedOutput
svn path=/trunk/mcs/; revision=33321
* EncryptedXml.cs: Add support for RSA for key formatting
* Reference.cs: Include XmlDecryptionTransform
* SignedXml.cs:
Set the EncryptedKey on the XmlDecryptionTransform when
loading XML
* XmlDecryptionTransform.cs:
Clean up decryption transformation to work without ugly hack.
* XmlDsigExcC14NTransform.cs:
Add algorithm identifier.
* XmlSignature.cs:
Add namespaces for various classes.
svn path=/trunk/mcs/; revision=33317
* class.cs (TypeContainer.DefineDefaultConstructor): Put this back
into TypeContainer, to make partial classes work again.
svn path=/trunk/mcs/; revision=33296
* X509KeyUsageExtension.cs: New stub class
* X509SubjectKeyIdentifierExtension.cs: New stub class
* PublicKey.cs X509BasicConstraintsExtension.cs X509CertificateEx.cs
* X509CertificateExCollection.cs X509Extension.cs
* X509ExtensionCollection.cs:
Bring these more in line with 2.0
svn path=/trunk/mcs/; revision=33283
* expression.cs (Invocation.OverloadResolve): Added `bool
may_fail' argument and use it instead of the Location.IsNull() hack.
svn path=/trunk/mcs/; revision=33279
Control.cs: Added new interfaces implemented in .Net 2.0.
ExpressionBinding.cs: Added new class.
ExpressionBindingCollection.cs: Added new class.
svn path=/trunk/mcs/; revision=33276
to be null. Remove redundant implicit conversion test when 'q ==
null' -- when this function is invoked, we already know that the
implicit conversion exists.
(BetterFunction): Assume that 'best' is non-null. Remove
redundant reimplementation of IsApplicable when 'best' is null.
(IsParamsMethodApplicable, IsApplicable): Add new parameter for
number of arguments.
(IsAncestralType): Extract from OverloadResolve.
(OverloadResolve): Make robust to the MethodGroupExpr being
unsorted. Implement all the logic of Section 14.5.5.1, and
support overloading of methods from multiple applicable types.
Clean up logic somewhat. Don't pass null methods to BetterFunction.
* report.cs (SymbolRelatedToPreviousError): Cleanup output.
(RealError, Warning): Append type of report to related symbol.
svn path=/trunk/mcs/; revision=33269
* EnvironmentPermission.cs: Fixed GetPathList which has little
differences between Fx 1.1 and 2.0. Required to run the MSDN samples.
* FileDialogPermission.cs: Fixed IsSubsetOf and Intersect.
* RegistryPermission.cs: Fixed ToXml to avoid NullReferenceException.
Required to run the MSDN library samples.
* SecurityPermission.cs: Return null for an empty intersection.
Required to run the MSDN library samples.
* SiteIdentityPermission.cs: Implemented wildcard support in
Intersect, IsSubsetOf and Union.
* StrongNameIdentityPermission.cs: Implemented wildcard support in
Intersect, IsSubsetOf and Union. Fixed ToXml to pass the MSDN samples.
* UrlIdentityPermission.cs: Implemented wildcard support in Intersect,
IsSubsetOf and Union. Fixed difference between Fx1.1 and 2.0 in Copy.
svn path=/trunk/mcs/; revision=33268
* CodeGroup.cs: Creates an empty PermissionSet (and not an empty
NamedPermissionSet). Required to run the MSDN library samples.
* FileCodeGroup.cs: Fixed Copy so that CodeGroup.Equals would work
preperly. Required to run the MSDN library samples.
* FirstMatchCodeGroup.cs: Reworked the Resolve* logic to run the MSDN
library samples.
* PolicyLevel.cs: Fixed RemoveNamedPermissionSet and (more) complete
CreateAppDomainLevel to run the MSDN library samples.
* StrongNameMembershipCondition.cs: Fix ToXml to run the MSDN library
samples.
svn path=/trunk/mcs/; revision=33267
* UrlIdentityPermissionTest.cs: Added a test for Copy an empty object
which results in a different behaviour in Fx 1.1 and 2.0.
svn path=/trunk/mcs/; revision=33266
* XmlTextReader.cs : When Normalization is true, CRLF and CR should
be converted to single LF. This should fix part of bug #62076.
svn path=/trunk/mcs/; revision=33262
* XmlSchema.cs : When schema inclusion results in a recursion, just
skip recursed schema.
* BUGS-MS.txt : added another entry. Reflected response from Microsoft.
svn path=/trunk/mcs/; revision=33258
* CipherReference.cs: Add XmlDecryptionTransform for 2.0
* EncryptedType.cs: Fix type initialization to conform to .NET
* EncryptedXml.cs:
Add support for RSA key decryption and "cloning" for Transform
* KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
Add 2.0 stubs
* Signature.cs:
Create internal GetXml function if we already have a doc
* SignedXml.cs: Fix the transformation when we get an XmlDocument out
* XmlDecryptionTransform.cs: Implemented Xml Decryption
* XmlSignature.cs: Add namespace for Xml Decryption
svn path=/trunk/mcs/; revision=33236
In CheckSerializableType, add the option of ignoring types with private
constructors. Some kind of lists can be deserialized
even if the constructor is private. See bug #61464.
* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
Before creating a list, check that it has a public constructor.
* TypeData.cs: Added HasPublicConstructor property.
svn path=/trunk/mcs/; revision=33230
* mini.c (mono_method_to_ir): When initializing the locals, call
handle_initobj() on the generic instance itself, not its
underlying type.
svn path=/trunk/mono/; revision=33213
* class.c (mono_class_instance_size): Don't allow generic type
definitions or open generic instances.
(mono_class_array_element_size): If we're a value type, call
mono_class_instance_size() on the original class.
* metadata.c (mono_type_size, mono_type_stack_size): Correctly
handle generic instances.
* mono-debug-debugger.c (write_type): Handle generic instances
like classes.
svn path=/trunk/mono/; revision=33212
* statement.cs (Using.EmitLocalVariableDeclFinally): Use
TypeManager.GetArgumentTypes() rather than calling GetParameters()
on the MethodBase.
svn path=/trunk/mcs/; revision=33210
* mini.h (MonoJitDynamicMethodInfo): New structure, extension of
MonoJitInfo for dynamic methods.
* mini.c: Rename trampoline_hash_mutex to jit_mutex.
* mini.c: Add support for freeing JIT data for dynamic methods.
svn path=/trunk/mono/; revision=33209
* mono-codeman.h mono-codeman.c: Generalize so it can be used to
allocate code for dynamic methods (one method per code manager).
svn path=/trunk/mono/; revision=33207
* SiteIdentityPermission.cs: Updated to match latest unit tests, i.e.
match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
* StrongNameIdentityPermission.cs: Updated to match latest unit tests,
i.e. match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
* UrlIdentityPermission.cs: Updated to match latest unit tests, i.e.
match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
svn path=/trunk/mcs/; revision=33205
* PermissionSet.cs: Updated to match latest unit tests, i.e. match
Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
* SecurityElement.cs: FromString is now internal before NET_2_0.
svn path=/trunk/mcs/; revision=33204
* object.c (mono_runtime_free_method): New function to free a dynamic
method.
* marshal.c (mono_delegate_free_ftnptr): New function to free the
delegate trampoline.
* marshal.c (mono_marshal_get_managed_wrapper): Mark managed wrapper
with hasthis as dynamic,
* icall.c (ves_icall_System_Delegate_FreeTrampoline): New icall.
* domain.c (mono_jit_info_table_remove): New function to remove an
entry from the jit info table.
* class-internals.h (MonoMethod): Add 'dynamic' field.
* loader.c: Fix warnings.
svn path=/trunk/mono/; revision=33202
* MethodBuilder.cs (MethodBuilder.GetParameters): Throw a
NotSupportedException() until the type has been fully created.
svn path=/trunk/mcs/; revision=33201
* EnvironmentPermissionTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1).
* PublisherIdentityPermissionTest.cs: Fixed tests so they execute
without errors on both Fx 1.1 and Fx 2.0 (beta 1).
* SiteIdentityPermissionTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1). Fixed line endings.
* StrongNameIdentityPermissionTest.cs: Fixed tests so they execute
without errors on both Fx 1.1 and Fx 2.0 (beta 1).
* StrongNamePublicKeyBlobTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit
2.2 format.
* UrlIdentityPermissionTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33188
* HashTest.cs: Fixed tests so they execute without errors on both
Fx 1.1 and Fx 2.0 (beta 1).
* PublisherTest.cs: Fixed tests so they execute without errors on both
Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
* SiteTest.cs: Fixed tests so they execute without errors on both Fx
1.1 and Fx 2.0 (beta 1).
* StrongNameTest.cs: Fixed tests so they execute without errors on
both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
* UrlTest.cs: Fixed tests so they execute without errors on both Fx
1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
svn path=/trunk/mcs/; revision=33187
* PermissionSetTest.cs: Fixed tests so they execute without errors on
both Fx 1.1 and Fx 2.0 (beta 1).
* SecurityManagerTest.cs: Fixed tests so they execute without errors
on both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33186
* LiteralControl.cs: stylized. This control has EnableViewState disabled
by default and doesn't get an automatic ID. When text is null -> "".
svn path=/trunk/mcs/; revision=33179
* Xml.cs: fixed get_DocumentContent (it was returning "" always!) and
don't call MapPathSecure on the content itself.
* XmlBuilder.cs: handle XML documents written inside asp:xml. The
document is checked at parse time and will be checked again at run time.
Fixes bug #63828.
svn path=/trunk/mcs/; revision=33175
* AspGenerator.cs: handle builders that need to process inner text
with tags.
* Location.cs: added setters for the properties.
svn path=/trunk/mcs/; revision=33174
documents does not contain a service from which to take the name.
Use the "file://" prefix when using the DiscoveryClientProtocol class,
since in MS.NET does not supports plain file paths.
* SampleGenerator.cs: Fixed header output.
svn path=/trunk/mcs/; revision=33171
C# 2.0 Static classes implemented
* class.cs (TypeContainer): instance_constructors,
initialized_fields, initialized_static_fields,
default_constructor, base_inteface_types are protected to be
accessible from StaticClass.
(TypeContainer.DefineDefaultConstructor): New virtual method
for custom default constructor generating
(StaticClass): New class to handle "Static classes" feature.
* cs-parser.jay: Handle static keyword on class like instance
of StaticClass.
* driver.cs: Added "/langversion" command line switch with two
options (iso-1, default).
svn path=/trunk/mcs/; revision=33169
* mono-debug.c, debug-mono-symfile.c: Use mono_loader_lock()
instead of mono_debugger_lock() because the latter one is a no-op
unless running in the debugger.
svn path=/trunk/mono/; revision=33165
* FaultBinding.cs: Removed useless code.
* HttpSimpleProtocolImporter.cs, SoapProtocolImporter.cs: Take into account
that now we may be generating code for a binding which is not referenced
by any port. In this case Port is null.
* MessageBinding.cs: Properly set the parent operation binding.
* OperationBinding.cs: When adding messages, set its parent property.
* ProtocolImporter.cs: Support generation of proxies for wsdl documents
that do not have any Service entry. In this case, it now generates
a proxy for every binding.
svn path=/trunk/mcs/; revision=33157
* icall.c (ves_icall_System_Reflection_Assembly_get_location): Use
mono_image_get_filename() to get the assembly location.
* icall.c:
* metadata.h: Fix compile warnings
svn path=/trunk/mono/; revision=33154
* PolicyLevel.cs: Fixed Reset not to delete/load policy file for
AppDomain level. Added internal Resolve method for class names.
svn path=/trunk/mcs/; revision=33153
* ZoneIdentityPermission.cs: Do not include "Zone" attribute in XML if
zone == NoZone (so the permission can be considered as empty).
svn path=/trunk/mcs/; revision=33152
* NamedPermissionSet.cs: FromXml now calls base class instead of an
internal method of PermissionSet. This should allow class to inherit
from NamedPermissionSet properly.
* PermissionSet.cs: Added an internal PolicyLevel property to allow
policy file class name resolution. Fixed IsEmpty to return true if
the list contains "empty" permissions. Fixed Copy to copy permissions
even for unrestricted sets (again because of IUnrestrictedPermission).
* SecurityManager.cs: Fixed Resolve(Evidence) because permission
classes Intersect methods can either return null or an empty
PermissionSet. Fixed ResolvePolicy(Evidence[]) for null (NET_2_0).
svn path=/trunk/mcs/; revision=33151
multi-file tests. If the compilation succeeded and there's no
.exe file, then assume nothing went wrong. The rest is up to the
"Compiler options:".
svn path=/trunk/mcs/; revision=33150
* PermissionSetTest.cs: Added tests for IsEmpty which can return true
even when Count > 0. Added tests for FromXml to see if class names
requires to be resolved when loaded from policy files.
* SecurityManagerTest.cs: Minor changes to tests so they succeed with
both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33149
* ZoneTest.cs: Added test to check that NoZone isn't included in the
permission XML (returned by CreateIdentityPermission).
svn path=/trunk/mcs/; revision=33146
* XPathNavigatorReader.cs : on GetAttributeNavigator(int), namespace
node could be this XmlReader's attribute node.
svn path=/trunk/mcs/; revision=33142
* metadata.h (MONO_TYPE_ISREFERENCE): Call
mono_metadata_generic_inst_is_valuetype() if we're a generic
instance to check whether our underlying type is a reference type.
svn path=/trunk/mono/; revision=33141
* mini-x86.c (is_regsize_var): Added support for generic
instances.
(mono_arch_emit_prolog): Make this compile again, use
`x86_push_imm_template (code)'.
svn path=/trunk/mono/; revision=33139
* XQueryCommand.cs : Forgot to commit. sys.xml internal class now
requires this instance for message delegating (not complete though).
svn path=/trunk/mcs/; revision=33138
* DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.
svn path=/trunk/mcs/; revision=33127
* HttpRuntime.cs: initialize the response writer when finishing a
request because it cannot be queued. Under heavy load we made new
requests be processed before the ones that might be queued. This is
no longer the case.
* QueueManager.cs: instead of queueing/dequeuing separately, we now
have a single method that does everything needed to decide which one
will be the next request processed.
svn path=/trunk/mcs/; revision=33113
* XPath2Expression.cs,
XPathSequence.cs :
Implemented GroupExpr.Evaluate() [union/intersect/except].
Fixed incorrect iterator input for DescendantExpr.Evaluate().
MinusExpr is (already) implemented not to be evaluated.
* XQueryExpression.cs :
PI name and nameExpr could be implemented.
* XQueryFunction.cs :
UserFunctionCallExpr.Invoke() should not be invoked.
* XQueryFunctionCliImpl.cs :
Implemented count(), doc(). Halfly implemented trace().
* XmlQueryException.cs : Serializable.
svn path=/trunk/mcs/; revision=33111
* XPath2Expression.cs :
Revised some parameters for XPathSequence classes ctor().
Don't require XPathSequence while they are not required.
AxisIterator need to accept only current node as its input.
Implemented node comparison operators.
Removed AxisStepExpr.ParentStep (in the future it might hold line
information).
* XQueryParser.jay : changes wrt AxisStepExpr.ParentStep.
* XPathSequence.cs, XQueryExpression.cs, XQueryFunction.cs :
Removed some extraneous code.
NodeIterator.ctor() now requires XPathNavigator and XQueryContext
instead of XPathSequence.
Added SelfIterator (derived from NodeIterator).
svn path=/trunk/mcs/; revision=33100
* System.Messaging.Design/QueuePathDialog.cs :Commented out some bits because it would not compile as it couldn't find System.Windows.Forms.Design
svn path=/trunk/mcs/; revision=33095
* PermissionSet.cs: Fixed RemovePermission and Intersect (due to typos
in unit tests). Fixed SetPermission (null).
svn path=/trunk/mcs/; revision=33086
SessionStateItemExpireCallback.cs: Explicit modifier "sealed" not
required in definition as delegates, by default are sealed.
svn path=/trunk/mcs/; revision=33082
ControlSkinProc.cs:
DataSourceViewOperationCallback.cs:
DataSourceViewSelectCallback.cs:
ExtractTemplateValuesMethod.cs: Explicit modifier "sealed" not
required in definition as delegates, by default are sealed.
svn path=/trunk/mcs/; revision=33081
IDReferencePropertyAttribute.cs: Corrected and changed from interface
to class.
IMobileTextWriter.cs: Corrected method signatures.
svn path=/trunk/mcs/; revision=33079
* ApplicationDirectory.cs: Now use Uri class to create the local
application directory.
* ApplicationDirectoryMembershipCondition.cs: Now use Uri class to
CheckEvidence.
* Site.cs: Implemented CreateFromUrl using Uri class.
* Url.cs: Now use Uri class to prepare URLs.
* UrlMembershipCondition.cs: Now use Url class (instead of a string)
for URLs.
* Zone.cs: Implemented default CreateFromUrl using Uri class.
svn path=/trunk/mcs/; revision=33063
* NamedPermissionSet.cs: Fixed Description in copies, GetHashCode and
Equals (for NET_2_0). Fixed handling of null Name when deserialized
from XML.
* PermissionSet.cs: AddPermission now unions permissions of the same
type. CopyTo throw (most) exceptions only if there are items in the
set. Implemented Demand (but without support for Assert, Deny and
PermitOnly). Fixed deserialized from XML when no class is specified.
Started implementation of ConvertPermissionSet (error cases). Fixed
Intersect to be compatible (including bugs like FDBK14612) with MS.
RemovePermission now compatible with MS (bug? FDBK14622). Fixed Union
to work with permissions that do not implement IUnrestrictedPermission.
svn path=/trunk/mcs/; revision=33061
* Uri.cs: Copied from System.dll assembly and started adaptation for
it's reuse inside the security classes (CAS).
svn path=/trunk/mcs/; revision=33057
* SiteTest.cs: Added tests for CreateFromUrl. Updated AllChars for the
differences in Fx 2.0.
* UrlTest.cs: Unignore Url_InvalidSite and started changes to be
compatible with NET_2_0.
* ZoneTest.cs: Added tests for CreateFromUrl and ToString.
svn path=/trunk/mcs/; revision=33056
* NamedPermissionTest.cs: Added unit tests for Copy(), Copy(name),
more tests for From/ToXml and Equals/GetHashCode (for NET_2_0).
* PermissionSetTest.cs: Added new unit tests for AddPermission,
ContainsNonCodeAccessPermissions, partial tests for undocumented
ConvertPermissionSet, Copy, CopyTo, GetHashCode (for NET_2_0),
GetPermission, Intersect, IsSubset, RemovePermission, SetPermission
and Union.
svn path=/trunk/mcs/; revision=33054
* XPathSequence.cs : fixed NodeIterator to get correct current node
from the input sequence. Now open MoveNext() again as public to
allow override by NodeIterator.
svn path=/trunk/mcs/; revision=33040
* XPath2Expression.cs : empty ExprSequence should not be allowed for
FLWORExpr.WhereClause. It should be null.
* XPathSequence.cs : ExprSequenceIterator.Clone() was missing copy of
the input sequence. FLWORIterator.MoveNext() had incorrect !(not)
and wrong Where test.
* XQueryContext.cs : sequence should be cloned when pushed to context.
svn path=/trunk/mcs/; revision=33031
* XQueryASTCompiler.cs, XQueryStaticContext.cs :
Now it requires Evidence and XQueryCommandImpl for security check
and event dispatch.
* XQueryCommandImpl.cs :
Provide Evidence for compiler. Added some code for message dispatch.
* XQueryContext.cs :
Now don't pool variable only in XQueryContextManager.
When variable name could not be resolved, return empty sequence
(not sure if it is always correct).
Fixes which reflects XPathEmptySequence.ctor() parameter changes.
* XQueryCliFunction.cs :
Now it requires CAS if Evidence is supplied (in the future
Evidence won't be null _at any time_).
* XQueryConvert.cs :
implemented GetFallbackType(). Fixed some comments.
* XPathSequence.cs :
Don't require XPathSequence as an argument for XPathEmptySequence.
Implemented FilteredIterator.
Implemented FLWORIterator partly (not working).
Fixed some incorrect exception type: XPathEx- to XmlQueryEx-.
Dispatch message event to XQueryStaticContext.OnMessageEvent().
Added EnumeratorIterator.
* XQueryFunction.cs:
Fixes which reflects XPathEmptySequence.ctor() parameter changes.
* XQueryExpression.cs :
Commonized content serialization for node constructors.
* XPath2Expression.cs :
use XPathItem.TypedValue instead of (string) Value.
In effective boolean value computation, Check Decimal as well.
Fixed misimplemented QuantifiedExpr.EvaluateAsBoolean().
Fix which reflects XQueryContext.PushVariables() changes.
Handle possible null argument on ParenthesizedExpr i.e. "( )".
svn path=/trunk/mcs/; revision=33011
* XmlElement.cs : XmlAttributeCollection doesn't have to be created
every time until the actual use. This sometimes optimizes
attribute-less XML performance siginificantly.
svn path=/trunk/mcs/; revision=33008
* PointerArithmetic (Resolve): make sure we are not doing
pointer arith on void*. Also, make sure we are resolved
by not setting eclass until resolve.
All callers: Make sure that PointerArithmetic gets resolved.
svn path=/trunk/mcs/; revision=32999
emitting of ".param[] = ..." is complete.
* get.c: Modified get_constant() so that
1. MONO_TYPE_CHAR now handles unicode characters
2. MONO_TYPE_I8 now emits int64(...)
3. MONO_TYPE_STRING emits a bytearray()
svn path=/trunk/mono/; revision=32994
* metadata.c
(mono_metadata_generic_inst_is_valuetype): New public function.
* metadata.h (MONO_TYPE_ISSTRUCT): Call
mono_metadata_generic_inst_is_valuetype() if we're a generic
instance to check whether our underlying type is a valuetype.
svn path=/trunk/mono/; revision=32954
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
other requests from avoiding the lock if they are received before the
configuration system is inited. Ensure that the queue manager is not
null before using it (it can be null while the first request is being
processed).
svn path=/trunk/mcs/; revision=32940
* gmcs-ignore-tests: New file. This file lists tests which should
not be run at all because they make the compiler hang.
* gmcs-expect-no-error, gmcs-expect-wrong-error: Updated.
* generics-expect-no-error: Updated.
svn path=/trunk/mcs/; revision=32936
* Makefile
(run-gmcs-tests): New target to run the cs*.cs tests with gmcs.
(run-generics-tests): New target to run the gcs*.cs tests.
(run-tests-local): Run run-mcs-tests, run-gmcs-tests and
run-generics-tests.
* do-tests.pl: Don't return an error value if more tests pass than
expected.
* mcs-expect-no-error, mcs-expect-wrong-error: Updated to the
current situation, ie. make all the tests pass.
* gmcs-expect-no-error, gmcs-expect-wrong-error: New files.
* generics-expect-wrong-error: Formerly known as
gmcs-expect-wrong-error.
svn path=/trunk/mcs/; revision=32933
MailMessageWrapper.cs: Added a comment to add Date header.
SmtpClient.cs: Updated functionality to add RelatedBodyPart to
MIME message.
svn path=/trunk/mcs/; revision=32928
* XmlAttribute.cs : some property getters threw NullReferenceException
when the attribute is not added to an element.
* XmlNode.cs : When a node is not appended to another node, BaseURI
is empty. Bug #64120 is fixed.
svn path=/trunk/mcs/; revision=32914
* MonoSymbolFile.cs (MonoSymbolFile..ctor): Set
`reader.BaseStream.Position' to 12 before reading the GUID so we
actually read it from the correct file offset.
svn path=/trunk/mcs/; revision=32910
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to
MonoSymbolFile.ctor, not filename, so we load the .mdb file
instead of the .dll.
(MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream
ctor.
svn path=/trunk/mcs/; revision=32909
* MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
called Module.Mono_GetGuid(), not Module.MonoDebugger_GetGuid().
svn path=/trunk/mcs/; revision=32907
* ApplicationSecurityManager.cs: New stub for Fx 2.0 application trust
security manager.
* ApplicationSecurityManagerCodeGroup.cs: New stubbed code group for
NET_2_0 profile.
* ApplicationTrustCollection.cs: New. ApplicationTrust collection for
NET_2_0 profile.
* ApplicationTrustEnumerator.cs: New. ApplicationTrust enumerator for
NET_2_0 profile.
svn path=/trunk/mcs/; revision=32905
* TdsComm.cs:
Tds70.cs:
Make Tds70 work on Big Endian machines.
BitConverter uses unsafe and returns things in host order; we need to
swap some values to put them back into the approrpiate order for the wire.
svn path=/trunk/mcs/; revision=32898
* ecore.cs (Constantify): Get underlying type via
System.Enum.GetUnderlyingType to avoid StackOverflow on the
Windows in special cases.
svn path=/trunk/mcs/; revision=32893
* typemanager.cs (GetAddMethod): Used GetAddMethod (true)
for obtaining also private methods.
(GetRemoveMethod): Used GetRemoveMethod (true)
for obtaining also private methods.
svn path=/trunk/mcs/; revision=32892
* corlib_test.dll.sources: Added System.Security.Policy/
ApplicationDirectoryTest.cs, HashMembershipConditionTest.cs,
HashTest.cs and IBuiltInEvidenceTest.cs to unit tests.
svn path=/trunk/mcs/; revision=32890
* ApplicationDirectory.cs: Fixed directory validation and ToString.
* CodeGroup.cs: Fixed PermissionSetName when policy is null.
* Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
* FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
unit tests.
* Gac.cs: Implemented IBuiltInEvidence methods.
* Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
with Mono ;-). Fixed properties for use with NET_2_0.
* HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
copies of hash value (not references).
* PermissionRequestEvidence.cs: Now make copies of permission sets.
* Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
* Site.cs: Namespace cleanup, implemented GetRequiredSize.
* StrongName.cs: Namespace cleanup.
* UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
* Url.cs: Namespace cleanup, implemented GetRequiredSize.
* Zone.cs: Namespace cleanup, globalization and added more details in
exception.
svn path=/trunk/mcs/; revision=32888
* testmbas/WriteOk.vb : Use Mono.GetOptions from VB.NET
* Makefile : exercise new option processing in test program [make-run-local target]
svn path=/trunk/mcs/; revision=32887
* SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a
deep copy. Throw proper exceptions in FromString (Fx 2.0).
* SecurityManager.cs: Throw a NullReference exception in
SavePolicyLevel as MS won't fix it (FDBK13121).
svn path=/trunk/mcs/; revision=32884
* ApplicationDirectoryTest.cs: New. For NET_2_0 profile.
* EvidenceTest.cs: Added more tests for 1.1 and new tests for 2.0.
* FileCodeGroupTest.cs: Added more tests for Resolve,
ResolveMatchingCodeGroups and new Fx 2.0 Scope property.
* HashMembershipConditionTest.cs: New. Unit tests for hash membership.
* HashTest.cs: New. Unit tests for hash.
* IBuiltInEvidenceTest.cs: New. Unit tests for the internal
IBuiltInEvidence interface. All tests are [Ignore]d for the
* NetCodeGroupTest.cs: Ajusted PermissionSetName for Fx 2.0.
* PermissionRequestEvidenceTest.cs: Ajusted existing tests for 2.0.
Converted tests to NUnit 2.2 format. Converted to UNIX line endings.
Added test to see that the original permission sets are copied but
the instance copy can be changed (not copied on output).
* PolicyLevelTest.cs: Added more tests for Resolve and
ResolveMatchingCodeGroups.
* UnionCodeGroupTest.cs: Added more properties validation in tests.
svn path=/trunk/mcs/; revision=32883
* XmlTextWriter.cs : In CheckState(), don't create indentation string
at every time. WriteIndent() now handles the indentation without
recomputation.
svn path=/trunk/mcs/; revision=32882
* XPath2Expression.cs :
Fixed PathRootExpr.Evaluate() that always failed.
Renamed PathChildExpr to PathSlashExpr, PathDescendantExpr to
PathSlash2Expr, and added abstract PathStepExpr.
PathSlash2Expr.Evaluate() now uses PathStepIterator
* XPathSequence.cs :
- Modified MoveNextCore() as protected.
- Fixed SingleItemIterator.MoveNext() to be simple.
- Renamed ChildPathIterator to PathStepIterator. Mostly copied
SlashIterator logic from Iterator.cs into PathStepIterator.
- Removed DescendantPathIterator ("//" should be the same as
"/descendant-or-self::node()/").
- NodeIterator.Node should come from current node, not context node.
- Added dummy flag for NodeIterator's copy constructor (that resulted
in incorrect copying for some usecases).
* XQueryParser.jay : Fixes in sync with Expr class name changes.
svn path=/trunk/mcs/; revision=32871
* XPath2Expression.cs : in Compiler(), function call's arguments must
also be compiled.
* XQueryASTCompiler.cs : When function is external, it should not try
to compile body, and tries to handle it as a native CLI method (I
don't like this name resolution design very much, so it is likely
to be redesigned).
* XQueryCliFunction.cs : trivial code comment fix.
* XQueryFunction : added user-specified function call support.
When CLI function returned null, don't wrap null and just return
XQueryEmptySequence.
* XQueryFunctionCliImpl.cs : fn:nilled() requires certain node.
Implemented numeric functions (in the future they might be
rewritten to avoid boxing).
* XQueryTokenizer.cs : Skip XQuery comment inside default state.
PI and XML comment are not read correctly.
svn path=/trunk/mcs/; revision=32856
* Parser.cs:
* expression.cs: made Binary is IAssignable, added fields assign
and right_side, added method ResolveAssign (which now receives an
extra parameter, being the right side of the assigment). Take care of being
inside a function for array indexing. Take care of lvalue case
too. Assign.Emit just calls left.Emit since left knows everything
about the right side of the assigment after Resolve process.
* BitwiseBinary.cs, CodeGenerator.cs, Equality.cs, NumericBinary.cs, : updates for BinaryOp change.
svn path=/trunk/mcs/; revision=32854
* BinaryOp.cs: renamed current_op to simply op as with the new
parser we no longer need to keep track of the old_op.
svn path=/trunk/mcs/; revision=32853
* Updated files from gborg cvs. Added support for geometric types.
Improved Unicode encoding support. It was possible to characters in unicode cross the stream buffer and be discarded. Now we use Decoders which handle that situation. Thanks Oskars Ozols (oskars dot ozols at di dot lv)
Improved connection startup code. Now new connections in ms.net goes a lot faster. Thanks Mikko Korkalo (mikko.korkalo at f-solutions dot net) for the patch.
Fixed a problem with plan execution in 7.3 backend versions. The text parameters weren't being quoted and backend complained about that.
- gborg 898: Added HasRows method to NpgsqlDataReader. Thanks [email protected] for feature request.
- gborg 899: Fixed return of IsClosed after closing NpgsqlDataReader. Thanks Mikko Korkalo (mikko.korkalo at f-solutions dot net) for the patch.
svn path=/trunk/mcs/; revision=32851
* support.cs (ReflectionParameters..ctor): If this is a generic
method, retrieve and store its type parameters.
(InternalParameters..ctor): Added `TypeParameter[]' argument.
(ReflectionParameters.GenericConstraints): The argument specifies
the type parameter, not the method parameter.
(InternalParameters.GenericConstraints): Likewise.
* generic.cs (TypeParameter.DefineType): Correctly handle
constraints wrt. generic methods in interfaces and their
implementations.
svn path=/trunk/mcs/; revision=32846
* loader.c (mono_get_method_from_token): Abstract methods can also
be generic and thus have type parameters.
* metadata-internals.h
(MonoDynamicImage): Added `GPtrArray *gen_params'.
* reflection.c (mono_image_get_generic_param_info): Don't create a
metadata row, just add an entry to the `gen_params' array.
(build_compressed_metadata): Sort the `gen_params' array and then
actually create the metadata.
svn path=/trunk/mono/; revision=32844
* XPath2Expression.cs :
Check write state before writing document node.
Check if navigator's SchemaInfo is null or not before atomizing.
Use individual axis-based iterator in AxisStepExpr.Evaluate().
* XPathSequence.cs : added individual axis-based iterator.
Removed commented NodeKindTestIterator.
* XQueryCliFunction.cs, XQueryContext.cs, XQueryFunction.cs :
Now XQueryContext.CurrentItem explicitly throws exception if
no context node was provided (also XQueryCommand.Execute() is
fixed not to provide empty document as input).
Now XQueryFunction should not access to CurrentItem unless it is
required.
* XQueryFunctionCliImpl.cs : fixed more method signatures.
svn path=/trunk/mcs/; revision=32827
* XPathAtomicValue.cs : Value was not returning expected value when
it is created as new XPathAtomicValue (object, XmlSchemaType).
Compute stringValue and reuse.
* XPathNavigator.cs : Temporarily stubbed as to ignore SchemaInfo
(for checking XQuery implementation).
svn path=/trunk/mcs/; revision=32826
MailMessageWrapper.cs: Added NET_2_0 property and another missing
property from NET_1_1.
RelatedBodyPart.cs: Error detection and handling.
SmtpClient.cs: Upgraded for NET_1_1 and WIP for NET_2_0.
svn path=/trunk/mcs/; revision=32822
When deserializing an encoded method response, assign to the return value
the first element of the message, whatever it is. The return type doesn't
need to be Object, it seems to be true for all return types.
svn path=/trunk/mcs/; revision=32813
* SequenceType.cs : moved type inference method to XPathAtomicValue.
Use IsArray in runtime type inference. Initialize fields completely.
Handle collection to runtime type for functions that takes array.
* XPath2Expression.cs : Add whitespaces on serializing XPath items.
EBV != atomized boolean value. Add Atomize() for XPathItem (Atomize()
for XPathSequence should be removed in the future).
Replaced some ExprSequence to ExprSingle for optimization.
* XQueryFunctionCliImpl.cs : Fixed some return types.
* XQueryTokenizer.cs : Fixed weird ReadDecimal().
svn path=/trunk/mcs/; revision=32812
* XPathAtomicValue.cs : Handle .ctor() with object parameter more
precisely (still not enough, for list argument).
Removed commended blocks.
svn path=/trunk/mcs/; revision=32811
* XmlSchemaSimpleType.cs : Fill list types such as xs:IDREFS.
* XmlSchemaType.cs :
Fixed TypeCode more (broken on predefined list types and xs:anyType).
svn path=/trunk/mcs/; revision=32810
* generic.cs (TypeParameter.IsSubclassOf): New public method.
(Constraints.IsSubclassOf): New internal method.
* typemanager.cs (TypeManager.FindMembers): Added special support
for GenericTypeParameterBuilder's.
(TypeManager.IsSubclassOf, IsFamilyAccessible): Added support for
type parameters.
svn path=/trunk/mcs/; revision=32784
* typemanager.cs
(TypeManager.IsSubclassOf): Renamed to IsFamilyAccessible; use
this for accessibility checks.
(TypeManager.IsSubclassOrNestedChildOf): Renamed to
IsNestedFamilyAccessible.
(TypeManager.IsSubclassOf): New method, do what the name actually
says.
svn path=/trunk/mcs/; revision=32781
* cpu-amd64.md: sreg1 of div instructions must be %rax.
* mini-amd64.c: Register allocator fixes.
* mini.c: Add an optimization to emit_state to avoid allocation of new
registers on some platforms.
svn path=/trunk/mono/; revision=32776
* UrlMembershipCondition.cs: Check now only iterate host provided
evidences.
* ZoneMembershipCondition.cs: FromXml doesn't throw exceptions if Zone
attribute is missing.
svn path=/trunk/mcs/; revision=32771
* AllMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* ApplicationDirectoryMembershipConditionTest.cs: Renamed GetHashCode
and ToString tests to remove compiler warnings.
* ApplicationMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* DomainApplicationMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* GacMembershipConditionTest.cs: Added some new unit tests for
FromXml to match other *MembershipCondition classes.
* PublisherMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* SiteMembershipConditionTest.cs: Completed. Converted existing unit
tests to NUnit 2.2 format.
* UrlMembershipConditionTest.cs: Completed. Converted existing unit
tests to NUnit 2.2 format.
* ZoneMembershipConditionTest.cs: Added some new unit tests to match
other *MembershipCondition classes.
svn path=/trunk/mcs/; revision=32768
* expression.cs: do not pass the operand as a parameter to the
constructor as it gets after the parent gets constructed, same
with binary. Added code generation for array index access.
* Parser.cs: added ToJStoken which converts Token to JSToken,
factored the code for creation the Unary nodes. Take care of
parent relationship.
* LateBinding.cs: back to Microsoft.JScript namespace.
svn path=/trunk/mcs/; revision=32760
GetComponentType should always return the type if
specified, GetId can now be !=0 for base64 arrrays.
* SoapTypeMapper.cs: Register byte[] as base64 xml type.
* SoapWriter.cs: Handle base64 encoded byte arrays.
svn path=/trunk/mcs/; revision=32759
* ConformanceChecker.cs: Added service list property in
ConformanceCheckContext.
* MessagePart.cs: Added some convenient internal properties.
* OperationMessageCollection.cs: Added property for getting the fault
message.
* ServiceDescriptionFormatExtensionCollection.cs: The find method now
can return subclasses of the provided class.
* WebServicesInteroperability.cs: Set the context schema when processing
a schema.
svn path=/trunk/mcs/; revision=32758
* XPathAtomicValue.cs : DateTime should be convertible to string.
Use schemaType's TypeCode for .ctor() that takes object.
* XPathNavigator.cs : copied get_InnerXml from XPathEditableNavigator.
* XPathEditableNavigator.cs : set_InnerXml should be different (new)
property from get_InnerXml. Removed get_InnerXml and get_OuterXml
overrides.
svn path=/trunk/mcs/; revision=32756
* SequenceType.cs : added ToRuntimeType().
* XPath2Expression.cs : override is required.
* XPathSequence.cs : fixed ExprSequenceIterator.MoveNext() that caused
infinite loop.
* XQueryCompileContext.cs : CultureInfo was missing.
* XQueryContext.cs : CurrentContext must be created after setting
currentSequence.
* XQueryConvert.cs : DateTimeToString() was missing.
* XQueryFunction.cs : convert parameters to runtime type before
being used in Invoke(). Use function's ReturnType to create typed
atomic.
* XQueryParser.jay : create XQueryFunctionArgumentList instance
for function calls that does not have parameters.
svn path=/trunk/mcs/; revision=32755
- Added handling of form closing
- Fixed reporting of MessageLoop property
- Removed some unneeded code, should provide a bit of a speedup
svn path=/trunk/mcs/; revision=32736
- Added code to properly perform layout when Anchor or Dock property is
changed
- Changed 'interpretation' of ResumeLayout. MS seems to have a LAMESPEC,
tried to do it in a way that makes sense
svn path=/trunk/mcs/; revision=32732
* AllMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.
* ApplicationDirectoryMembershipConditionTest.cs: New. Unit tests in
NUnit 2.2 format.
* ApplicationMembershipConditionTest.cs: New. Unit tests in NUnit 2.2
format.
* DomainApplicationMembershipConditionTest.cs: New. Unit tests in
NUnit 2.2 format.
* PublisherMembershipConditionTest.cs: Completed. Converted
existing unit tests to NUnit 2.2 format.
svn path=/trunk/mcs/; revision=32728
* AllMembershipCondition.cs: Use common template for membership
condition.
* ApplicationDirectoryMembershipCondition.cs: Use common template for
membership condition. Limit evidences checks to host provided.
"Mostly" functionnal - still need to check c14n issues.
* ApplicationMembershipCondition.cs: New. For NET_2_0 profile.
* DomainApplicationMembershipCondition.cs: New. For NET_2_0 profile.
* GacMembershipCondition.cs: Use common template for membership
condition. Limit evidences checks to host provided.
* HashMembershipCondition.cs: Use common template for membership
condition. Limit evidences checks to host provided.
* MembershipConditionHelper.cs: Internal class for common membership
condition classes functionalities.
* PublisherMembershipCondition.cs: Use common template for membership
condition.
* SiteMembershipCondition.cs: Use common template for membership
condition.
* StrongNameMembershipCondition.cs: Use common template for membership
condition.
* UrlMembershipCondition.cs: Use common template for membership
condition.
* ZoneMembershipCondition.cs: Use common template for membership
condition.
svn path=/trunk/mcs/; revision=32727
* Parser.cs: pass the skip_count to ArrayLiteral constructor.
* Missing.cs: back to Microsoft.JScript namespace.
* ArrayLiteral.cs: added field skip_count, it tells us if this is
a spaced-arrayliteral, in which case we add a null value in the
list, added null check in the resolve and code generation process.
svn path=/trunk/mcs/; revision=32710
* SequenceType.cs, XPath2Expression.cs, XQueryASTCompiler.cs,
XQueryCliFunction.cs, XQueryCompileOptions.cs, XQueryContext.cs,
XQueryConvert.cs, XQueryExpression.cs, XQueryFunction,cs,
XQueryFunctionCliImpl.cs, XQueryFunctionTable.cs,
XQueryModuleProlog.cs, XQueryParser.jay, XQueryStaticContext.cs,
XQueryTokenizer.cs :
Eliminate MS.Internal.Xml.* classes. More null check everywhere and
make Compile() pass though as a dummy. Unified FunctionParam into
XQueryFunctionArgument. More kind error message. Several fixes.
svn path=/trunk/mcs/; revision=32703
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=32700
Back to the old error reporting system :-)
* report.cs (Message): Removed.
(Report.MessageData, ErrorData, WarningData): Removed.
(Report.Error, Warning): Back to the old system.
svn path=/trunk/mcs/; revision=32698
Back to the old error reporting system :-)
* report.cs (Message): Removed.
(Report.MessageData, ErrorData, WarningData): Removed.
(Report.Error, Warning): Back to the old system.
svn path=/trunk/mcs/; revision=32694
* metadata.c (mono_metadata_parse_type): Alloc pinned, byref and
custom modifiers to be in any order. Fixes#61990.
svn path=/trunk/mono/; revision=32690
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
the cookie if SlidingExpiration is set. Thanks to Jim Pease.
svn path=/trunk/mcs/; revision=32676
* flowanalysis.cs (FlowBranching.UsageVector.MergeChild): If we're
a switch and may break, reset the barrier. Fixes#59867.
svn path=/trunk/mcs/; revision=32665
CLS-Compliance speed up (~5% for corlib)
* attribute.cs (AttributeTester.VerifyTopLevelNameClsCompliance):
New method. Tests container for CLS-Compliant names
* class.cs (TypeContainer.VerifyClsName): New method.
Checks whether container name is CLS Compliant.
(Constructor): Implements IMethodData.
* decl.cs (MemberCache.GetPublicMembers ): New method. Builds
low-case table for CLS Compliance test.
(MemberCache.VerifyClsParameterConflict): New method.
Checks method parameters for CS3006 error.
* enum.cs (EnumMember): Is derived from MemberCore.
(Enum.VerifyClsName): Optimized for better performance.
svn path=/trunk/mcs/; revision=32663
* Microsoft.JScript.dll.sources: added In.cs, Token.cs,
TokenStream.cs and Parser.cs to the build. Don't build
JScriptLexer.cs and JScriptParser.cs
svn path=/trunk/mcs/; revision=32654
* expression.cs: added interface ICallable and and function AddArg
to class Call. Added class New.
* driver.cs: made it use the new lexer and parser.
* ast.cs: added field line_number, added property InFunction,
added class Function that factores all the code shared between
FunctionDeclaration and FunctionExpression.
* With.cs: constructor receives line number.
* VariableStatement.cs: constructor receives line number.
* VariableDeclaration.cs: Added check for parent being
FunctionDeclaration and FunctionExpression.
* Try.cs: Moved the code that used to take care of the catch to
Catch class. Constructor receives forming elements and line
number. Removed mangle_id.
* Throw.cs: constructor receives line number.
* Statement.cs: If, DoWhile, Return constructor receives line number. Renamed
identifier to label in Continue and Break class, its constructor now
receives the label and line number. For class, constructor
receives its forming parts. Switch class, constructor receives
line number, added function AddClause and AddStm. Added class
Catch. Added class Labelled.
* SemanticAnalyser.cs: Added field anon_method_counter, properties
NextAnonymousMethod and CurrentAnonymousMethod.
* Parser.cs: function ArgumentList receives a ICallable list
instead of a AST. Now we add the arguments of a callable. Build
Call's ast.
* Literal.cs: added constructor for 'this' literal and
ObjectLiteral constructor. Added RegExpLiteral class, will take
care of regular expressions semantic analysis and code generation.
* JSScanner.cs: use no more the antlr based lexer. Fix typo.
* JSParser.cs: make it use the new port of Rhino's Parser.
* FunctionObject.cs: Added constructor that receives the function name.
* FunctionExpression.cs: made it inherit from Function class. Added
constructor. Factored the code that used to set the prefix to
Function.set_prefix (it's shared with FunctionDeclaration). Added
fields local_script_func and field. Implemented Resolve and Emit
(now we can do: var x = function (this, method, is, anonymous) {... };).
* FunctionDeclaration.cs: made it inherit from Function class in
order to share code with FunctionExpression. Added new
constructor. Moved the code that used to built the prefix to
Function inside function set_prefix. When building the closure
added check for setting the type of a FunctionExpression. Moved
set_function_type and set_custom_attr to class Function.
* ForIn.cs: added constructor and fields lhs, obj and body.
* Block.cs: added default constructor and line number based
constructor. Check for elems not being null before adding.
* ArrayLiteral.cs: set elements in constructor.
svn path=/trunk/mcs/; revision=32652
* amd64/amd64-codegen.h (X86_IS_BYTE_REG): Redefine X86_IS_BYTE_REG
since under amd64, all 16 registers have a low part.
svn path=/trunk/mono/; revision=32632
* mini-amd64.c (read_tls_offset_from_method): Add another code
sequence.
* tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
instruction sequence for nullifying class init trampolines.
svn path=/trunk/mono/; revision=32624
* object.c (mono_class_get_allocation_ftn): Return to calling
mono_object_new_fast, since it seems faster to compute the object
size in unmanaged code than passing it as a parameter.
svn path=/trunk/mono/; revision=32595
* UrlIdentityPermission.cs: Basic (without wildcards) implementation
for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.
svn path=/trunk/mcs/; revision=32587
* XQueryExpression.cs : Content for XmlTextConstructor might be null,
and use literal text for constructor argument if supplied.
* XQueryParser.jay, XQueryTokenizer.cs : Element content literal
string was not parsed and kept correctly. Parse CDATA section.
svn path=/trunk/mcs/; revision=32582
* driver.c (mono_main): Set mono_stats.enabled if needed.
* mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
CEE_BOX.
svn path=/trunk/mono/; revision=32580
* gc-internal.h gc.c: Add mono_gc_out_of_memory () function. Register
this function with Boehm as the oom handler, so we don't have to check
the result of GC_malloc.
* object.c: Remove checks for oom.
* object.h object.c (mono_class_get_allocation_ftn): New function to
return the icall which can be used to allocate an instance of a given
class.
* object.c: Handle common allocation requests using GC_gcj_fast_malloc.
* class-internals.h: Add 'enabled' field.
svn path=/trunk/mono/; revision=32579
* SiteIdentityPermission.cs: Basic (without wildcards) implementation
for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.
svn path=/trunk/mcs/; revision=32573
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
class CodeAccessSecurityAttribute.
* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
DataProtectionPermissionAttribute class.
* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
HostProtectionAttribute class.
* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
abstract class IsolatedStoragePermissionAttribute.
* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
KeyContainerPermissionAttribute class.
* SecurityAttributeTest.cs: New unit tests for abstract class
SecurityAttribute.
* SiteIdentityPermissionTest.cs: New unit tests for
SiteIdentityPermission. Lacks tests for wilcards.
svn path=/trunk/mcs/; revision=32572
* Event_dll.vb:
* Event_exe.vb:
New tests for invoking event form other assembly
* Test.Sources: Updated with new file names
* Makefile: Added new dll name
svn path=/trunk/mcs/; revision=32571
* XQueryCommand.cs : Now it delegates all implementation logic to
Mono.Xml.XQuery.XQueryCommandImpl class (now Execute() is also
invoked.)
svn path=/trunk/mcs/; revision=32570
* statement.cs: Bug fixing - Prevent AddHandler from getting resolved second time. This is critical for ASP programs with VB.
svn path=/trunk/mcs/; revision=32566
* XmlTextReader.cs : Fixed EOF not to return true when it is just
closed. Element and EndElement location is now adjusted to be the
same as MS.NET does. This fixes bug #63505 and #63507.
ResetState() now throws InvalidOperationException() as MS.NET does.
* WriteState.cs : added missing 2_0 enumeration.
* XmlReader.cs : ReadTypedValue() is virtual.
* XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
svn path=/trunk/mcs/; revision=32558
- Added a way to re-initialize with a different display handle
- Fixed setting of the window background color
- Added various X11 imports related to colors and colormaps
svn path=/trunk/mcs/; revision=32543
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
class CodeAccessSecurityAttribute.
* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
DataProtectionPermissionAttribute class.
* EnvironmentPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Fixed small
behaviour difference with Fx 2.0.
* FileDialogPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* FileIOPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Added tests
for new Fx 2.0 properties.
* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
HostProtectionAttribute class.
* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
abstract class IsolatedStoragePermissionAttribute.
* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
KeyContainerPermissionAttribute class.
* PermissionSetAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Added tests
for new Fx 2.0 properties.
* PrincipalPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* PublisherIdentityPermissionAttributeTest.cs: Added tests to check
class's attributes. Converted existing tests to NUnit 2.2 format.
* ReflectionPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* RegistryPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Added tests
for new Fx 2.0 properties.
* SecurityAttributeTest.cs: New unit tests for abstract class
SecurityAttribute.
* SecurityPermissionAttributeTest.cs: Removed unrequired line.
* SiteIdentityPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* StrongNameIdentityPermissionAttributeTest.cs: Removed unrequired line.
* UIPermissionAttributeTest.cs: Removed unrequired line.
* UrlIdentityPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* ZoneIdentityPermissionAttributeTest.cs: Removed unrequired line.
svn path=/trunk/mcs/; revision=32538
* CodeAccessSecurityAttribute.cs: Namespace clean-up (removing System.)
* EnvironmentPermission.cs: Common exception for flags validation.
Fixed Fx 2.0 return values (String.Empty not null).
* EnvironmentPermissionAttribute.cs: Namespace clean-up.
* FileIOPermission.cs: Updated to use the common template. Added Fx
2.0 properties.
* FileIOPermissionAttribute.cs: Added Fx 2.0 properties.
* HostProtectionAttribute.cs: Namespace clean-up (removing System.)
* IsolatedStoragePermissionAttribute.cs: Namespace cleanup.
* KeyContainerPermissionAttribute.cs: Added default values. Removed
unrequired flags validations. Can now create unrestricted permissions.
* PermissionSetAttribute.cs: Added new Fx 2.0 Hex property.
* PrincipalPermission.cs: Updated to use the common template.
* PrincipalPermissionAttribute.cs: Namespace cleanup.
* PublisherIdentityPermissionAttribute.cs: Namespace cleanup.
* RegistryPermission.cs: Updated to use the common template.
* RegistryPermissionAttribute.cs: Added Fx 2.0 properties.
* SecurityAttribute.cs: Namespace clean-up (removing System.)
* SiteIdentityPermission.cs: Updated to use the common template.
* SiteIdentityPermissionAttribute.cs: Move unrestricted responsability
check to SiteIdentityPermission constructor.
* StrongNamePermissionAttribute.cs: Move unrestricted responsability
check to StrongNameIdentityPermission constructor.
* UrlIdentityPermission.cs: Updated to use the common template.
* UrlIdentityPermissionAttribute.cs: Move unrestricted responsability
check to UrlIdentityPermission constructor.
* ZoneIdentityPermissionAttribute.cs: Move unrestricted responsability
check to ZoneIdentityPermission constructor.
svn path=/trunk/mcs/; revision=32537
* mini-x86.c, cpu-pentium.md, inssel-x86.brg:
set tree->dreg correctly with tls. Allow any
register to be used.
* mini-x86.c (read_tls_offset_from_method): add new code
generation pattern seen with GCC.
svn path=/trunk/mono/; revision=32533
* mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
exceptions-sparc.c: fix some performance issues in exception
handling and setting of the stack trace for exceptions that were
already thrown.
svn path=/trunk/mono/; revision=32531
* handles.c (_wapi_handle_count_signalled_handles): Fix thinko
introduced with the fd offset stuff: unlock handles properly when
backing off. Fixes the monologue hang at exit.
svn path=/trunk/mono/; revision=32528
* Makefile: Changed the makefile to support multiple file compilation sothat we can compile files A1.vb, A2.vb, A3.vb as A*.vb
svn path=/trunk/mcs/; revision=32525
* SecurityPermissionAttributeTest.cs: Added unit tests for invalid
SecurityAction, Flags effects and custom attributes. Converted
existing tests to NUnit 2.2 format.
* SecurityPermissionTest.cs: New. Unit tests for SecurityPermission.
svn path=/trunk/mcs/; revision=32521
that are marked as Optional.
* dump.c: Fixed dump_table_constant so that the parent field's
description is correctly displayed.
* tabledefs.h: Corretced PARAM_ATTRIBUTE_OPTIONAL to the right
value 0x0010.
svn path=/trunk/mono/; revision=32519
that are not yet implemented. check value of Integrated Security
keyword, check value of bool keywords, improve error reporting
for int keywords, added support for the following keyword
synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
is set to true, enlist keyword is set to false or attachdbfilename
keyword (or one of its synonyms) is set. Added FIXME for PERSIST
SECURITY INFO keyword, throwing a NotImplementedException here
would break lots of apps
svn path=/trunk/mcs/; revision=32516
* Override_dll.vb:
* Override_exe.vb:
New test cases to test Overriding functions across assemblies
* Delegate_dll.vb:
* Delegate_exe.vb:
New test cases to check delegates invoking functions across assemblies
* Makefile: Added new dll names to the dependency list
svn path=/trunk/mcs/; revision=32515
* CodeAccessPermission.cs : csc build fix. Currently mcs has bugs on
CS0136 error detection (variable identifiers in switch cases share
the scope).
svn path=/trunk/mcs/; revision=32513
* DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
allows 12, that should not be accepted (13 is rejected) and
interpreted as 0. This fixes bug 63376.
svn path=/trunk/mcs/; revision=32507
* mini.h: new arch functions for TLS intrinsics.
All platforms updated with a stub.
* mini.c: use the new intrinsics
* mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
arch specific intrinsic for tls variables
svn path=/trunk/mono/; revision=32493
* corlib_test.dll.sources: Added GacIdentityPermissionTest.cs and
GacIdentityPermissionAttributeTest.cs to unit tests. Added
IsolatedStorageFilePermissionTest.cs.
svn path=/trunk/mcs/; revision=32491
* IsolatedStorageContainment.cs: Added new enums values for NET_2_0.
* IsolatedStorageFilePermissionAttribute.cs: Removed unrequired using
clause.
* IsolatedStorageFilePermission.cs: Updated to use the common template.
Completed TODOs and now pass all unit tests.
* IsolatedStoragePermission.cs: Updated to use the common template.
Completed TODOs and now pass all unit tests.
svn path=/trunk/mcs/; revision=32490
* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
Fixes bug 63063, patch by Laurent Debacker ([email protected]).
svn path=/trunk/mcs/; revision=32486
* sockets.c:
* io.c: Check that new fds fit in the table, return error if not
* daemon.c (_wapi_daemon_main):
* handles.c (shared_init): Have all processes agree on a size for
the fd table.
svn path=/trunk/mono/; revision=32484
* Makefile.am (libmetadata_la_LIBADD): Avoid linking libmonoos into
multiple libraries since this don't work on windows.
svn path=/trunk/mono/; revision=32482
* GacIdentityPermission.cs: Update to use the common template. Now
pass all unit tests.
* GacIdentityPermissionAttribute.cs: Added FIXME comment.
svn path=/trunk/mcs/; revision=32480
* DataView.cs - Completed most of the event handling.
* DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView
svn path=/trunk/mcs/; revision=32475
* class-internals.h
(MonoMethodNormal): Moved `MonoGenericParam *gen_params' here from
MonoMethodHeader.
* metadata.h (MonoMethodHeader): Moved the `gen_params' field to
MonoMethodNormal since we also need it for abstract and interface
methods.
* reflection.c
(build_compressed_metadata): Sort the GenericParam table.
(mono_image_create_token): Added `gboolean create_methodspec'
argument; this is false when generating a MethodImpl token.
(reflection_methodbuilder_to_mono_method): Abstract and interface
methods may also have generic parameters.
svn path=/trunk/mono/; revision=32473
* StrongNameIdentityPermission.cs: Update to use the common template.
Completed TODOs and now pass all unit tests.
* StrongNamePermissionAttribute.cs: Fixed public key convertion (as it
wasn't base64 encoded).
* StrongNamePublicKeyBlob.cs: Made static FromString() more robust.
svn path=/trunk/mcs/; revision=32459
* StrongNameIdentityPermissionTest.cs: New. Unit tests for
StrongNameIdentityPermission.
* StrongNameIdentityPermissionAttributeTest.cs: Added unit test to
check the behavior of using an invalid SecurityAction. Added tests
for CreatePermission. Converted existing tests to NUnit 2.2 format.
svn path=/trunk/mcs/; revision=32457
* mono/os/gc_wrapper.h: Only use thread local alloc if using the included libgc, since the stock one has broken headers.
svn path=/trunk/mono/; revision=32451
* daemon.c (process_new):
* handles.c (_wapi_handle_new_internal): Cope when the space
reserved for file descriptors is larger than the shared segment
size. Fixes the crash reported when running mono under gdb on
macosx.
svn path=/trunk/mono/; revision=32436
* ZoneIdentityPermissionAttributeTest.cs: Added unit tests to check
the behavior of using invliad enums for properties (no checks).
* ZoneIdentityPermissionTest.cs: Added new unit tests for XML decoding.
svn path=/trunk/mcs/; revision=32431
* DataProtectionPermission.cs: New permission for NET_2_0. Use common
permission template.
* DataProtectionPermissionAttribute.cs: New security attribute for
NET_2_0.
* DataProtectionPermissionFlags.cs: New flags for NET_2_0.
* HostProtectionAttribute.cs: New security attribute for NET_2_0.
* HostProtectionPermission.cs: New internal permission for NET_2_0.
Use common permission template.
* KeyContainerPermission.cs: New permission for NET_2_0. Use common
permission template.
* KeyContainerPermissionAccessEntry.cs: New class for NET_2_0.
* KeyContainerPermissionAccessEntryCollection.cs: New for NET_2_0.
* KeyContainerPermissionAccessEntryEnumerator.cs: New for NET_2_0.
* KeyContainerPermissionAttribute.cs: New security attrib for NET_2_0.
* KeyContainerPermissionFlags.cs: New flags for NET_2_0.
svn path=/trunk/mcs/; revision=32427
* EnvironmentPermission.cs: Updated to use the common template.
* FileDialogPermission.cs: Updated to use the common template.
* PublisherIdentityPermission.cs: Updated to use the common template.
* ReflectionPermission.cs: Updated to use the common template.
svn path=/trunk/mcs/; revision=32426
* IBuiltInPermission.cs: Added a new internal enum to store the index
of all corlib's permissions (as the index can changes in newer
versions of the framework, e.g. 2.0).
* SecurityAttribute.cs: Removed the validation when setting the Action
property to match MS implementation.
* UIPermission.cs: Update to use the common template. Completed TODOs
and now pass all unit tests.
svn path=/trunk/mcs/; revision=32425
* CodeAccessPermission.cs: Added common methods to help building all
Permissions classes in corlib. Most are declared static as they can
also help non CodeAccessPermission-derived permissions.
svn path=/trunk/mcs/; revision=32424
* IBuiltInPermissionTest.cs: New. Unit tests to check the result of
the "somewhat undocumented" IBuiltInPermission.GetTokenIndex on all
permissions inside corlib.
* UIPermissionTest.cs: New. Unit tests for UIPermission.
* UIPermissionAttributeTest.cs: Added unit tests to check the behavior
of using invliad enums for properties (no checks).
svn path=/trunk/mcs/; revision=32422
* class.cs:
* typemanager.cs:
-Bug fixed to resolve the ReadOnly properties from base class
-Fixed bug in resolving properties from different assembly
svn path=/trunk/mcs/; revision=32421
* appdomain.c: Bumped MONO_CORLIB_VERSION to 24.
* icall.c
(ves_icall_System_MonoType_getFullName): Added `gboolean full_name'
argument.
* class.c (mono_type_get_full_name): New public function.
(mono_type_get_name): Don't include the type arguments.
svn path=/trunk/mono/; revision=32409
* MonoType.cs (MonoType.getFullName): Added `bool full_name'
argument specifying whether or not to include the type arguments.
(MonoType.FullName): Don't include the type arguments.
(MonoType.ToString): Include them here.
* Environment.cs: Bumped mono_corlib_version to 24.
svn path=/trunk/mcs/; revision=32408
* NameObjectCollectionBase.cs: Fix line endings. It's mostly in
DOS endings, so I left it at that.
(GetEnumerator): Made virtual.
* ConfigurationElement.cs (InitializeDefault): Made virtual.
* AppSettingsSection.cs:
* Configuration.cs:
* ConfigurationLocation.cs:
* ConfigurationLocationCollection.cs:
* ConfigurationSection.cs:
* ConfigurationSectionCollection.cs:
* ConfigurationSectionGroup.cs:
* ConfigurationSectionGroupCollection.cs:
* ConnectionStringsSection.cs: Added stubs and bits of implementation.
Other than ConfigurationElementCollection and
ConnectionStringsSectionCollection, we now have the basic skeleton for
implementing the configuration system in the System.Configuration
namespace.
svn path=/trunk/mcs/; revision=32398
* cs-tokenizer.cs (Tokenizer.TypeOfParsing): New public property.
(Token.GENERIC_DIMENSION): New token; this is returned if we
encounter an unbound generic type in a typeof() expression.
* cs-parser.jay (opt_type_argument_list): Added GENERIC_DIMENSION;
this token is only generated while parsing a typeof() expression.
(typeof_expression): Removed the old unbound_type hack.
* generic.cs (TypeArguments.IsUnbound): New public property.
* decl.cs (MemberName): Added support for unbound types.
svn path=/trunk/mcs/; revision=32392
AM_CONDITIONAL(HAVE_ZLIB, test x$have_zlib = xyes)
# for mono/metadata/debug-symfile.c
AC_CHECK_HEADERS(elf.h)
@@ -256,6 +259,19 @@ else
fi
CFLAGS="$CFLAGS -g $WARN"
# Where's the 'mcs' source tree?
if test -d $srcdir/mcs; then
mcsdir=mcs
else
mcsdir=../mcs
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
AC_SUBST([mcs_topdir])
AC_SUBST([mcs_topdir_from_srcdir])
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
@@ -296,6 +312,27 @@ AC_SUBST(GLIB_LIBS)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
if test x$platform_win32 = xyes; then
AC_MSG_CHECKING(for cygwin glib2-dev package)
if [ cygcheck --f /usr/lib/libglib-2.0.dll.a | grep -q glib2-devel ]; then
AC_MSG_RESULT(found)
AC_MSG_ERROR([Mono cannot be built with the cygwin glib2-devel package installed, because that package doesn't work with -mno-cygwin. Please uninstall it then re-run configure.])
else
AC_MSG_RESULT(not found, ok)
fi
AC_MSG_CHECKING(for broken gwin32.h)
glib_include=`$PKG_CONFIG --cflags-only-I glib-2.0 | sed -e 's/ -I.*//g' | sed -e 's/-I//g'`
if test -f $glib_include/glib/gwin32.h; then
if [ grep ftruncate $glib_include/glib/gwin32.h | grep -q define ]; then
AC_MSG_RESULT(failed)
hashmark='#'
AC_MSG_ERROR([Your version of gwin32.h is broken and will cause compilation errors when building mono. Please fix it by deleting the line: '$hashmark define ftruncate...' from '$glib_include/glib/gwin32.h' then re-run configure.])
* Makefile: Removed inclusion of rules.make from Makefile for two reasons :
- This Makefile as of now has no dependency on rules.make what so ever
- Because of inclusion of INTENAL_MBAS in rules.make it was causing confliction with existing INTERNAL_MBAS in this makefile and causing lots of tests to fail
'Line 20, BC32030: '#ElseIf' cannot follow another '#ElseIf' in a conditional compilation block
ImportsSystem
ModuleConditionalCompilation
SubMain()
Console.WriteLine("Hello World 1")
EndSub
#IfFalse
SubA()
Console.WriteLine("Hello World 2")
EndSub
#ElseIfTrue
SubB()
Console.WriteLine("Hello World 3")
EndSub
#Else
SubC()
Console.WriteLine("Hello World 4")
EndSub
#ElseIfFalse
SubD()
Console.WriteLine("Hello World 5")
EndSub
#End If
EndModule
Loaded 100 of 12380 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.