* ControlCollection.cs: when clearing the control collection, tell the
owners about the removal. Fixes bug #60800.
svn path=/trunk/mcs/; revision=30508
* Page.cs: don't nullify _context after processing the request as there
are events not triggered yet. Fixes bug #60726.
svn path=/trunk/mcs/; revision=30507
(GAC_DIR): New define that doesn't include $(DESTDIR).
(install-data-local,uninstall-local): Use them. Use in-tree mono
runtime, not the installed one.
svn path=/trunk/mono/; revision=30506
* mono-debug.c (mono_debug_add_method): Protect the whole function
in mono_debugger_lock(), not just parts of it.
svn path=/trunk/mono/; revision=30505
* mini.c: reinstated mono_compile_get_interface_var()
on x86, too, since the change breaks the Gtk# build there as well.
svn path=/trunk/mono/; revision=30479
* VBCodeCompiler.cs : (only for windows) First check mono.bat, then
check mono.exe. It enables xsp working with mono windows installer.
svn path=/trunk/mcs/; revision=30473
* CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then
check mcs.exe. It enables xsp working with mono windows installer.
svn path=/trunk/mcs/; revision=30472
* XmlDataInferenceLoader.cs : It was not always filling relation
child table information correctly. This fixes bug #60742.
svn path=/trunk/mcs/; revision=30467
all the fields have been defined reset the order in PEAPI to the
correct order. This is done so sequential layouts actually
work. The order needs to be reset because it can be lost during
the recursive definition phase.
* MethodDef.cs: Use and ExternModule for pinvoke data's module
refs. This way we don't get duplicate module refs.
svn path=/trunk/mcs/; revision=30459
that sequentially laid out fields are laid out in the right
order. When building custom attribute tables actually emit the
custom attribute data. When writing the .sdata section make sure
to pad to its size. The constants itself will not make up the
entire section because it is aligned on 512 byte blocks.
svn path=/trunk/mcs/; revision=30458
* main.c: MS's ildasm writes '// end of class' not '// end of
type'. The python.net tool searches for this string.
svn path=/trunk/mono/; revision=30406
* driver.c: remove loop from the default optimizations: it seems to
interact badly with some of the other options (see bug #60613).
svn path=/trunk/mono/; revision=30383
focus and scale parameters in SetBlendTriangularShape and
SetSigmaBellShape methods.
* PathGradientBrush.cs: Same as above.
svn path=/trunk/mcs/; revision=30377
* Changed comments in ikvm-jni, mono/dis, mono/interpreter,
mono/metadata, mono/monoburg and mono/utils to be C90-style instead
of C99/C++-style
svn path=/trunk/mono/; revision=30337
* DefaultWatcher.cs: fixed subdirectories notifications and don't
fail when any directory is removed. Closes bug #59840.
svn path=/trunk/mcs/; revision=30313
handling of "implicit constant expression conversions". At this
point, we already know that the conversion is possible -- we're
only checking to see which is better.
svn path=/trunk/mcs/; revision=30309
* VBCodeCompiler.cs : On windows we use fixed mono.exe and mbas.exe
located by mscorlib.dll. (The same fix as that of CSharpCodeCompiler)
svn path=/trunk/mcs/; revision=30292
* threads.c (SuspendThread):
* timed-thread.c (_wapi_timed_thread_suspend): Wrap sem_wait in a
while loop. See bug 58161.
svn path=/trunk/mono/; revision=30291
(tmpinst-dir-contents, $(tmpinst)/bin/mono.bat): Remove mono.bat
in W32. Use 'mono' and 'mcs' in W32 too.
(bootstrap) [PLATFORM_WIN32]: Back to single stage bootstrap.
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Don't mention
nunit.*, IBM.Data.DB2, ICSharpCode.SharpZipLib.
Fix for #60443, the GAC .DLL-Hell.
svn path=/trunk/mono/; revision=30287
gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
If read function was called after seek function call, the
implementation was returning data from bytes already peeked and
not from the new position in stream, which we have seeked.
svn path=/trunk/mcs/; revision=30274
other varargs tets. Someday I will get this right, I don't think
today is that day though. This fix basically just makes sure to
trim the sentinel off of signatures. Also eliminated some code
duplication.
* ParamDef.cs: Make IsSentinel work for both cases of generating a
sentinel param def.
svn path=/trunk/mcs/; revision=30233
* PageParser.cs:
* UserControlParser.cs: set the page/user control base type even when no
default directive provided. Fixes bug #60572.
svn path=/trunk/mcs/; revision=30227
* SymmetricTransform.cs: The condition to keep a block is a little
more complex so it was moved as a private property.
svn path=/trunk/mcs/; revision=30223
* appdomain.c: for paths in PrivateBinPath that are absolute, there's
no need to build a new path combining that with the application base.
Fixes bug #60442.
svn path=/trunk/mono/; revision=30217
* PageParser.cs: use default trace settings from web.config and check
if trace is only requested for local connections. Fixes bug #60180.
svn path=/trunk/mcs/; revision=30206
* CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
an encryptor doesn't reduce the number of block on Write while the
second shows that a decryptor does reduce the number of blocks on
Write.
svn path=/trunk/mcs/; revision=30200
* SymmetricTransform.cs: Reduce by one the number of block when
decrypting. This operation was in CryptoStream before but is only
required for decryption (which CryptoStream can't know).
Fix bug #60573.
svn path=/trunk/mcs/; revision=30199
* CryptoStream.cs: Removed the block reduction. This seems to be done
only for Decryptor so it was moved to SymmetricTransform.
svn path=/trunk/mcs/; revision=30198
* mono-debug-debugger.c (mono_debugger_unhandled_exception): Store
the `exc' object in a static object to put it into the GC's root set.
svn path=/trunk/mono/; revision=30193
* TypeBuilder.cs: handle properly the case when SetParent()
is called (requires an updated runtime, too bug#60474).
svn path=/trunk/mcs/; revision=30185
* OdbcConnection.cs: Fix: Moved env allocation to Open method.
Disconnection & freeing handles are done in Close
method to avoid simultaneous connections.
* libodbc.cs : Added constants for odbc version.
svn path=/trunk/mcs/; revision=30161
* Added test to check whether the OdbcConnection.Close method closes
all the handles.
* New files:
OdbcConnectionTest.cs - test suite for OdbcConnection class.
svn path=/trunk/mcs/; revision=30160
* flowanalysis.cs (UsageVector.MergeChild): If we're a loop and we
neither return nor throw, reset the barrier as well. Fixes#60457.
svn path=/trunk/mcs/; revision=30150
* Uri.cs : Such ctor arg string that starts with "//" should be
regarded as a local file path that will be condensed to single "/",
so handle such path differently under Windows and under *nix.
Since '\\' is a valid path character on Unix, so we should not
replace it with '/' in LocalPath.
svn path=/trunk/mcs/; revision=30142
* UriTest.cs : As Unix paths, //foo/bar never means host == foo,
file path == /bar. So on *nix environment, interpret LocalPath of
file://foo/bar as /bar, not //foo/bar.
* test-uri-list.txt, tset-uri-props.txt : We cannot test such path
that starts with "//" in automatic one, since on Windows it is
UNC host name but on Unix it is condensed to /foo style abs path.
* UriTest2.cs : Test only on windows such path that starts with "\\".
svn path=/trunk/mcs/; revision=30141
* appdomain.c: Removed the g_free on the public key token. Now copy
the pk token string into the MonoAssemblyName buffer using g_strlcpy.
* assembly.c: Added public key token string value when loading
assemblies. Fix bug #60439.
* icall.c: Added missing informations (like public key) in
GetReferencedAssemblies. Fix#60519.
* image.h: Changed definition for public key token from const char*
public_tok_value to guchar public_key_token [17];
* reflection.c: Updated for changes to public key token.
svn path=/trunk/mono/; revision=30140
* events.c (CreateEvent): When creating an auto-reset event that
is initially owned, make sure the set count starts at 1.
svn path=/trunk/mono/; revision=30137
All changes need to be reviewed and committed.
I have pulled off Rob's changes on FileSystem.cs temporarily. I will
remerge it another day or two.
svn path=/trunk/mcs/; revision=30131
* DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
schema is inside the document element (as created in XmlWriteMode
.WriteSchema), it should read schema from that non-document element.
This fixes one case reported in bug #60470.
svn path=/trunk/mcs/; revision=30130
* mono-debug.h, mono-debug-debugger.h, debug-mono-symfile.h:
mark headers as not supported, they are installed only for use by the
debugger.
svn path=/trunk/mono/; revision=30119
* MutexTest.cs: No need to ignore these tests now
* ThreadTest.cs: You can't Start() a thread that's been aborted.
Improve state tests.
svn path=/trunk/mcs/; revision=30108
* Consts.cs (UnmanagedType_80): While bootstrapping, refer to new
internal bootstrap-only define in UnmanagedType.
svn path=/trunk/mcs/; revision=30097
* configure: Patch from Mariano Su��rez-Alvarez
<[email protected]> to make configure accept jhbuild style
/prefix /usr options, and to continue past unknown options. Currently
this patch is a bit spammy with multiple unknown options, anyone
who is interested is welcome to fix this.
svn path=/trunk/mcs/; revision=30093
* exception.c (mono_get_exception_security): It's in
"System.Security", not in "System".
* mono-debug-debugger.c (mono_debugger_add_builtin_types): Add all
the exception classes.
svn path=/trunk/mono/; revision=30067
* mini/mini-exceptions.c
(mono_handle_exception): Added `gpointer original_ip' argument.
After calling mono_unhandled_exception(), call
mono_debugger_unhandled_exception() and if that returns true,
restore the context and return.
svn path=/trunk/mono/; revision=30057
* mini-ppc.c: prefer the use of relative branches so
they won't need to be patched in aot code (patch from Patrick Beard).
svn path=/trunk/mono/; revision=30046
* aot.c: patch from Patrick Beard to make the output assembly
more correct for the MacOSX assembler. Small tweak to
generate sane images on Linux/PPC, too.
svn path=/trunk/mono/; revision=30045
* DirectoryInfoTest.cs,
DirectoryTest.cs,
FileStreamTest.cs,
FileSystemInfoTest.cs:
Replace all '/' in path with Path.DirectorySeparatorChar.
svn path=/trunk/mcs/; revision=30037
* reflection.c: Load the assembly in mono_reflection_type_from_name,
if it was not loaded before. Fix parts of #60439.
svn path=/trunk/mono/; revision=30036
* marshal.c, icall.c, object.c, image.c: fix the runtime_invoke ()
code that was broken since Ben's change: wrappers are now
dependent on the method signature only again.
svn path=/trunk/mono/; revision=30032
(all-local): ... here.
* library.make ($(the_lib), $(test_lib), $(btest_lib), all-local):
Likewise.
(LIBRARY_SNK): New default define. Allows library to be signed
with a key other than mono.snk.
($(the_lib_signature_stamp)): New stamp file created when an
assembly is signed.
(install-local, uninstall-local, maybe-sign-lib): Set MONO_PATH.
svn path=/trunk/mcs/; revision=30024
* mono-sha1.c : close opened file in case of successful read. This
saves a bunch of System.Reflection Emit failures under windows.
svn path=/trunk/mono/; revision=30019
a statement. Temporarily disabled object_literal in order to test
the block structure and continue and break statements.
svn path=/trunk/mcs/; revision=30002
need to jump if the expression evaluates to true. Continue class,
replaced ParentIsItrStm with InLoop, emit jump to correct
place. Break class, implemented Resolve; deleted
ParentIsCorrect. DoWhile, While classes, set LoopBegin and
LoopEnd. While class, set LoopBegin and LoopEnd.
svn path=/trunk/mcs/; revision=29999
break and continue in order to jump to the desired place. Added
check for converting to boolean if we encounter an identifier (at need_convert_to_boolean).
svn path=/trunk/mcs/; revision=29998
* XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
inference target. For bug #60470. (MS does not support schema
document inference and results in unconsistent dataset structure.)
svn path=/trunk/mcs/; revision=29977
* DataTableCollection.cs : reset the table's DataSet to null when
removing a table from this collection.
* DataTable.cs : When Namespace is not specified explicitly, its
Namespace property reflects DataSet's Namespace if exist.
This fixes bug #60469.
svn path=/trunk/mcs/; revision=29975
* class.h, class.c: more accessors.
* metadata.h, metadata.c: prepare for hiding MonoType and
MonoMethodSignature: people should use the accessors from now on
outside of the tree.
svn path=/trunk/mono/; revision=29946
list of typerefs that matches the algorithm for creating vararg
signatures from paramdefs. This is used when creating methodref
signatures.
* MethodRef.cs: Use the new CreateVarargSignature method to create
the methods signature if it is a vararg method.
svn path=/trunk/mcs/; revision=29945
* event-private.h:
* events.c: Auto-reset events need to release one thread for each
time SetEvent() is called. Fixes bug 41292.
* threads.h:
* mutex-private.h:
* mutexes.c: Scan for mutexes that are still locked by a thread
when it exits. Fixes the MS demo app linked by bug 41292.
* wait.c (test_and_own): Make sure a handle is signalled before it
is owned.
svn path=/trunk/mono/; revision=29909
* IProcessInitializer.cs: added missing marshalling attributes
* IRegistrationHelper.cs: added missing marshalling attributes
* ImpersonationLevelOption: fixed enum field values to match MS.NET
* InstallationFlags: fixed enum field values to match MS.NET
* PropertyLockMode: fixed enum field values to match MS.NET
* PropertyReleaseMode: fixed enum field values to match MS.NET
* RegistrationHelper: added missing marshalling attributes
* RegistrationHelperTx: added missing marshalling attributes
* SynchronizationOption: fixed enum field values to match MS.NET
* TransactionIsolationLevel: fixed enum field values to match MS.NET
* TransactionVote: fixed enum field values to match MS.NET
svn path=/trunk/mcs/; revision=29895
* Makefile.am: process data before runtime, so the config file is
installed and gacutil has a chance to work (finding symlink).
svn path=/trunk/mono/; revision=29890
* mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
case until bug #59509 is fixed (shows up in #60332).
svn path=/trunk/mono/; revision=29884
that mono_trace_init is called if mono_tracev is our first trace
statement is mono_tracev. Little indentation fix.
svn path=/trunk/mono/; revision=29878
* locales.c: Tell ICU the lengths of strings, it can cope with
embedded \0 then. Fixes bug 59274, and doesn't break bug 55822.
svn path=/trunk/mono/; revision=29875
* XmlDataDocumentTest2.cs : When line ending is LF, CR is preserved.
To reproduce on windows too, set NewLine as LF.
svn path=/trunk/mcs/; revision=29874
Test if files exist in the mcs/ tree before creating symlinks.
Remove symlinks before creating them again.
* runtime/net_1_1/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
* runtime/net_2_0/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
Make real bug more explicit.
svn path=/trunk/mono/; revision=29871
* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
SetItemForDataRecord method for all the classes.
svn path=/trunk/mcs/; revision=29866
* DateTime.cs :
- Added new common pattern "yyyy/M/dZ"
- empty string should not be compared in _ParseEnum()
- Use culture independent string comparison in _ParseString()
- Whitespace removal should be checked after '..' token check (some
pattern such like es-ES LongDatePattern contains spaces in '..').
- formats null check should be done (to throw ArgumentNullException)
in ParseExact().
- When specified one character format, dates are incorrectly regarded
as to use invariant culture.
svn path=/trunk/mcs/; revision=29863
* DateTimeTest.cs : Improved CultureIndependentTests(). Error message
contains specific locale and error location. Verified by run-test-
ondotnet and commented out X509-like pattern.(not all culture passes)
svn path=/trunk/mcs/; revision=29861
bootstrap library, we have to keep this fix even if the in-tree
mcs compiler is fixed.
* UCOMIEnumConnections.cs: Replace '(UnmanagedType) 80' in
attribute field initialization with Consts.UnmanagedType_80.
* UCOMIEnumMoniker.cs: Likewise.
* UCOMIEnumString.cs: Likewise.
* UCOMIStream.cs: Likewise.
* UCOMITypeInfo.cs: Likewise.
* UCOMITypeLib.cs: Likewise.
svn path=/trunk/mcs/; revision=29856
* CONNECTDATA.cs: have layout and charset match MS.NET
* DISPPARAMS.cs: have layout and charset match MS.NET
* ELEMDESC.cs: have layout and charset match MS.NET
* EXCEPINFO.cs: have layout and charset match MS.NET
* IDLDESC.cs: have layout and charset match MS.NET
* PARAMDESC.cs: have layout and charset match MS.NET
* STATSTG.cs: have layout and charset match MS.NET
* TYPEATTR.cs: have layout and charset match MS.NET
* TYPEDESC.cs: have layout and charset match MS.NET
* TYPELIBATTR.cs: have layout and charset match MS.NET
* VARDESC.cs: have layout and charset match MS.NET
svn path=/trunk/mcs/; revision=29848
* SqlConnection.cs - handled null being passed as a connectionstring
- checked for minimal set of parameters in connectionstring.
- handled unrecogonized keywords similar to MS.NET
svn path=/trunk/mcs/; revision=29846
* KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
undocumented structure (now documented, and public, in Fx 2.0).
* X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
internal before that.
svn path=/trunk/mcs/; revision=29817
* statement.cs (EmitCollectionForeach): Account for the fact that
not all valuetypes are in areas which we can take the address of.
For these variables, we store to a temporary variable. Also, make
sure that we dont emit a `callvirt' on a valuetype method.
svn path=/trunk/mcs/; revision=29812
* SqlMoney.cs: Removed old "hack" to correct scale after rounding as
Decimal has been fixed (in fact this code was moved and adapted for
Decimal as it was better than the previous fix).
svn path=/trunk/mcs/; revision=29802
* SafeArrayRankMismatchException.cs: marked serializable to match
MS.NET
* SafeArrayTypeMismatchException.cs: marked serializable to match
MS.NET
svn path=/trunk/mcs/; revision=29801
* Decimal.cs: Fixed regression in System.Data caused by the recent
changes. Adapted (and moved) the code to correct the scale from
SqlMoney.
svn path=/trunk/mcs/; revision=29795
* relaxngtest.cs : Now we can test all cases (though resulting in
failure). Catch unexpected exception and report them as such.
svn path=/trunk/mcs/; revision=29782
- Table stores default values for columns in soecial default values row. It is allocated once (in NewRow)
- DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
- OnRemoveColumn has nothing to perform by now.
svn path=/trunk/mcs/; revision=29765
- Changed access of original, current and proposed indexes to internal.
- ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
- Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
- Use DataContainer.CopyValue and default values row for faster set of default values in row.
- SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness. Care about Null and DBNull values is now in DataContainer.
- Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
- Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
- Fix in CopyState : clone column errors.
- Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
svn path=/trunk/mcs/; revision=29763
- Fix : Add() now delegates to Add(DataColumn).
- autoIncrement list holds DataColumn objects, and not just column names.
svn path=/trunk/mcs/; revision=29760
- AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
- DefaultValue fixes. Default value from now on is also stored in special record in DataTable, so we're able to set default value for the column faster (typed).
svn path=/trunk/mcs/; revision=29759
- Store and retreival of null and DBNull values reviewed.
- Added GetInt64 to support AutoIncrement of DataColumn.
- Added missing CopyValue method to BitDataContainer.
- Added FillValues method to propagate single value to whole container.
svn path=/trunk/mcs/; revision=29753
(bundle_obj): New conditional define.
(BUILT_SOURCES): Remove.
($(bundle_srcs)): Make parallel-make safe.
(libmonoruntime_la_LIBADD): Make unconditional.
(libmetadata_la_LIBADD): Make unconditional. Refer to $(bundle_obj).
(libmetadata_la_SOURCES): Don't refer to $(bundle_srcs).
svn path=/trunk/mono/; revision=29750
with MS.NET, removed TODO
* AcknowledgeTypes.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* CryptographicProviderType.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* EncryptionAlgorithm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* EncryptionRequired.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* GenericAccessRights.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* HashAlgortihm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessagePriority.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessageQueueErrorCode.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* MessageQueueException.cs: marked serializable
* MessageQueuePermissionAccess.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionStatus.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionType.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
* StandardAccessRights.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* TrusteeType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
svn path=/trunk/mcs/; revision=29741
* DirectoryServicesPermissionEntry.cs: fixed serialization
compatibility with MS.NET
* DirectoryServicesPermissionEntryCollection.cs: marked serializable,
added TODO for serialization compatibility
* ReferralChasingOption.cs: changed enum field values to match MS.NET
svn path=/trunk/mcs/; revision=29739
* SignatureDescriptionTest.cs: Added missing [TestFixture] :( and
cases for the previously undocumented .ctor(SecurityElement) - which
is now, backwardly, documented in VS.NET 2005.
svn path=/trunk/mcs/; revision=29730
* DateTime.cs : Incorrect maxvalue comparison in ToUniversalTime().
Fixed ToLocalTime() as well, but it does check range for MinValue.
svn path=/trunk/mcs/; revision=29729
- check method/ctor parameters
- use target attribute for attributes in key for attributes
(if available). This allows us to differentiate between method
and return type attributes for methods
- check field values (for literal fields)
- LoadExtraData was not always called, causing certain signature
mismatches not to be reported
- now also check charset, layout and serializability of
types
* mono-api-info.cs:
- check field values of literal fields
- document parameters of method/ctors
- also output attribute applied to return type of methods
- output charset, layout and flag indicating whether type
is serializable
svn path=/trunk/mcs/; revision=29706
* timed-thread.c: Call the thread cleanup exit routine before taking
the join mutex, because this could deadlock if another thread tries
to join in the meantime. This fixes the hang-at-exit problem seen
on macos.
svn path=/trunk/mono/; revision=29689
gdipFunctions.cs: Modified Function signature for
GdipSaveImageToDelegate_linux() method for saving tiff images
to streams.
image.cs: Modified function call GdipSaveImageToDelegate_linux()
with new signature.
svn path=/trunk/mcs/; revision=29684
* test-uri-list.txt, test-uri-props.txt, test-uri-props-manual.txt :
The autogenerated test contained Unix path case. Moved to manual.
svn path=/trunk/mcs/; revision=29677
* Added Odbc tests using MySql test database
* New files:
ChangeLog
OdbcDataReaderTest.cs - test suite for OdbcDataReader class.
OdbcDataAdapterTest.cs - test suite for OdbcDataAdapter class.
svn path=/trunk/mcs/; revision=29668
* Added standalone NUnit test cases for MySql db related tests.
* Created sub-directory for System.Data.Odbc
* New Files :
MySqlTestBed.cs - Base class for all MySql db based tests.
contains instructions to run these tests.
MySqlTestBed.dll.config - configurable parameters to this test suite.
System.Data.Odbc/OdbcDataReaderTest.cs
System.Data.Odbc/OdbcDataAdapterTest.cs
svn path=/trunk/mcs/; revision=29666
build and populate net_2_0 profile.
(populate-runtime-subdir): Make into subroutine that takes list of
profiles to populate.
(faststrap): Update.
svn path=/trunk/mono/; revision=29661
* Makefile.am (bootstrap): Define to fasterstrap for W32.
(MCS_DIRS, MCS_FILES): Don't refer to Mono.CSharp.Debugger in W32.
(tmpinst-dir): Change sub-make invoke to ...
(tmpinst-dir-contents): ... this. Build 'mono.bat' in W32 instead
of 'mono' and 'mcs'.
($(tmpinst)/bin/mono.bat): New.
svn path=/trunk/mono/; revision=29659
* ecore.cs (MethodGroupExpr.Name): Revert Martin's patch.
The name needs to have the actual name of the method in order
for other tests (such as the one in OverloadResolve for Invoke
on a delegate) to work. As well, it does not really help
error reporting because the method group had multiple methods.
svn path=/trunk/mcs/; revision=29656
* UriTest2.cs : LocalPath values should vary depending on the running
environment - so replace '/' and '\\' each other.
svn path=/trunk/mcs/; revision=29655
* FloatingPointFormatter.cs: Fixed ToString which doesn't use banker's
rounding (which is the rounding provided by Math.Round). This fix bug
#60111. The code (new Round methods) should be moved elsewhere (as it
may also be required elsewhere) post Mono 1.0.
svn path=/trunk/mcs/; revision=29653
* System.Web.Compilation/BaseCompiler.cs: try getting the Type from
the cache before doing the real work. Remove temporary files right after
successful compilation.
* System.Web.Compilation/CachingCompiler.cs: added GetTypeFromCache.
* System.Web.Compilation/UserControlCompiler.cs: nothing interesting.
* System.Web.Compilation/WebServiceCompiler.cs: try getting the Type
from the cache before doing anything else. Remove temp files on
sucessful compilation.
* System.Web.UI/SimpleWebHandlerParser.cs: implemented
GetCompiledTypeFromCache. When we read the default directive, check the
cache for the Type and if present, don't keep reading and store the
type found.
* System.Web.UI/WebHandlerParser.cs:
* System.Web.UI/WebServiceParser.cs: try GetCompiledTypeFromCache
before actually compiling.
svn path=/trunk/mcs/; revision=29652
assemblies. gacutil will always make locales lowercase when
installing so this effectively makes them case insensitive.
svn path=/trunk/mono/; revision=29647
appened one. The reason for this is that the runtime expects it,
and existing makefiles user -gacdir $(destdir)/$(libdir) so auto
appending it without checking would break many things.
svn path=/trunk/mcs/; revision=29644
* ConvertTest.cs: Changed compare between Decimals (from a string
compare to Decimal.Equals) because the issue wasn't related to the
Convert class. See #60227 for more details.
svn path=/trunk/mcs/; revision=29632
* CaseInsensitiveHashCodeProvider.cs: added TODO for serialization
* SortedList.cs: added TODO for serialization
* Stack.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29626
* Decimal.cs: Fixed scale after Round (a different scale is correct
from a math point of view but affect the string representation of the
value). Note: other operations also have scale problems!
* DecimalFormatter.cs: Fixed FormatGeneral to match Fx 1.1 output.
svn path=/trunk/mcs/; revision=29625
* GregorianCalendar.cs:: added TODO for serialization
* HebrewCalendar.cs: added TODO for serialization
* HijriCalendar.cs: added TODO for serialization
* JapaneseCalendar.cs: added TODO for serialization
* JulianCalendar.cs: added TODO for serialization
* KoreanCalendar.cs: added TODO for serialization
* TaiwanCalendar.cs: added TODO for serialization
* ThaiBuddhistCalendar.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29624
* StringBuilder.cs: added TODO for serialization
* UnicodeEncoding.cs: added TODO for serialization
* UTF7Encoding.cs: added TODO for serialization
* UTF8Encoding.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29621
* DecimalTest.cs: Added test to ensure we keep/output the decimals
precision (#59425). Added tests to see how many decimals are supported
in "G" before switching to "E".
svn path=/trunk/mcs/; revision=29610
* monitor.c: New method mono_monitor_try_enter_internal, which takes a new
parameter which allows to choose whether the wait can be interrupted or
not. Also added the method mono_monitor_enter(), which locks the monitor
using an infinite wait and without allowing interruption.
In the Monitor.Enter and Wait icalls, retry the lock if the wait is
interrupted.
* object.h: Added new fields in MonoThread. suspend_event holds the event
used to susped/resume the thread. synch_lock is the lock object to use for
modifying the thread state.
* threads.c: Use the new synch_lock object for locking, instead of "this",
which can generate deadlocks.
Moved thread state change in Thread.Sleep and Thread.Join from managed
to unmanaged code. This avoids a deadlock when the thread was suspended
just after acquiring the thread lock.
In general, use mono_monitor_enter instead of mono_monitor_try_enter.
Implemented Thread.Suspend using an event instead of ThreadSuspend,
which is not fully implemented in the io-layer.
* socket-io.c: Only try IPv6 DNS lookup if IPv4 fails.
svn path=/trunk/mono/; revision=29609
Removed state changes in Sleep and Join. The state change is now done
in the icall. For accessing to internal fields lock with synch_lock
instead of this, which can be a source of deadlocks.
svn path=/trunk/mcs/; revision=29605
gdipFunctions.cs: Added delegate and StreamHelper functions, Close
and Size, required by TIFFCodec. Modifed Function signature for
GdipLoadImageFromDelegate_linux() method.
image.cs: Modified function call GdipLoadImageFromDelegate_linux()
with new signature.
svn path=/trunk/mcs/; revision=29587
used. So we can easily add stuff to modules and assemblies. Fix
the nometadata flag, it should be set when there is NO metadata
not when there is metadata.
svn path=/trunk/mcs/; revision=29562
* ExternTable.cs: Add ExternModule refs.
* ExternTypeRef.cs: Take an ExternRef which can be either an
assmebly ref or a module ref.
svn path=/trunk/mcs/; revision=29559
* NameObjectCollectionBase.cs: Now use IComparer to compare keys. This
completes a TODO and fix Remove in NameValueCollection.
svn path=/trunk/mcs/; revision=29550
* ResourceReaderTest.cs: Un-ignored an old test case (probably fixed a
long time ago). Converted tests to NUnit 2.x format to be more
specific when checking exceptions.
svn path=/trunk/mcs/; revision=29530
* TimeSpan.cs: Fixed timespan with large values for hours or minutes
(overflow is only checked for days but can also occurs in hours and
minutes which uses Int32 when multiplying). The new results match MS
implementation.
svn path=/trunk/mcs/; revision=29520
* TimeSpanTest.cs: Added more cases with MinValue and MaxValue for
each parameter of the constructor. Some tests are ignored because
they are too long to run (but useful when debugging).
svn path=/trunk/mcs/; revision=29517
* configure.in: better explain that --with-nptl is not related to
NPTL, but to __thread support. Set sigaltstack support to off by
default.
svn path=/trunk/mono/; revision=29509
* file-io.c (ves_icall_System_IO_MonoIO_FindFirstFile): It was
possible to return successfully when '.' or '..' were the only
entries in a directory, but were skipped. The MonoIOStat was not
filled in in that case. Now return ERROR_NO_MORE_FILES instead.
Fixes bug 59574.
svn path=/trunk/mono/; revision=29496
differ from $(response).
(post_process): Remove, now that PLATFORM_CHANGE_SEPARATOR_CMD is
unconditional.
($(cmp_response),$(res_response)): Update.
svn path=/trunk/mcs/; revision=29491
(PLATFORM_TWEAK_CORLIB_SOURCES): Remove.
(platform-check): Avoid bash-ism.
* library.make: Simplify uses of $(patsubst x,y,$(foo)) to $(foo:x=y).
(core_sourcefile): Rename back to ...
(sourcefile): ... this. Remove creation of redundant intermediate file.
(response): Change test for optimization, now that
PLATFORM_CHANGE_SEPARATOR_CMD is unconditional. Combine with
platform-exclude handling.
(library_CLEAN_FILES): New variable to specify clean:-able files
close to where they're defined.
(test_response, btest_response): Simplify.
* executable.make (response): Change test for optimization.
(executable_CLEAN_FILES): New define.
Maintainability improvements. Sorry, I'm still in the scratch-an-itch
mode with the build stuff :-)
svn path=/trunk/mcs/; revision=29490
* XmlUrlResolverTests.cs : Unlike MS.NET, we treats Unix absolute file
URI file:///usr/local/src as correct file path. MS.NET is not aware
of such format and parses as "host = usr, path = /local/src".
svn path=/trunk/mcs/; revision=29489
* FloatingPointFormatter.cs : Recognize '%' and '\u2030' and replace
them with matching NumberFormatInfo properties.
svn path=/trunk/mcs/; revision=29487
* Double.cs : Use IFormatProvider.GetFormat() instead of literal '-'.
* FloatingPointFormatter.cs :
Use NumberFormatInfo.NegativeSign. This change saves many XSLT test
failures.
Format Permille pattern (It is undocumented but actually available,
and used in xsl:format-number).
svn path=/trunk/mcs/; revision=29483
* FloatingPointFormatter.cs :
- Don't format more than 15 fraction digits. Don't report to Pedro
directly (removing the error message with his concent).
- When format string starts with '.', it means integral part format
is not specified. Ignore '.' characters after the first
appearance. Fixed bug #59890.
- 0.0 is formatted only before the third ';' appearance.
svn path=/trunk/mcs/; revision=29464
* driver.c: don't include abcrem in the all optimization specifier
since it slows down jit compilation too much for now.
svn path=/trunk/mono/; revision=29447
* class.cs (MemberBase.DoDefineBase): New protected method.
(MemberBase.DoDefine): Compute the `flags' in the new
DoDefineBase() which must be called first.
(Method.Define): Call DoDefineBase() first so we have the flags
when defining the generic method.
* cs-parser.jay (interface_method_declaration): Support generic methods.
svn path=/trunk/mcs/; revision=29431
* decl.cs (TypeName): Removed.
(MemberName): Removed TypeName and MemberNow; now we just have
MemberName.
* cs-parser.jay: Don't distinguish between type arguments and type
parameters in the grammar and simplified the rules a bit. The
reduce/reduce conflicts are now gone (except the one we inherited
from mcs).
svn path=/trunk/mcs/; revision=29430
* XmlTextReader.cs : Character range check is always done. It is only
character references for which check is not done when Normalization
is false.
A bit more kind error message for multiple document element error.
* XmlTextWriter.cs : Check if character is valid and entitize when
it was invalid.
svn path=/trunk/mcs/; revision=29426
* mini.c: use BIGMUL only if both operands have the same signage.
* iltests.il: Test for bug 60056. (errors related to signage in
BIGMUL).
r=lupus.
svn path=/trunk/mono/; revision=29410
* reflection.c, reflection.h: do not free custom attrs that are cached.
* icall.c: use braces to make code clearer.
svn path=/trunk/mono/; revision=29406
* expression.cs (Invocation.IsParamsMethodApplicable): We need to
call this twice: for params and varargs methods.
svn path=/trunk/mcs/; revision=29355
* Uri.cs :
- We don't have to mind '\\'.
- Fixed bug #58301. When path starts with "///" and not more than
"////" and not "///*:", handle it as unix path and set Host as
empty string. In absolute path case, port should not be parsed
and LocalPath should start with '/'.
- Handle fragment in prior to path.
svn path=/trunk/mcs/; revision=29352
* TimeSpanTest.cs: Added valid cases to parse MinValue and MaxValue.
Added invalid cases to parse under MinValue and over MaxValue.
svn path=/trunk/mcs/; revision=29345
* DateTime.cs: Added a AddRoundedMilliseconds which use the "old Mono"
rounding logic which worked for FromOADate (while the newer didn't).
svn path=/trunk/mcs/; revision=29341
overriden. Useful if the tests sourcefile is generated.
(TEST_COMPILE, BTEST_COMPILE): Allow these to be customized too.
Support enough features to build mscorlib.dll.
* library.make (core_sourcefile): New renamed from $(sourcefile).
(PLATFORM_excludes): Auto-detecting define that sees if
$(LIBRARY).$(PLATFORM)-excludes file exists.
(sourcefile): New. Possibly-built file that removes
PLATFORM_excluded files from core_sourcefile.
(test_against, test_dep): New. Allow the test assembly to be
built against a different library.
(test_lib): Allow makefile to override the name of the test
assembly.
(LIBRARY_INSTALL_DIR): If defined, switch to using $(INSTALL_LIB)
rather than $(gacutil).
(DISTFILES, dist-local): Use core_sourcefile.
(clean-local): Remove sourcefile if it was generated.
(test_lib, btest_lib): Depend on $(test_dep).
svn path=/trunk/mcs/; revision=29338
(populate-runtime-subdir): New target. Does a
controlled "make install" in the 'mcs/' directory to populate the
'runtime' directory.
(fasterstrap): Use it.
svn path=/trunk/mono/; revision=29335
* library.make (core_sourcefile): New renamed from $(sourcefile).
(PLATFORM_excludes): Auto-detecting define that sees if
$(LIBRARY).$(PLATFORM)-excludes file exists.
(sourcefile): New. Possibly-built file that removes
PLATFORM_excluded files from core_sourcefile.
(test_against, test_dep): New. Allow the test assembly to be
built against a different library.
(test_lib): Allow makefile to override the name of the test
assembly.
(LIBRARY_INSTALL_DIR): If defined, switch to using $(INSTALL_LIB)
rather than $(gacutil).
(DISTFILES, dist-local): Use core_sourcefile.
(clean-local): Remove sourcefile if it was generated.
(test_lib, btest_lib): Depend on $(test_dep).
svn path=/trunk/mcs/; revision=29323
* Uri.cs : Handle Windows UNC. Now we could simplify Parse(). Don't
escape windows path twice. Check scheme name as defined in RFC2396.
svn path=/trunk/mcs/; revision=29314
* ecore.cs (ResolveFlags): Add new 'Intermediate' flag to tell
that the call to Resolve is part of a MemberAccess.
(Expression.Resolve): Use it for SimpleName resolution.
(SimpleName.SimpleNameResolve, SimpleName.DoResolveAllowStatic):
Add 'intermediate' boolean argument.
(SimpleName.DoSimpleNameResolve): Likewise. Use it to disable an
error message when the SimpleName can be resolved ambiguously
between an expression and a type.
* expression.cs (MemberAccess.IdenticalNameAndTypeName): Make
public.
(MemberAccess.Resolve): Pass 'Intermediate' flag to the Resolve()
call on the left-side.
svn path=/trunk/mcs/; revision=29310
* Uri.cs : Reverted some changes. '#' should be handled when the input
string is NOT raw file path. So handle raw file paths differently.
(right now except for Windows UNC).
Cache LocalPath and don't compute every time.
svn path=/trunk/mcs/; revision=29297
* test-uri-list.txt,
test-uri-props.txt,
test-uri-props-manual.txt :
Reverted the last change. File URI handling should be common to
MS.NET. We have to change the behavior only for Unix file path.
* UriTest2.cs : Fixed just catch only UriFormatException.
svn path=/trunk/mcs/; revision=29296
* 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
svn path=/trunk/mcs/; revision=29295
* metadata.c (mono_metadata_parse_method_signature): When parsing
a MethodDef which has VarArgs, also set sentinelpos if we don't
have any parameters.
svn path=/trunk/mono/; revision=29287
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs:
* ISessionHandler.cs: added new parameter to Init.
* SessionInProcHandler.cs: use the HttpRuntime cache to store the
sessions and handle expiration.
* SessionStateModule.cs: added OnSessionRemoved internal method that is
called whenever a session expires or is removed.
svn path=/trunk/mcs/; revision=29284
* verify.c (mono_method_verify): In CEE_CALL, use
mono_method_get_signature() to get the method's signature, unless
we're a PInvoke method.
svn path=/trunk/mono/; revision=29281
* get.c (get_methodref_signature): If we're a varargs method,
print "..." for the sentinel followed by the actual types.
svn path=/trunk/mono/; revision=29279
* expression.cs (Invocation.EmitCall): Don't use
`method.CallingConvention == CallingConventions.VarArgs' since the
method could also have `CallingConventions.HasThis'.
svn path=/trunk/mcs/; revision=29276
* XsdValidatingReader.cs : Identity check didn't work fine when
reference node appeared in front of the target key node.
This fixes bug #59889.
svn path=/trunk/mcs/; revision=29263
* BaseCompiler.cs: dynamicBase is now protected. Check
MONO_ASPNET_NODELETE here.
* TemplateControlCompiler.cs: if the type is not known but has a
TypeConverter, invoke ConvertFromString in the generated code.
* WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
* CachingCompiler.cs: updated compilation of web services and simple
web handlers.
svn path=/trunk/mcs/; revision=29255
* HttpUtility.cs: check for control characters in the string to encode
or decode and return the same string if there are none.
svn path=/trunk/mcs/; revision=29254
* DecimalTest.cs: Added rounding tests for negative values. Added more
checks to ParseFractions. Removed test TooSmall because it was a bad
interaction between a buggy corlib (buggy decimal) and the tests (i.e.
the value was legal).
svn path=/trunk/mcs/; revision=29251
* Decimal.cs: Hacked the Parse method to allow the runtime C code to
decode it properly (i.e. matching MS results). Fixed the Round method
for negative decimal numbers (moved code from Math.cs).
* Math.cs: Now use Decimal class for Round(Decimal,int). Required to
fix a bug when rounding a negative decimal.
svn path=/trunk/mcs/; revision=29250
* System.Web/HttpApplication.cs: change/restore the IPrincipal in their
own methods and make them internal.
* System.Web.Security/DefaultAuthenticationModule.cs: set the IPrincipal
for this thread once we have a user. Fixes bug #59683.
svn path=/trunk/mcs/; revision=29248
* Thread.cs:
(CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
the thread IPrincipal if we get it from the AppDomain.
svn path=/trunk/mcs/; revision=29247
* AppDomain.cs: set the _principal to null when changing the policy.
* Console.cs: remove ClsCompliant attribute from a method marked as
internal and added comment.
svn path=/trunk/mcs/; revision=29246
message.
* Report.cs: Print error messages properly. Add an extra \n after
the assemble file message.
* ilasm.exe.sources: Add new exception, remove old one.
svn path=/trunk/mcs/; revision=29240
* typemanager.cs : GetPertinentStandardModules receives the array now with params modifier to help usage
* ecore.cs : correcting lookup of semi-qualified standard modules members - A little better but not there yet
svn path=/trunk/mcs/; revision=29239
* test-uri-list.txt,
test-uri-props.txt,
test-uri-props-manual.txt :
- Moved '#' containing file URIs to manual test patterns (I think MS
disregards '#', as conceptually reported in bug #47691).
- Removed URIs that contains "/////" that is ambiguous (is /////cygwin
directory '/cygwin', or host 'cygwin' ?).
* UriTest2.cs : explicitly show what input string is being checked
in Assert(). And also surround try...catch and show which URI failed.
svn path=/trunk/mcs/; revision=29211
from ctor
* regex.cs: fixed public API signature by renaming protected
internal fields and adding destructor, added MonoTODO attribute to
fields and method that are not yet implemented, changed not
implemented methods to throw NotImplementedException instead of
Exception, fixed names of field that are serialized
svn path=/trunk/mcs/; revision=29210
* reflection.c: make the token for a created method match
the token of the MethodBuilder it was created from
(IKVM requires this behaviour now).
svn path=/trunk/mono/; revision=29208
API of MS.NET, marked DynamicInvokeImpl and GetMethodImpl
protected to fix public API
* Enum.cs: marked ctor protected to match public API of MS.NET
* MulticastDelegate.cs: marked DynamicInvokeImpl protected to
match public API of MS.NET
svn path=/trunk/mcs/; revision=29199
generated class. Generate the correct data type for input parameters.
* SoapProtocolImporter.cs: Like in MS.NET, take the first output parameter
as the return value of the method. When generating a header variable,
use the type name as the base for the variable name, not the part name.
svn path=/trunk/mcs/; revision=29176
DiscoveryException and rethrow the included Exception instead.
* DiscoveryReference.cs: Added BaseUri property, that returns an uri
for the reference, supporting file uris.
* ContractReference.cs: Use the new property BaseUri to build the import
uri.
svn path=/trunk/mcs/; revision=29174
attributes that MS.NET generates.
* SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
same reader/writer.
* XmlCodeExporter.cs: Added support for ignore flag in maps and members.
* XmlReflectionImporter.cs: Changed GetReflectionMembers to match
MS.NET member ordering. Patch by David Taylor.
* XmlSchemaImporter.cs: When generating a choice member, set the ignore
flag. The generated enum must also not be included in the schema.
* XmlTypeMapMember.cs: Added ignore flag.
* XmlTypeMapping.cs: The AttributeMembers property now returns the
attributes in the correct order.
svn path=/trunk/mcs/; revision=29172
Don't copy from prefix. Use $(LN_S) to point to the mcs/ tree.
* runtime/net_1_1/Makefile.am (mscorlib.dll,$(gac_assemblies)):
Use $(LN_S) to point to the mcs/ tree, rather than copying.
* runtime/net_2_0/Makefile.am (mscorlib.dll,$(gac_assemblies)): Likewise.
svn path=/trunk/mono/; revision=29171
* Makefile.am (mcs-do-basic-build): Pass 'USE_BOOT_COMPILE' to sub-makes.
($(tmpinst)/etc/mono/machine.config): New target.
(tmpinst-dir.stamp): Remove and rewrite into ...
($(tmpinst)/bin/mcs): ... this and ...
($(tmpinst)/bin/mono): ... this. Update to use the in-tree machine.config.
(tmpinst-dir): Rewrite to invoke above $(tmpinst)/... targets directly.
* configure.in (AC_PROG_LN_S): New check to define $(LN_S).
svn path=/trunk/mono/; revision=29168
* DateTimeTest.cs : Added more milliseconds and pattern recognition
tests. Patch by Steven Brown (a bit modified).
svn path=/trunk/mcs/; revision=29165
* Decimal.cs: Fixed banker rounding by calling Math.Round. This won't
be a performance winner (the actual Math code has a note to wait a
better Decimal implementation) but it returns the correct results
(without adding new code in corlib or the runtime). Fix#37744.
svn path=/trunk/mcs/; revision=29153
* Uri.cs :
- Now Parse() is properly implemented. If overriden, the overriding
Parse() is used _instead of_ this class's parsing logic.
- AbsoluteUri does not escape URI string at all.
- ToString() should unescape Query. But should not unescape fragment.
And all all parts should be unescaped individually to keep ? and #.
- In relative .ctor(), handle Windows UNC as an absolute file URI.
- In some cases, hosts and paths were not properly escaped in
relative .ctor().
- Removed unused isWindowsPath.
- Escape Query.
* UriBuilder.cs : Fragment and Query aren't escaped when they are set.
svn path=/trunk/mcs/; revision=29144
* DateTime.cs :
- A bunch of fixes (patch by Steven Brown). Fraction seconds are
now represented as double. Strict token check for 'Z'.
- Pattern validity check in GetDateTimeFormats(char).
- Fixed pattern "yyyy/M/d HH:mm:ss".
svn path=/trunk/mcs/; revision=29143
* codegen.cs: Check that all referenced assemblies have a strongname
before strongnaming the compiled assembly. If not report error CS1577.
Fix bug #56563. Patch by Jackson Harper.
* typemanager.cs: Added a method to return all referenced assemblies.
Fix bug #56563. Patch by Jackson Harper.
svn path=/trunk/mcs/; revision=29141
* FieldBuilderTest.cs: Added tests for FieldBuilder (mostly
checking error conditions for now)
* EnumBuilderTest.cs: Added tests for EnumBuilder
* MethodBuilderTest.cs: Added tests for invalid parameter
indexes for created types, added test for GetHashCode
svn path=/trunk/mcs/; revision=29133
meaning throw InvalidOperationException for methods that
should not be allowed to execute when type has been
created, and throw NotSupportedException for methods and
properties that should not be called on FieldBuilder
svn path=/trunk/mcs/; revision=29132
* Makefile: Don't sign this assembly as it is fully signed during
compilation (we have the original private key). Thanks to Jackson.
svn path=/trunk/mcs/; revision=29131
appropriate Exceptions here instead.
* FileStream.cs (SetLength): Revert part of my last patch, we're
throwing ObjectDisposedException instead of IOException again.
svn path=/trunk/mcs/; revision=29123
IDictionaryEnumerator from a Hashtable, use a normal IEnumerator
from the newly added ArrayList in SerializationInfo.
* SerializationInfo.cs: Added an extra ArrayList so that we can
keep the SerializationEntrys added in the order.
(SerializationInfo, AddValue): Throw ArgumentNullException
correctly.
svn path=/trunk/mcs/; revision=29118
* HttpContext: User property returns its own "user" value because
the context can walk through different Threads. When "User" property
is changed, change "Thread.CurrentPrincipal" too.
svn path=/trunk/mcs/; revision=29113
* StrongNameManager.cs: Fix ToString() when no verificationSettings
are present (used in sn -Vl).
* sn.cs: Fixed to match documentation.
svn path=/trunk/mcs/; revision=29111
* sn.1: Updated documentation to match the tool and to include more
informations about the configuration kept in machine.config.
svn path=/trunk/mono/; revision=29110
* Driver.cs: handle single quotes in the pattern. We used to fail for,
at least, es and pt cultures with full patterns like
"EEEE d' de 'MMMM' de 'yyyy".
svn path=/trunk/mono/; revision=29098
set scope in InitStore method, removed need for extra protected
member (public API fix)
* IsolatedStorageFile.cs: use InitStore to initialize scope
svn path=/trunk/mcs/; revision=29080
runtime. This way the codebase is set properly. The codebase is
using g_filename_to_uri which expects a full path.
svn path=/trunk/mcs/; revision=29079
and load the assembly using the code base so we get the right
one. Print out the name of the non strong named assembly if one is
referenced.
svn path=/trunk/mcs/; revision=29078
* StrongName.cs: Added corlib specific code to load configuration
from machine.config to allow public key token remapping to work
with (for example) gacutil.
* StrongNameManager.cs: Now load configuration from machine.config.
svn path=/trunk/mcs/; revision=29073
* AssemblyInfo.cs: Updated version number for post beta 2.
* StrongNameManager.cs: Changed XML format to be compatible with
machine.config. Made token uppercase.
* sn.cs: Now load the token remapping configuration from
machine.config. Fixed some errors in help.
svn path=/trunk/mcs/; revision=29057
commands. Allow options to come before commands. Add the /silent
option so we can shut the tool up. And use returns instead of
Environment.Exit where appropriate.
svn path=/trunk/mcs/; revision=29054
* DateTime.cs :
- Now re-checked all common format patterns. They should be tried
with both current culture and invariant culture. Since '/' covers
'-', removed extraneous patterns. Added more common patterns
such as "yyyy-MM-dd" and X509Certificate pattern (it is valid
only after NET_1_1). Commented out 1 character format patterns.
- The format patterns we should try should not be obtained by
GetAllDateTimePatterns(). Just use 'd', 'D', 't', 'T', ... (one
character patterns), to handle UTC correctly. Examined patterns
are changed, to 1) common patterns with specified (or current)
culture, 2) common patterns with invariant, 3) The above "one
character patterns" with specified (or current) culture.
- When trying to parse some kind of patterns such as RFC1123,
always use invariant DateTimeFormatInfo so that they can avoid
parsing with culture-dependent calendar.
- Check "GMT" only when doing Parse(). Don't it when ParseExact().
- Removed extraneous '-' case. It is not special one.
- When ParseExact(), allow only '/' for '/' pattern character.
- When Parse(), allow any non-letter & non-number characters.
- When pattern is not fully parsed, reject that format.
- Added "exact" parameter to some ParseExact().
- RFC1123 pattern is (again) now parsed in local time. I regressed
some problems in previous fix.
svn path=/trunk/mcs/; revision=29051
* Driver.cs : To make "extra pattern only" xxxFormatLength possible,
fill values only when the exact element was available.
svn path=/trunk/mono/; revision=29048
* DateTimeTest.cs :
- Added TestParse3() (not-allowed pattern example), ParseUtcNonUtc()
("GMT" strings and time adjustment), TimeZoneAdjustment() ('Z'
pattern conditions) and CultureIndependentTests() (batch tests for
_all_ or almost all cultures).
- Added more Z string to X509Certificate test.
- Added ParseAllowsQueerString() [not fixed].
svn path=/trunk/mcs/; revision=29045
* locales.c
(ves_icall_System_Globalization_CompareInfo_internal_index):
(ves_icall_System_Globalization_CompareInfo_internal_index_char):
Double-check the resuls of usearches, because ICU currently
ignores most of the collator settings here. Fixes bug 59720.
svn path=/trunk/mono/; revision=29036
* locales.c
(ves_icall_System_Globalization_CompareInfo_internal_index_char):
Fix memory leak and segfault-causing typo. No idea how this one
lasted so long without being noticed.
svn path=/trunk/mono/; revision=29031
* System.Web.dll.sources: removed CSCompiler.cs
* System.Web.Compilation/CSCompiler.cs: removed.
* System.Web.Compilation/CachingCompiler.cs: language independent
compilation for single files.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.UI/TemplateParser.cs: pass the language when compiling from
a file.
svn path=/trunk/mcs/; revision=29017
* assembly.c:
(mono_assembly_load): search_loaded -> mono_assembly_loaded (we didn't
own the critical section before). Removed dead code (that's done
in the preload hook).
(mono_assembly_load_with_partial_name): call the preload hook.
svn path=/trunk/mono/; revision=29014
* SimpleWebHandlerParser.cs: if we have a global.asax, move its
reference to the end to help mcs loading the assemblies. Fixes bug
#58768.
* TemplateParser.cs: same as above. Removed some kludges to workaround
loading assemblies from bin path that are now in the runtime. Don't
load the assemblies in bin if not needed, but still reference them
when compiling.
svn path=/trunk/mcs/; revision=29010
* ILGenerator.cs (TokenGenerator.GetToken): Added overloaded
version which takes a MethodInfo and a Type[].
(IlGenerator.EmitCall): When emitting a call to a varargs method,
use the new GetToken() to pass the optional argument types to the
runtime.
* ModuleBuilder.cs (ModuleBuilder.getMethodToken): New interncall.
svn path=/trunk/mcs/; revision=29000
* icall.c (ves_icall_ModuleBuilder_getMethodToken): New icall.
* metadata.c (mono_metadata_parse_method_signature): When parsing
a MethodDef which has VarArgs, set sentinelpos.
* metadata.h (MonoMethodSignature): Make `sentinalpos' a signed
`gint16' since we're using -1 for non-varargs methods.
* reflection.c
(ReflectionMethodBuilder): Added `MonoArray *opt_types'.
(method_encode_signature): Added varargs support.
(method_builder_encode_signature): Likewise.
(mono_image_get_varargs_method_token): New static method.
(mono_image_create_method_token): New public method; this is
called via an icall instead of mono_image_create_token() when
calling a varargs method.
svn path=/trunk/mono/; revision=28999
* ExceptionTest.cs: Added [Test] attributes to the test methods.
(InnerExceptionSource): Test that the InnerException's Source is
null unless it's been set.
svn path=/trunk/mcs/; revision=28997
* DateTime.cs: Fixed constructor to limit range of milliseconds from
0,999. Fixed ToType method to work for object, string and DateTime.
svn path=/trunk/mcs/; revision=28995
over ObjectDisposedException, which is not one of the exceptions
listed in the documentation). Also, instead of throwing an
ObjectDisposedException, throw an IOException.
* FileStreamTest.cs (SetLengthWithClosedBaseStream): New test for
checking that the correct exception is thrown when the base stream
is closed.
svn path=/trunk/mcs/; revision=28993
Added support for varargs methods.
* cs-tokenizer.cs (Token.ARGLIST): New token for the `__arglist'
keyword.
* cs-parser.jay: Added support for `__arglist'.
* decl.cs (MemberCache.AddMethods): Don't ignore varargs methods.
* expression.cs (Argument.AType): Added `ArgList'.
(Invocation): Added support for varargs methods.
(ArglistAccess): New public class.
(Arglist): New public class.
* parameter.cs (Parameter.Modifier): Added `ARGLIST'.
* statement.cs (Block.Flags): Added `HasVarargs'. We set this on
a method's top-level block if the method has varargs.
* support.cs (ReflectionParameters, InternalParameters): Added
support for varargs methods.
svn path=/trunk/mcs/; revision=28983
* UTF8Encoding.cs : Length check must be done only when the character
sequence is valid (i.e. should not check when it is overlongs).
See also TestThrowOnInvalid().
svn path=/trunk/mcs/; revision=28980
* DateTime.cs: Fixed OLE Automation date conversions: timezone
insensitive, wrong exception in FromOADate, handling of Min/Max
values, negative doubles where integer part is negative but
decimals are positive! Charming format ;-)
svn path=/trunk/mcs/; revision=28973
* DateTimeFormatEntry.cs : Added "all datetime patterns" support.
* Driver.cs : Added "all datetime patterns" support and fixed some
XPathNavigator use to strictly navigate to "pattern" element.
svn path=/trunk/mono/; revision=28969
* System.Web.dll.sources: removing ServerVariablesCollection. It does
not compile.
* System.Web/HttpRequest.cs: reverting patch from Alon Gazit. Uses the
above file that doesn't compile.
svn path=/trunk/mcs/; revision=28965
* class.cs: Added a AddEventHandler function and a EventHandler readonly property. Also modified define of constructor to accommodate Handles clause.
If one initialize a event handler as
Sub Handler() Handles x.Event
The handler will be initialized by the constructor of the corresponding class by calling AddHandler.
svn path=/trunk/mcs/; revision=28953
* icall.c (ves_icall_Type_GetEvents_internal): Handle the case when
the event has no add and remove methods. Fixes#59629.
svn path=/trunk/mono/; revision=28949
* class.cs: Provide location in indexer error report.
* driver.cs: Use standard names.
* namespace.cs: Catch the use of using after a namespace has been
declared also on using aliases.
svn path=/trunk/mcs/; revision=28944
* String.cs: Fixed Join in case separator parameter is null.
* TimeSpan.cs: Cache format errors during parsing and throw
FormatException only if there was no overflow.
svn path=/trunk/mcs/; revision=28939
* TimeSpanTest.cs: Added test to verify exception order when a parsed
string is both invalid (format) and contains an overflow.
svn path=/trunk/mcs/; revision=28938
* System.Web/HttpBrowserCapabilities.cs: implemented ClrVersion and
GetClrVersions.
* System.Web.Configuration/HttpCapabilitiesBase.cs: set the useragent
of the new HttpBrowserCapabilities object.
* System.Web/HttpException.cs: removed MonoTODO.
svn path=/trunk/mcs/; revision=28936
* XmlDataDocument.cs :
- It was not handling SimpleContent. This fixes bug #56951.
- It was not converting values into DataType of the DataColumn.
svn path=/trunk/mcs/; revision=28931
* ChunkStream.cs: added ChunkLeft property.
* WebConnection.cs:
(EndRead): when using small byte arrays to read from a chunked stream,
ensure we've read the chunk size and try to fulfill the request
completely. fixes bug 59653.
svn path=/trunk/mcs/; revision=28915
Added test cases for exercising \b as a word boundary operator
and as a character class in a regex. Refer bug #58256 for more
information.
svn path=/trunk/mcs/; revision=28913
debugging bug #58256. The original problem reported was about
inconsistency between the way we treat replacement patterns and the
way microsoft treats the replacement patterns in Regex.Replace(). MS
implementation is buggy and doesn't honour escape sequences in the
replacement patterns, even though the SDK claims otherwise.
svn path=/trunk/mcs/; revision=28912
* DecimalTest.cs: Added tests for default ToString(). Added tests when
Decimal is casted to an integer (trunc not rounded). Added tests to
parse very small values (#59301).
svn path=/trunk/mcs/; revision=28906
* DTDObjectModel.cs,
XmlDocument.cs : Close stream always.
* XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
* XmlTextReader.cs : Namespace has was not done. Some tests depends on
this failure and to be fixed.
svn path=/trunk/mcs/; revision=28900
* DTMXPathDocumentBuilder.cs : Close XmlTextReader strictly. It might
raise an error after opening stream and before try-catch.
svn path=/trunk/mcs/; revision=28898
* XsdValidatingReader.cs : Close XmlTextReader more strictly. Exception
might be thrown in ctor() *after* stream open and before try-catch.
svn path=/trunk/mcs/; revision=28897
* X509CertificateCollection.cs: Fixed Contains which works by value
(i.e. not by object reference). Fixed Remove for null and unexisting
elements.
svn path=/trunk/mcs/; revision=28896
* HybridDictionary.cs: Fixed Contains for null argument.
* NameValueCollection.cs: Fixed Set to remove existing values. Fixed
Add(NVC) to throw same exception as MS implementation.
svn path=/trunk/mcs/; revision=28891
* HybridDictionaryTest.cs: Added cases with an empty diectionary.
* NameValueCollectionTest.cs: Added tests to add and replace (set)
existing values in collection. Added tests for CopyTo.
svn path=/trunk/mcs/; revision=28890
* Convert.cs: Fixed the convertion of negative integers (byte, short,
int and long) into string in a specific base (2, 8, 10 or 16).
svn path=/trunk/mcs/; revision=28887
* Driver.cs : Percent patterns are not properly parsed since they are
in fact not separated by '.'
* Entry.cs : Escape '\' to "\\" (for Japanese yen-sign fix).
svn path=/trunk/mono/; revision=28879
* Page.cs: IsPostBack also returns true when method is GET and we have
viewstate information in the query string. Fixes bug #58151.
svn path=/trunk/mcs/; revision=28876
* System.Web/TraceContext.cs: don't check if HttpRuntime.TraceManager
is enabled when writing.
* System.Web.Compilation/PageCompiler.cs: fixed Trace and add support
for Buffer.
* System.Web.UI/Page.cs: removed obsolete TODO. Only check if Trace is
enabled, not HttpRutime.TraceManager.
* System.Web.UI/PageParser.cs: for 'trace' we have 2 variables now.
Added support for 'buffer' attribute.
Fixes bug #58481.
svn path=/trunk/mcs/; revision=28873
* fr_CH.xml : missing updates.
* Renamed cs.xml as cs_CZ.xml and added number format.
Also renamed lt.xml as lt_LT.xml. They are files' precedence matter.
* es_NI.xml : added.
* en.xml, en_CA.xml, en_IE.xml, en_PH.xml, en_US.xml, en_ZW.xml :
Change with related to the change of NumberDecimalDigits handling.
* es_PR.xml, ja.xml, ko_KR.xml :
Added number format.
svn path=/trunk/mono/; revision=28871
* Driver.cs :
- NumberDecimalDigits are almost differently specified by locale
xml files. Almost all of them have ".###", but we need ".##" in
almost all the locale. So let's *assume* that the number of
digit is always +1 extraneous by this Driver itself.
This change accompanies with some existing supp/*.xml changes.
- For decimal patterns and currency patterns, when numeric patterns
does not have ';'-separated patterns, it ignored the whole pattern
string. Fixed it by just copying the same patterns.
- When parsing percent patterns, '%' characters were in the way.
- When the decimal part of the percent pattern ends with ".##0",
the value of PercentDecimalDigits is 2.
- Assume PercentDecimalDigits as 2 by default.
svn path=/trunk/mono/; revision=28870
* ConvertTest.cs: Added tests to convert min/max values of integer
types to strings in all bases.
* SByteTest.cs: Added test to parse min/max values.
svn path=/trunk/mcs/; revision=28869
* Binder.cs: don't crash when we have a 'null' argument Type array.
Allow it for non-value types. Fixed for both, methods and properties.
Closes bug #58846.
svn path=/trunk/mcs/; revision=28859
* Math.cs: Fixed IEEERemainder to return -0 (0x8000000000000000) when
the dividend is negative and the result is 0 (remainder).
svn path=/trunk/mcs/; revision=28845
* MathTest.cs: Added case to check for negative 0 (double) in
IEEERemainder.
* TimeSpanTest.cs: Added more asserts in existing tests cases.
Added case to check for ToString with MinValue and MaxValue.
svn path=/trunk/mcs/; revision=28840
interested in public interfaces that are implemented by a given
type. Include protected internal fields and ctors.
svn path=/trunk/mcs/; revision=28821
* ConstraintCollection.cs: to fix public API, use
DataTable.fInitInProgress to check whether initialization
of DataTable is in progress
* DataColumn.cs: added stubs for missing methods
* DataRowBuilder.cs: marked Table property internal to
fix public API
* DataSet.cs: removed extra empty destructor, marked
OnMergeFailed internal to fix public API
* DataTable.cs: use fInitInProgress field to hold init
status, to match MS.NET
* DataView.cs: added missing attributes on IsOpen
svn path=/trunk/mcs/; revision=28816
* mono-api-diff.cs: fixes event diff when we're missing attributes. Now
the class status properly shows the attributes under the event.
* mono-api-info.cs: include protected internal methods.
svn path=/trunk/mcs/; revision=28805
* BufferedStreamTest.cs: Modified two tests (using newer helper
classes) to be more specific and avoid regressions of bugs like
#59534.
* StreamHelperTest.cs: New. Helper classes that provides read-only,
write-only or non-seekable stream.
svn path=/trunk/mcs/; revision=28804
* BuiltInDatatype.cs,
XmlSchemaFacet.cs,
XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaXPath.cs : modified some enum const to static readonly
(.NET 1.0 does not allow it). Use safe overload of LookupNamespace().
svn path=/trunk/mcs/; revision=28790
* XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
They require that names are *already* atomized.
* XmlNodeReader.cs,
XmlTextWriter.cs : use safe overload of LookupXXX().
svn path=/trunk/mcs/; revision=28789
* Compiler.cs,
GenericOutputter.cs : XmlNamespaceManager.LookupPrefix() allows only
atomized names. Fixed XPathNavigatorNsm.LookupNamespace() that
should override another overload.
svn path=/trunk/mcs/; revision=28788
* generic.cs (ConstructedType.GetMemberAccess): Renamed to
GetSimpleName() and return a SimpleName.
* ecore.cs (SimpleName.Arguments): New public field.
(SimpleName): Added overloaded ctor which takes an additional
TypeArguments argument.
(SimpleName.SimpleNameResolve): Added support for generic methods.
(MethodGroupExpr.ResolveGeneric): New public method. The code was
formerly in MemberAccess.DoResolve(), but we also need it in
SimpleNameResolve().
* expression.cs (MemberAccess.DoResolve): Use the new
MethodGroupExpr.ResolveGeneric().
svn path=/trunk/mcs/; revision=28783
* DataSet.cs : complex table content child was not properly added
when it is the only one child in the parent table. Fixed bug #53959.
svn path=/trunk/mcs/; revision=28782
* TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
of CodeObjectCreateExpression for the render method delegate. Thanks
to Jochen Wezel.
svn path=/trunk/mcs/; revision=28775
* DirectoryEntry.cs: added protected override for Dispose, marked
properties TODO
* DirectoryServicesPermissionEntryCollection.cs: added stubs for
missing protected methods
* PropertyCollection.cs: flagged field private to fix public API
* PropertyValueCollection.cs: removed empty extra methods, added
stub for missing methods to fix public API
* SearchResult.cs: removed unused local variable
* SearchResultCollection.cs: flagged field private to fix public
API, added missing property Dispose method and finalizer
svn path=/trunk/mcs/; revision=28771
to fix API compatibility with MS.NET
* XmlSerializationWriter.cs: added missing protected members
to fix API compatibility with MS.NET
svn path=/trunk/mcs/; revision=28770
* typemanager.cs (closure_private_ok, closure_invocation_type)
(closure_qualifier_type, closure_invocation_assembly)
(FilterWithClosure): Move to ...
(Closure): New internal nested class.
(Closure.CheckValidFamilyAccess): Split out from Closure.Filter.
(MemberLookup, RealMemberLookup): Add new almost_match parameter.
* ecore.cs (almostMatchedMembers): New variable to help report CS1540.
(MemberLookup, MemberLookupFailed): Use it.
* expression.cs (New.DoResolve): Treat the lookup for the
constructor as being qualified by the 'new'ed type.
(Indexers.GetIndexersForTypeOrInterface): Update.
svn path=/trunk/mcs/; revision=28761
* mono-api-info.cs: if we have a TODOAttribute, get the Comment property
value and store it in attribute 'comment'.
* mono-api-diff.cs: if we have a 'comment' keep it in the output file.
* mono-api.xsl: if we have a 'comment' set it as the title attribute
of the monoTODO gif image.
Now we can see the MonoTODO comments when browsing the class status
pages.
svn path=/trunk/mcs/; revision=28747
* attribute.cs
(GetConditionalAttributeValue): New method. Returns
condition of ConditionalAttribute.
(SearchMulti): New method. Returns all attributes of type 't'.
Use it when attribute is AllowMultiple = true.
(IsConditionalMethodExcluded): New method.
* class.cs
(Method.IsExcluded): Implemented. Returns true if method has conditional
attribute and the conditions is not defined (method is excluded).
(IMethodData): Extended interface for ConditionalAttribute support.
(PropertyMethod.IsExcluded): Implemented.
* decl.cs
(MemberCore.Flags): Excluded_Undetected, Excluded new caching flags.
* expression.cs
(Invocation.IsMethodExcluded): Checks the ConditionalAttribute
on the method.
svn path=/trunk/mcs/; revision=28745
* ObjectStateFormatter.cs : csc build fix. Protected Read()/Write()
(of other objects) are called in TypeConverterFormatter.
svn path=/trunk/mcs/; revision=28735
* AccessControlEntry.cs: removed extra finalizer
* AccessControlList.cs: removed extra finalizer
* ActiveXMessageFormatter.cs: removed extra finalizer
* BinaryMessageFormatter.cs: public API fixes
* DefaultPropertiesToSend.cs: public API fixes
* IMessageFormatter.cs: public API fixes
* Message.cs: public API fixes
* MessageEnumerator.cs: public API fixes
* MessagePropertyFilter.cs: public API fixes
* MessageQueue.cs: public API fixes
* MessageQueueAccessControlEntry.cs: public API fixes
* MessageQueueEnumerator.cs: public API fixes
* MessageQueueException.cs: public API fixes
* MessageQueueInstaller.cs: public API fixes
* MessageQueuePermission.cs: public API fixes
* MessageQueuePermissionAttribute.cs: public API fixes
* MessageQueuePermissionEntry.cs: public API fixes
* MessageQueuePermissionEntryCollection.cs: public API
fixes
* MessagingDescriptionAttribute.cs: public API fixes
* PeekCompletedEventArgs.cs: public API fixes
* ReceiveCompletedEventArgs.cs: public API fixes
* Trustee.cs: removed extra finalizer
* XmlMessageFormatter.cs: public API fixes
svn path=/trunk/mcs/; revision=28733
* mono-api-info.cs: fixed issue where counters were not output
for missing attributes if there were no other mismatches
svn path=/trunk/mcs/; revision=28727
* Makefile, executable.make, library.make, rules.make :
Added new target "run-test-ondotnet" that works what "run-test"
used to be on windows (i.e. tests our libs under MS.NET).
svn path=/trunk/mcs/; revision=28725
* TimeSpan.cs: Fixed overflow issues when delaing with big (days) time
spans. Fixed parsing when only days are presents in the string (which
should be illegal according to the documentation but is supported).
svn path=/trunk/mcs/; revision=28724
* ObjectStateFormatter.cs: before choosing the binary formatter, check
if the object type has a TypeConverter that can convert to/from string.
Fixes bug #59495.
* Page.cs: call GetViewStateString from outside the WriteLine. This
allows writing to the Response when getting the string without breaking
the HTML generated.
svn path=/trunk/mcs/; revision=28721
proxies are checked against the ones generated by MS.NET.
* services.xml: Updated service list.
* wstest.cs: new command checkdiff: generates a xml file using nunit format
with all differences between mono generated proxies and MS.NET ones.
* client/localhost/ConvRpcTest.cs: Fixed url.
svn path=/trunk/mcs/; revision=28719
* expression.cs (ArrayCreationExpression): Make this just an
`expression'. It can't be a statement, so the code here was
dead.
svn path=/trunk/mcs/; revision=28718
the 2001 one when reading the xsi type.
* MapCodeGenerator.cs: Take into account that the root namespace and element
name may have changed from one export to another of the same type. In
this case the class attributes need to be regenerated.
* SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
not ElementName. Idem for namespace.
* XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
* XmlRootAttribute.cs: Default value for nullable is true.
* XmlSchemaImporter.cs: The root name for a class may change in some
scenarios (for example, when the type is initially exported as part of
another type and later exported as a root type).
* XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
found using the standard namespace, try getting the type using
the 2000/10 and 1999 namespaces.
* XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method.
svn path=/trunk/mcs/; revision=28711
* WebConfigurationSettings.cs: when the virtual path is not /, don't
loop forever trying to read configuration from /. Fixes bug #59480.
svn path=/trunk/mcs/; revision=28710
* Binder.cs: default score must be lower than fail_score or we'll get
an ambiguous match when no indexers given and one single match is found.
svn path=/trunk/mcs/; revision=28698
MS behavior. Always use import input parameters as System.String.
* ProtocolImporter.cs: Remove _x0020_ from type names.
* SoapProtocolImporter.cs: Fixed case of generated methods to match
MS behavior.
svn path=/trunk/mcs/; revision=28694
Fixed#56452
* class.cs (MemberBase.GetSignatureForError): New virtual method.
Use this method when MethodBuilder is null.
(MethodData.DefineMethodBuilder): Encapsulated code to the new method.
Added test for error CS0626 (MONO reports error for this situation).
(IMethodData.GetSignatureForError): Extended interface.
svn path=/trunk/mcs/; revision=28688
* mono-debug.h (MONO_DEBUGGER_VERSION): Bumped version to 41.
* debug-mono-symfile.h: Bumped symbol file version number to 37.
svn path=/trunk/mono/; revision=28679
* Binder.cs: removed ^Ms. In case of several properties matching, try
to disambiguate based on the indexer types provider and the conversions
from those into the ones of the property.
svn path=/trunk/mcs/; revision=28670
* all: move stuff around so that it builds properly.
build system cant handle building two exes from one directory.
svn path=/trunk/mcs/; revision=28667
* attribute.cs
(AttributeTester.GetObsoleteAttribute): Returns instance of
ObsoleteAttribute when type is obsolete.
* class.cs
(TypeContainer.VerifyObsoleteAttribute): Override.
(Method.GetSignatureForError): New method for usage when MethodBuilder is null.
(MethodCode.VerifyObsoleteAttribute): Override.
(MemberBase.VerifyObsoleteAttribute): Override.
* decl.cs
(MemberCore.CheckUsageOfObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
*delegate.cs
Delegate.VerifyObsoleteAttribute): Override.
* ecore.cs
(Expression.CheckObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
(FieldExpr.DoResolve): Added tests for ObsoleteAttribute.
* enum.cs
(Enum.GetObsoleteAttribute): Returns ObsoleteAttribute for both enum type
and enum member.
* expression.cs
(Probe.DoResolve, Cast.DoResolve, LocalVariableReference.DoResolve,
New.DoResolve, SizeOf.DoResolve, TypeOf.DoResolce, MemberAccess.DoResolve):
Added test for ObsoleteAttribute.
* statement.cs
(Catch): Derived from Statement.
svn path=/trunk/mcs/; revision=28651
* platforms/win32.make : TEST_RUNTIME should be always mono we can't
test our libs against MS.NET runtime. Think about internal call).
svn path=/trunk/mcs/; revision=28628
* SortedListTest.cs: Added new test when initial capacity is set to 0
(so it never returns to default, 16, when Capacity is set to 0) unless
Clear is called. Cleaned up unused SetUp/TearDown.
svn path=/trunk/mcs/; revision=28622
* Import.cs: removed extra XmlIgnore attribute on ServiceDescription
* Message.cs: removed extra XmlIgnore attribute on ServiceDescription
* MessageBinding.cs: removed extra DefaultValue attribute from Name,
removed extra XmlIgnoreAttribute from OperationBinding
* MessagePart.cs: removed extra XmlIgnore attribute on Message
* MimeContentBinding.cs: removed extra DefaultValue attribute on Part
* Operation.cs: removed extra XmlIgnore attribute on PortType
* OperationBinding.cs: removed extra XmlIgnore attribute on Binding
* OperationMessage.cs: removed extra XmlIgnore attribute on Operation
* Port.cs: removed extra XmlIgnore attribute on Service
* PortType.cs: removed extra XmlIgnore on ServiceDescription
* Service.cs: removed extra XmlIgnore on ServiceDescription
* ServiceDescriptionFormatExtension.cs: removed extra XmlIgnore
attribute on Parent
* SoapHeaderBinding.cs: added XmlElement attribute on Fault
* HttpSimpleProtocolImporter.cs: removed unused variable
* ServiceDescriptionImporter.cs: removed unused variable
* SoapProtocolImporter.cs: removed unused variable
svn path=/trunk/mcs/; revision=28615
* syntax.cs: re-applied my patch from 2004-05-27 plus a fix which is
emitting a Category.All if both a category and its negated value are
present.
svn path=/trunk/mcs/; revision=28609
* ArrayTest.cs: Fixed array used for some tests. Strangely the tests
didn't fail on MS runtime ?!?! but they should have!
svn path=/trunk/mcs/; revision=28606
* Array.cs: Fixed legal case where value is null.
* Byte.cs: Fixed ToString when format is an empty string (use "G").
svn path=/trunk/mcs/; revision=28603
* Guid.cs: Renamed private fields (and changed some to signed) to
match MS implementation and allow serialization to work. Fix
bug #59113.
svn path=/trunk/mcs/; revision=28602
* ArrayListTest.cs: Added new test for null in BinarySearch.
* HashtableTest.cs: Added null checking fro GetObjectData.
svn path=/trunk/mcs/; revision=28600
* FileTest.cs: Added tests to confirm that Exists never throws
exceptions even for invalid filenames or for unexisting directories.
* PathTest.cs: Added windows-specific tests that shows that
ChangeExtension validate the input patch but doesn't validate the
resulting path.
svn path=/trunk/mcs/; revision=28599
* ArrayTest.cs: Added tests for null values in BinarySearch.
* Byte.cs: Added test for default ToString format value.
svn path=/trunk/mcs/; revision=28598
* HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
when SetFilePath is called. This way the cached values are reset and
get the right value in case someone (namely SessionStateModule +
cookieless session) changes the FilePath after the property cached its
value. Fixes bug #59364.
svn path=/trunk/mcs/; revision=28586
* DataSet.cs : When a row has no parent row but the table has parent
relation(s), that row had been always ignored.
svn path=/trunk/mcs/; revision=28572
* XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
rejected same-named tables in different hierarchy. Thanks to Boris.
svn path=/trunk/mcs/; revision=28565
* Reverted patch to namespace.cs (Use lookuptypedirect). This
caused a regression: #59343. Referencing nested classes from an
assembly stopped working.
svn path=/trunk/mcs/; revision=28560
* SignedXml.cs : partial fix for bug #59165 that does not output
namespace that conflicts with element's namespace.
svn path=/trunk/mcs/; revision=28551
* DataTableTest.cs : Added test for serialization.
* DataSetInferXmlSchemaTest.cs : Added test for schema element skip.
svn path=/trunk/mcs/; revision=28549
* Misc.cs : made Util class internal.
* RelaxngDatatypeProvider.cs : looks commit was missing.
* RelaxngException.cs : made one .ctor() internal that accepts
RdpPattern.
* RelaxngNameClas.cs : Names list should not be settable.
* RelaxngPattern.cs : RelaxngRefPattern class is internal use only.
* RelaxngPatternType.cs : there is not "Include" pattern.
svn path=/trunk/mcs/; revision=28546
* OptionDetails.cs : ShortForm member now a string to favor some simplifications, fixes for Bug 58672
* OptionList.cs : Fixes for Bug 58672 and better handling for mixed-form options (linux/windows)
svn path=/trunk/mcs/; revision=28543
* Financial.cs:
Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare)
svn path=/trunk/mcs/; revision=28530
* decl.cs: If possible, use lookuptypedirect here. We can only do
this if there is no `.' after the namespace. Avoids using
LookupType, which does lots of slow processing.
(FindNestedType) New method, does what it says :-).
* namespace.cs: use LookupTypeDirect.
* rootcontext.cs: use membercache, if possible.
* typemanager.cs (LookupTypeDirect): Cache negative hits too.
svn path=/trunk/mcs/; revision=28523
* expression.cs:
According to the spec,
In a member access of the form E.I, if E is a single identifier,
and if the meaning of E as a simple-name (�7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
the meaning of E as a type-name (�3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
a type name.
This trivial check gives us 5-7% on bootstrap time.
2004-05-30 Ben Maurer <[email protected]>
* expression.cs (Invocation.OverloadResolve): Avoid the
use of hashtables and boxing here by allocating on demand.
svn path=/trunk/mcs/; revision=28522
* rootcontext.cs (RootContext.LookupType): Don't cache things if
we're doing a silent lookup. Don't try to lookup nested types in
TypeManager.object_type (thanks to Ben Maurer).
2004-05-30 Martin Baulig <[email protected]>
Committing a patch from Ben Maurer.
* rootcontext.cs (RootContext.LookupType): Cache negative results.
svn path=/trunk/mcs/; revision=28521
* attribute.cs
(AttributeTester.GetObsoleteAttribute): Returns instance of
ObsoleteAttribute when type is obsolete.
* class.cs
(TypeContainer.VerifyObsoleteAttribute): Override.
(Method.GetSignatureForError): New method for usage when MethodBuilder is null.
(MethodCode.VerifyObsoleteAttribute): Override.
svn path=/trunk/mcs/; revision=28512
* attribute.cs
(AttributeTester.GetObsoleteAttribute): Returns instance of
ObsoleteAttribute when type is obsolete.
* class.cs
(TypeContainer.VerifyObsoleteAttribute): Override.
(Method.GetSignatureForError): New method for usage when MethodBuilder is null.
(MethodCode.VerifyObsoleteAttribute): Override.
(MemberBase.VerifyObsoleteAttribute): Override.
* decl.cs
(MemberCore.CheckUsageOfObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
*delegate.cs
(Delegate.VerifyObsoleteAttribute): Override.
* ecore.cs
(Expression.CheckObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
(FieldExpr.DoResolve): Added tests for ObsoleteAttribute.
* enum.cs
(Enum.GetObsoleteAttribute): Returns ObsoleteAttribute for both enum type
and enum member.
* expression.cs
(Probe.DoResolve, Cast.DoResolve, LocalVariableReference.DoResolve,
New.DoResolve, SizeOf.DoResolve, TypeOf.DoResolce, MemberAccess.DoResolve):
Added test for ObsoleteAttribute.
* statement.cs
(Catch): Derived from Statement.
svn path=/trunk/mcs/; revision=28511
* attribute.cs
(GetConditionalAttributeValue): New method. Returns
condition of ConditionalAttribute.
(SearchMulti): New method. Returns all attributes of type 't'.
Use it when attribute is AllowMultiple = true.
* class.cs
(Method.IsExcluded): Implemented. Returns true if method has conditional
attribute and the conditions is not defined (method is excluded).
(IMethodData): Extended interface for ConditionalAttribute support.
(PropertyMethod.IsExcluded): Implemented.
svn path=/trunk/mcs/; revision=28510
* SetWin32ContextInIDispatchAttribute.cs: only build
for NET_2_0 profile
* VariantWrapper.cs: only build for NET_2_0 profile
svn path=/trunk/mcs/; revision=28506
* expression.cs:
According to the spec,
In a member access of the form E.I, if E is a single identifier,
and if the meaning of E as a simple-name (�7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
the meaning of E as a type-name (�3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
a type name.
This trivial check gives us 5-7% on bootstrap time.
svn path=/trunk/mcs/; revision=28505
* RncParser.jay :
Now RncParser.Parse() returns RelaxngPattern, not RelaxngGrammar.
Fixed many "confusing RelaxngPattern and RelaxngPatternList"
problems, and ditto for other "List" stuff.
To avoid complex situations, mostly removed unused annotation stuff.
svn path=/trunk/mcs/; revision=28502
* FileStream.cs: Lots of new tests for exception handling (negatives,
disposed) and test reading a byte ast the end of the stream.
svn path=/trunk/mcs/; revision=28496
* BufferedStreamTest.cs: Added tests for Position after SetLength,
SetLength after Close and Seek logic exception handling.
* FileStream.cs: Added test for invalid SeekOrigin in Seek.
* MemoryStream.cs: Added test for Seek after Close.
svn path=/trunk/mcs/; revision=28491
* BufferedStream.cs: Fixed Seek logic (check for CanSeek and dispose).
SetLength must also reset Position and check for dispose.
* FileStream.cs: Added missing check for invalid SeekOrigin.
svn path=/trunk/mcs/; revision=28490
* expression.cs (Invocation.OverloadResolve): Avoid the
use of hashtables and boxing here by allocating on demand.
svn path=/trunk/mcs/; revision=28482
* rootcontext.cs (RootContext.LookupType): Don't cache things if
we're doing a silent lookup. Don't try to lookup nested types in
TypeManager.object_type (thanks to Ben Maurer).
svn path=/trunk/mcs/; revision=28481
* BinaryReader.cs: Added missing disposed check for most methods.
Reordered some exceptions to match MS implementation.
svn path=/trunk/mcs/; revision=28480
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=28477
* StackFrameTest.cs: Mark the failures that have been failing
for months due to bug 45730 as ignored as it doesn't look like
it will be fixed soon.
My aim with these commits is that eventually people will run the test cases,
and see what errors they have caused, rather than tens of pages of stacktraces.
svn path=/trunk/mcs/; revision=28472
* DecimalTest.cs: Moved the rounding test that fails due to
bug 37744 (bankers rounding) into its own test, and annotated it as ignored
until the bug is fixed.
svn path=/trunk/mcs/; revision=28471
* Console.cs: Remove *again* the version of WriteLine with four
arguments; That should *not* be added.
Flag it as internal as people migrate their code.
svn path=/trunk/mcs/; revision=28469
* class.cs (IMethodData.ShouldIgnore): New method.
* typemanager.cs (TypeManager.MethodFlags): Don't take a
`Location' argument, we don't need it anywhere. Use
`IMethodData.ShouldIgnore ()' instead of
`MethodData.GetMethodFlags ()'.
(TypeManager.AddMethod): Removed.
(TypeManager.AddMethod2): Renamed to AddMethod.
svn path=/trunk/mcs/; revision=28458
Committing a patch from Benjamin Jemlich <[email protected]>.
* convert.cs (Convert.ImplicitReferenceConversion): If we're
converting from a class type S to an interface type and we already
have an object on the stack, don't box it again. Fixes#52578.
svn path=/trunk/mcs/; revision=28456
* Convert.cs: Fixed ToSByte(string,IFormatProvider) to throw
ArgumentNullException (only case, all other returns 0). Fixed exception
reporting for hex prefix only strings.
svn path=/trunk/mcs/; revision=28450
* ConvertTest.cs: Added new parsing tests including special case for
Convert.ToSByte.
* Int64Test.cs: Added new test cases for overflows.
svn path=/trunk/mcs/; revision=28444
removed TODO
* System.Messaging/MessageQueueErrorCode.cs: fixed typo
* System.Messaging/MessageQueueAccessRights.cs: removed extra
enum field
svn path=/trunk/mcs/; revision=28438
* Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski
([email protected]) for the patch.
svn path=/trunk/mcs/; revision=28437
* expression.cs (MemberAccess.ResolveMemberAccess): If we're an
EventExpr, set `ee.InstanceExpression = left'. Fixes#59188.
* ecore.cs (EventExpr.instance_expr): Make the field private.
svn path=/trunk/mcs/; revision=28431
* Zip/Compression/DeflaterHuffman.cs (FlushBlock): Add some
parenthesis to help the generics compiler read this source.
svn path=/trunk/mcs/; revision=28419
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Set the full version number (major, minor, build, revision).
svn path=/trunk/mono/; revision=28407
of the issues I found with the pnet Coding Developers (Dining
Philosophers) sample app. We now at least draw on screen :-)
svn path=/trunk/mcs/; revision=28390
* Convert.cs: Fixed integer parsing for special cases (0x, 0X for base
16), non-base 10 negative numbers ... see new unit tests.
svn path=/trunk/mcs/; revision=28389
* Statement.cs: changed parent_is_itr_stm method to ParentIsItrStm
property. Added initial pieces for Break's Resolve. Fixed bug that
did not let Emit the code for case clauses that came after the
default clause (we match the jsc behavior).
svn path=/trunk/mcs/; revision=28376
* marshal.c (emit_struct_conv): increment src/dst after blit
(mono_marshal_get_managed_wrapper,
mono_marshal_get_native_wrapper): make sure we have marshalling
info before marshalling params (info computation affects
blittable)
* class.c (class_compute_field_layout): correctly deal with
blittable
(mono_class_layout_fields): Don't do gc_aware_layout for AUTO
value types (as per what windows dows by default)
(mono_class_setup_mono_type): System.ValueType is blittable
(mono_ptr_class_get, mono_fnptr_class_get): Pointer classes are
blittable
* marshal.c (mono_marshal_load_type_info): flag types as
non-blittable if the native layout doesn't match the managed
layout
svn path=/trunk/mono/; revision=28375
* appdomain.c: don't add stuff in the private search path that is
above the application base. If application base is not set, there's
no private search path.
svn path=/trunk/mono/; revision=28374
* mini.c (mono_jit_runtime_invoke): Init class in this
method instead of trusting mono_jit_compile_method to
do the work (because wrappers can be in object class)
svn path=/trunk/mono/; revision=28359
* marshal.c (mono_marshal_get_runtime_invoke): correctly
cache methods using signature (special case for methods
that are value type or string class)
* image.c (mono_image_close): clean up allocated GSList's
in runtime_invoke_cache.
svn path=/trunk/mono/; revision=28358
* mono-config.c: set the correct path for mono_cfg_dir on windows when
there's no MONO_CFG_DIR environment variable defined.
svn path=/trunk/mono/; revision=28357
is interrumped.
* threads.c: In mono_thread_manage, call OpenThread to ref each handle
before waiting for it, and call CloseHandle after the wait to unref it.
This will make sure that handles are not disposed too early.
svn path=/trunk/mono/; revision=28343
* DateTime.cs :
- In ToString(), Don't use culture-dependent daynames to format
Universal/RFC1123 date/time. Also, use FullDateTimePattern for 'U'.
- Fixed GetDateTimeFormats () that generated incorrect 'U' value
(since the format string is the same as 'F').
svn path=/trunk/mcs/; revision=28339
rectangles.
* Graphics.cs: Implemented Dispose method and changed Draw/Fill
rectangles implementation (This is basically done to avoid lots
of brush and pen setup happening in libgdiplus.)
svn path=/trunk/mcs/; revision=28336
* System.Data.OracleClient/OracleCommandBuilder.cs:
Fixed namespace.
* System.Data.OracleClient.dll.sources:
Added OracleCommandBuilder.cs.
2004-05-26 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Merged in a fix send by Rogerio Pereira Araujo
<[email protected]>: Fixed a bug with NUMBER data type
when no parameter is passed to OracleCommand.
svn path=/trunk/mcs/; revision=28333
* DateTime.cs : don't adjust utc value in ToString(). It must output
the same time value, just adding 'Z' for UTC.
svn path=/trunk/mcs/; revision=28332
* appdomain.c:
* appdomain.h:
* icall.c: removed
ves_icall_System_AppDomainSetup_InitAppDomainSetup as it's not
needed now.
* object.c: se the application_base only for the domain that
runs Main. Fixes bug #59216,
svn path=/trunk/mono/; revision=28325
* appdomain.c:
* object.c: only the domain in which Main is run have
SetupInformation.ConfigurationFile set, so moved a few lines from
appdomain.c to object.c.
svn path=/trunk/mono/; revision=28324
* appdomain.c: we tried to load [name].(dll|exe), but according
to bug #57710, we must also try [culture]/[name].(dll|exe) and
[culture]/[name]/[name](dll|exe). This patch fixes the bug.
There's a test case attached to bug #58922.
svn path=/trunk/mono/; revision=28323
* Byte.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt16.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt32.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt64.cs: Fixed parsing for "-0" which is valid for unsigned types.
svn path=/trunk/mcs/; revision=28320
* X509Certificate.cs: Rethrow original exception when parsing X.509
certificates (inside a CryptographicException) so people can see if
their changes affects certificate decoding.
svn path=/trunk/mcs/; revision=28319
* DigestClient.cs: cache the sessions based on address and
credentials, not only address. Added poor men's expiration to
the session cache. Fixes bug #59202.
svn path=/trunk/mcs/; revision=28316
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage): The
test was broken, just make sure that codepage contains utf-8
string.
svn path=/trunk/mono/; revision=28306
* SortedList.cs: Added missing ICloneable support to internal
enumerator. Added Capacity to the synchronized version of SortedList.
svn path=/trunk/mcs/; revision=28303
* QueueTest.cs: Test for synchronized clones.
* SortedListTest.cs: Added cases for synchronized capacity and testing
the interface from the internal enumerator.
svn path=/trunk/mcs/; revision=28302
* DateTime.cs :
- Added "yyyy/MM/dd HH:mm:ss 'GMT'" and "yyyy-MM-dd HH:mm:ss 'GMT'"
to common formats (yes, I know it is nothing more than hack)
- Fixed some GetDateTimeFormats() that just returned patterns.
- For InvariantCulture, now try both supported formats and our
predefined formats.
- It was accepting incorrectly extraneous characters. That caused
some UTC/non-UTC bug.
- RFC1123 string should return universal time. Uncomment again (the
problem should went away because of the extra characters fix above.
With some of the changes above, fixed bug #47720.
svn path=/trunk/mcs/; revision=28288
* io.h:
* io.c: Implemented LockFile() and UnlockFile()
2004-05-27 Dick Porter <[email protected]>
* icall.c:
* file-io.c: Implemented icalls for locking and unlocking regions
in a file.
(ves_icall_System_IO_MonoIO_FindNextFile): FindNextFile() returns
FALSE on error (fixes both compiler warning and real bug.)
svn path=/trunk/mono/; revision=28284
* DateTimeFormatInfo.cs : Added some string[] fields for
GetAllDateTimePatterns(char). The fields will be filled in metadata
and culture info table. Added improved patterns for
GetAllDateTimePatterns() (right now works only for invariant).
* CultureInfo.cs : Use InvariantInfo for InvariantCulture.
svn path=/trunk/mcs/; revision=28282
* CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
Cache.cs : Fixed deadlock issues, fixed
items not correctly being flushed, fixed update
of item when expiration has been updated more
than 1 min (placed in wrong bucket),
fixed deadlock during cache callback when item
is removed due to expiriation.
Rewrite of locking handling in Cache class, leading
to better performance and less bugs.
This rewrite is due to a number of bugs found
in the output caching during load (leading to memory
leaks and deadlocks)
svn path=/trunk/mcs/; revision=28254
- CheckReadOnlyStatus : use typed (and faster comparing).
- EndEdit : bug fix - do not dispose record if it holds original version.
- SetValuesFromDataRecord : Take care about autoincrement columns.
svn path=/trunk/mcs/; revision=28249
* XmlTextReaderTests.cs : added test for bug #59142.
* XmlTextWriterTests.cs : added test for bug #59154.
* XmlDocumentTests.cs : added test for bug #59155.
svn path=/trunk/mcs/; revision=28238
* DefaultContext.cs : Add XPathNavigator input support for ToBoolean()
and ToNavigator().
* Expression.cs : In Equality comparison, evaluate XPathNavigator in
the same as well as NodeSet. This fixes bug #59134.
svn path=/trunk/mcs/; revision=28237
* XmlDataInferenceLoader.cs : Namespace are not imported to the table
structure. Thanks to Boris Kirzner for the fix.
svn path=/trunk/mcs/; revision=28235
* XmlDocument.cs : Save() should indent only when PreserveWhitespace
is false. Fixed bug #59155.
Modified comment lines a bit.
svn path=/trunk/mcs/; revision=28234
* XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
and don't bork against <foo></foo>. Also mofidied this method to skip
<foo/>. Fixed bug #59142.
Modified some comments on the code (FIXME->LAMESPEC et al).
svn path=/trunk/mcs/; revision=28229
* FileStream.cs: delay seeking to the end when FileMode.Append is
specified until after buffer initialization. Fixes bug #59151.
svn path=/trunk/mcs/; revision=28222
* category.cs: added LastValue field to mark the end of enum Category.
* syntax.cs: in CharacterClass, use Category.LastValue to get the size
of the array needed. Use a BitArray instead of bool[].
In AddCategory(), don't set the opposite category as false. Fixes
bug #59150. All tests pass.
svn path=/trunk/mcs/; revision=28218
* Syscall.cs: Do not let the runtime handle strings, as we do not
own those strings, we must transform the char * into a string
ourselves.
svn path=/trunk/mcs/; revision=28200
* HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
chunked encoding disabled. Fixed chunked suffix and end. Send the
'lastchunk' marked when in the final Flush even if the content length
is 0. This makes mod-mono-server work fine with chunked encoding.
* HttpRuntime.cs: Set the _firstRequest* variables to true
earlier. TraceContext don't take any parameter now.
* TraceManager.cs: don't need a context. Use GetAppConfig.
svn path=/trunk/mcs/; revision=28186
* driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
since driver.c is in libmono too, so the optimization was useless.
svn path=/trunk/mono/; revision=28184
the IMessage, and add IMessage properties as headers when creating the
SoapMessage. LogicalCallContext info will be passed as a header value.
svn path=/trunk/mcs/; revision=28178
* DateTime.cs :
- Added "yyyy-MM-dd HH:mm:ss" to "compatible patterns".
(Fixed bug #58938.)
- As a quick remedy to accept more patterns, Parse() now also tries
InvariantInfo patterns (this is because we have no more than one
pattern for each pattern component.)
- In _DoParse(), 'Z' should not be read as timezone specifier. Some
culture uses 'Z' as AM/PM designer, and it should be recognized as
part of the UTCpattern (if it actually UTC pattern for the culture
contains 'Z').
svn path=/trunk/mcs/; revision=28177
* BufferedStream.cs: Added globalization and fixed exceptions and
possible integer overflow.
* TextWriter.cs: Fixed possible integer overflow.
svn path=/trunk/mcs/; revision=28172
* Byte.cs: Throw an OverflowException for negative numbers.
* Convert.cs: Accept 0x and 0X as prefix when parsing base16 strings.
svn path=/trunk/mcs/; revision=28160
In encoded format, primitive types can be null. Read them using
ReadReferencingElement, that already checks for the null tag.
svn path=/trunk/mcs/; revision=28157
* driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
variable to driver.c so the compiler can emit more efficient code to
access them.
svn path=/trunk/mono/; revision=28152
* Driver.cs : for af_ZA locale, am/pm part got required to support
"empty" string. So check am/pm elements and overwrite AMDesigner/
PMDesigner value even if they consist of empty string.
* (moved logs for supp/ content to supp/)
svn path=/trunk/mono/; revision=28149
* RNGCryptoServiceProvider.cs: Changed RNG interface with the runtime
so it could be used in a thread-safe way with CryptoAPI.
svn path=/trunk/mcs/; revision=28143
* SoapReader.cs: Added support for deserialization of headers. Cache
both member indexes and member infos in the new TypeMetadata structure.
* SoapWriter.cs: Added support for serialization of headers.
svn path=/trunk/mcs/; revision=28141
* UrlUtils.cs:
(GetFile): not public, and fixed to really return just the file name.
(InsertSessionId): ensure that the directory ends with a "/". This
fixes cookieless sessions.
svn path=/trunk/mcs/; revision=28109
* expression.cs
(MethodGroupExpr.IdenticalTypeName): New public property.
(Invocation.DoResolve): Don't report a CS0176 if the "instance"
expression actually refers to a type.
svn path=/trunk/mcs/; revision=28084
* System.Web/HttpApplication.cs: set culture/uiculture from
configuration and restore it after each step. Fixes bug #52851.
* System.Web.Configuration/GlobalizationConfiguration.cs: if we have no
context, use GetAppConfig instead of GetConfig.
svn path=/trunk/mcs/; revision=28081
* MethodBuilder.cs: Now use FastNewGuidArray to create new random
Guids without using CryptoConfig. Speed up for MCS.
svn path=/trunk/mcs/; revision=28069
* Guid.cs: Added an internal method to create a random Guid without
using CryptoConfig (which is heavy on first use). This is only used
in S.R.E.ModuleBuilder to speedup MCS compilation.
svn path=/trunk/mcs/; revision=28068
* ArrayTest.cs: Added tests to check for integer overflow in Clear,
Copy and Reverse.
* BitConverterTest.cs: Added test to check for possible integer
overflow in ToString (byte,int,int)
svn path=/trunk/mcs/; revision=28062
specified. The min bounds is set to -1, I am not completely sure
if that is what it is supposed to be but MS does not set it to 0
based on testing. Patch by [email protected]. Fixes bug
#56761.
svn path=/trunk/mcs/; revision=28061
* String.cs: Fixed reported exception for PadLeft|Right. Fixed
possible integer overflow in methods that takes index and count
as parameters.
svn path=/trunk/mcs/; revision=28060
* ConvertTest.cs: New tests for prefixed hexadecimal strings and
negative byte convertion.
* StringTest.cs: Added new tests for integer overflow and negatives.
svn path=/trunk/mcs/; revision=28042
* DateTime.cs : In ToString(string, IFormatProvider), use "G" if
string format argument is null. This should fix bug #57656.
svn path=/trunk/mcs/; revision=28037
* mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
of the mcrxr instruction which is not available on some processors
even if it's documented to be. Implement add and sub overflow correctly
(still not complete for long unsigned). Speed up icalls a bit.
svn path=/trunk/mono/; revision=28035
* mini.c (mono_jit_compile_method_with_opt): Make sure that
we run .cctor in the current domain instead of target_domain.
Fixes bug #58558, .cctor not being called in -O=shared.
svn path=/trunk/mono/; revision=28032
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs: patch by Eduard
Nesiba that implements autocommit behavior for non query statement
which is out of transaction. In previous implementation changed rows
stayed locked until client disconnect and hasRows proper settings.
svn path=/trunk/mcs/; revision=28019
* jscript-lexer-parser.g: added 'using' for
System.Collections. Allow 'switch' statement building of its
ast. Added parent parameter to constructor of With. Build
inside_for ast.
svn path=/trunk/mcs/; revision=28013
* DateTime.cs: allow double quotes in the formats. Don't set
next_not_digit to true in presence of single or double quotes. Patch by
Martin Probst.
svn path=/trunk/mcs/; revision=28011
- Added loading of comdlg32 for wine to enable usage of common dialogs.
- Moved the comdlg32 functions into the Win32 section
svn path=/trunk/mcs/; revision=28009
* Directory.cs: ERROR_FILE_NOT_FOUND in FindFirstFile means there are
no files, but the directory was found. Fixes bug #58875.
svn path=/trunk/mcs/; revision=28005
* mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
which can be done with an imm8, do it that way.
(mono_arch_output_basic_block): ditto for a jmp
(mono_arch_emit_prolog): Computate maximum offset of a label.
svn path=/trunk/mono/; revision=28004
* StreamReader.cs: Add checks for null encoding. Fixed possible integer
overflow and ArgumentNullException in Read.
svn path=/trunk/mcs/; revision=28000
* enum.cs (Enum.DefineType): For the `BaseType' to be a
TypeLookupExpression; otherwise, report a CS1008. Fixes#58571.
svn path=/trunk/mcs/; revision=27999
* FileInfo.cs: Reformat the whole file to use DOS line endings.
(MoveTo): Return if the destination of Move is the same as the file's
current location.
svn path=/trunk/mcs/; revision=27996
* StreamWriter.cs: Add dispose check to Write(char) and Write(char[]),
AutoFlush. Fixed possible integer overflow in Write(char[],int,int).
svn path=/trunk/mcs/; revision=27993
* Directory.cs: Reformat the whole file to use Unix line endings
for consistency.
(GetFileSystemEntries): If pattern is String.Empty, always
return an empty string array. Throw the ArgumentException if path
is an empty string (determined using the new helper method)
(IsEmptyString): Returns true on an empty string or a string with
only whitespace characters.
* Path.cs (GetPathRoot): Throw an ArgumentException if the path
argument is String.Empty.
svn path=/trunk/mcs/; revision=27990
* mini-x86.c (mono_arch_local_regalloc): the reg allocator
now tries to allocate prefered physical reg's for virtual
regs. This reduces the number of emited spills/loads with
20-30% on our core assemblies.
svn path=/trunk/mono/; revision=27981
* MemoryStream.cs: Fixed exception reporting to match MS Fx. Fixed the
condition to allow zeroization of existing data when we shrink the
stream.
svn path=/trunk/mcs/; revision=27977
* MemoryStreamTest.cs: Test that we zeroize old data when we manipulate
the length of the stream. Verify that we throw the same exceptions as
MS fx.
svn path=/trunk/mcs/; revision=27974
* ecore.cs (SimpleName.SimpleNameResolve): Renamed to
DoSimpleNameResolve() and provide a SimpleNameResolve() wrapper
which does the CS0135 check. The reason is that we first need to
check whether the variable actually exists.
svn path=/trunk/mcs/; revision=27973
* class.cs (MemberBase.DoDefine): Use DeclSpace.FindType() rather
than RootContext.LookupType() to find the explicit interface
type. Fixes#58584.
svn path=/trunk/mcs/; revision=27972
* icall.c: Added define for CSIDL_FLAG_CREATE (0x8000) in case it is
missing in the windows build (like older cygwin include files).
svn path=/trunk/mono/; revision=27968
* XmlSchemaBuiltInDataypeTests.cs : 'Z' is not allowed here (maybe it
is 'T' that was wanted). More kind error message in Fail().
svn path=/trunk/mcs/; revision=27956
(LIBRARY_COMPILE) [!HAVE_SYSTEM_XML]: Use $(BOOT_COMPILE) for
non-Xml first build.
(all-local) [!SECOND_PASS]: Simplify.
svn path=/trunk/mcs/; revision=27950
($(the_lib)): Use $(LIBRARY_COMPILE) to compile $(the_lib).
* executable.make (uninstall-local): Use PROGRAM_INSTALL_DIR.
svn path=/trunk/mcs/; revision=27949
* NamedNodeMap.cs : Modified. "domestic or street" does not mean
the exact literal node name, but it means "either 'domestic' or
'street'". We always return fixed values.
svn path=/trunk/mcs/; revision=27944
* Document.cs : am sure that element nodes are up to 36, not 37
(maybe counting the element that is in unused entity value?).
svn path=/trunk/mcs/; revision=27943
* DTDReader.cs : When sequential PE references exist, the reader only
expands the first one and in some cases the parser complaints the
content (such like expecting name character but found '%').
This fixes bug #58818.
svn path=/trunk/mcs/; revision=27941
* decl.cs (DeclSpace.FindType): Only check the `using' list if we
don't have any dots. Fixes#52622, added cs0246-8.cs.
* namespace.cs (NamespaceEntry.Lookup): Likewise.
svn path=/trunk/mcs/; revision=27931
* Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
connect to cvs built servers which had devel in its version string.
svn path=/trunk/mcs/; revision=27928
* Boolean.cs: Fixed Equals for True!=True (see bugzilla #58874).
* BitConverter.cs: Fixed negative index and integer overflow in
To... methods.
svn path=/trunk/mcs/; revision=27926
* BooleanTest.cs: Added new test to compare booleans using Equals
and == (case of True!=True). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=27925
* ecore.cs (SimpleName.SimpleNameResolve): Only report a CS0135 if
the variable also exists in the current block (otherwise, we need
to report a CS0103). Fixes#58670.
svn path=/trunk/mcs/; revision=27924
Fix bug #57835
* attribute.cs (AttributeTester.GetMethodObsoleteAttribute): Returns
instance of ObsoleteAttribute when symbol is obsolete.
* class.cs
(IMethodData): Extended interface for ObsoleteAttribute support.
svn path=/trunk/mcs/; revision=27917
* BitConverterTest.cs: Added new tests for negative integers and
integer overflow in To... methods. Added new boolean convertion
tests.
svn path=/trunk/mcs/; revision=27912
* RealProxy.cs: Moved async functionlity here, also take
care of custom proxies (non RemotingProxy) case for async and
construction calls.
* RemotingProxy.cs: allow RealProxy to call construction method and
remove end async control (moved to RealProxy)
Fixes remoting2/3 test case (mono/mono/tests) and closes bug #57672.
svn path=/trunk/mcs/; revision=27908
* FieldInfo.cs: changed default constructor from internal to protected, so classes
that inherit from it can get build.
svn path=/trunk/mcs/; revision=27892
* mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
should set carry.
* basic-long.cs: Add tests for add/subtract of immediates with carry.
svn path=/trunk/mono/; revision=27886
Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlDataReader.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlTransaction.cs,
Npgsql/Design/ConnectionStringEditor.cs,
Npgsql/Design/ConnectionStringEditorForm.cs,
Npgsql/Design/NpgsqlParameterConverter.cs,
Npgsql/Design/NpgsqlParametersEditor.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by
Glen Parker ([email protected]): Bug #772 ("Using
Command and Prepare adds single quotes to strings twice")
is fixed :-) It was broken when running on the version 3
protocol (extended query support) on PostgreSQL 7.4.
Some of the files in Design were formatted with macintosh line
terminators. This was screwing up the xmldoc generator in csc,
so I reformatted to make it work.
I've added some essential xmldoc comments (<summary> tags). Much work
remains here, but I wanted to get a few in on common functions and
properties.
The .build file will now generate the Npgsql.xml file, next to the .dll
file. I removed the existing Npgsql.xml from CVS.
Thanks Glen Parker for this patch.
svn path=/trunk/mcs/; revision=27877
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27876
* mini.c (inline_method): Allways inline some wrappers even if the cost
is too large. Fixes#58785.
* mini.c: Add support for MARSHAL_CONV_FTN_DEL.
svn path=/trunk/mono/; revision=27874
Fix bug #52705
* attribute.cs
(GetObsoleteAttribute): New method. Creates the instance of
ObsoleteAttribute.
(AttributeTester.GetMemberObsoleteAttribute): Returns instance of
ObsoleteAttribute when method is obsolete.
(AttributeTester.Report_ObsoleteMessage): Common method for
Obsolete error/warning reporting.
* class.cs
(TypeContainer.base_classs_type): New member for storing parent type.
* decl.cs
(MemberCore.GetObsoleteAttribute): Returns instance of ObsoleteAttribute
for this MemberCore.
svn path=/trunk/mcs/; revision=27872
* UIntPtr.cs: We now only accept 32bits unsigned values in the ulong
constructor unless we're on a 64 bits machine.
svn path=/trunk/mcs/; revision=27865
consistency, converted it all to DOS endings.
(ToType): When value is null, immediately return null and don't ever
throw a NullReferenceException. When conversionType is null, throw an
InvalidCastException. Give a better error message when attempting to
convert to a DBNull as well.
svn path=/trunk/mcs/; revision=27856
* io.c (CreateFile): Check for existing share modes when opening
a file.
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon.c: Maintain a hash of file share modes, keying on device
and inode (to cope with symlinks.)
svn path=/trunk/mono/; revision=27850
* tools/uni2tab.c : non JIS X 0208 characters could not be decoded.
(It is hack!)
* CJK/jis.table : updated using the latest uni2tab.c
svn path=/trunk/mcs/; revision=27845
* mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
([email protected]). Beginning of support for sparc/linux.
* mini-sparc.c: Optimize retrieval of LMF address.
svn path=/trunk/mono/; revision=27839
* TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
(AcceptTcpClient): Don't create TcpClient before a
connection is accepted.
(LocalEndPoint): Use Server LocalEndPoint if connected
otherwise use endpoint from ctor.
(Init): Save end point, not server endpoint. This did
cause TcpListener to ignore port sent via constructor.
(Pending): Fixed wait time (method should return directly)
(Start): Moved Bind here instead of Init method; old method
caused us to bind ports even if the listener was stopped.
(Stop): Null server when stopping
svn path=/trunk/mcs/; revision=27837
* flowanalysis.cs (FlowBranching.MergeTopBlock): Don't check for
out parameters if the end of the method is unreachable. Fixes
#58098.
svn path=/trunk/mcs/; revision=27831
* DataColumnCollection.cs : NullReferenceException was thrown when
the table was not found.
* DataRowCollection.cs :
Find() just returns null for null value under MS.NET 1.1.
RemoveAt() should also avoid to call AcceptChanges() like Remove().
* UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
directly under MS.NET (for nunit test).
svn path=/trunk/mcs/; revision=27829
* Decimal.cs: Fixed To... methods that needs to trunk the integer part
of Decimal (and not use the banker's rounding like Convert.To...).
svn path=/trunk/mcs/; revision=27828
* DecimalTest.cs: Added new unit test to check for correct rounding.
It appears that Decimal.To... trunk but Convert.To... use banking
rounding (so we can't use Convert.To... to implement To...).
svn path=/trunk/mcs/; revision=27825
* XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
caused problem on qualified name to get schema Field name.
svn path=/trunk/mcs/; revision=27803
* Uri.cs :
AbsoluteUri does not escape file URI string.
ToString() should unescape every file uri. MS.NET.ToString() does
not unescape '#' but it looks a bug.
svn path=/trunk/mcs/; revision=27802
* XmlDataReader.cs : Now data reader is namespace aware in all places.
When table's namespace is different, it entered to infinite loop.
svn path=/trunk/mcs/; revision=27800
* X509CapiTest.cs: SetUp and TearDown are now public (required for new
nunit).
* X509SpcTest.cs: SetUp and TearDown are now public (required for new
nunit).
svn path=/trunk/mcs/; revision=27795
* KeyInfoTest.cs: SetUp is now public (required for new nunit).
* ReferenceTest.cs: SetUp is now public (required for new nunit).
svn path=/trunk/mcs/; revision=27789
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27787
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27786
* Convert.cs: Added checks for integer overflow for From|ToBase64Char.
Also fixed the case where wide (16 bits) characters were converted to
bytes.
svn path=/trunk/mcs/; revision=27781
* ConvertTest.cs: Added new unit tests for integer overflow in To/From
Base64CharArray. Added new test for wide char. Exploded some tests in
NUnit2 format (to ease add new tests).
svn path=/trunk/mcs/; revision=27780
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27777
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27776
* XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
When content type is Mixed, text column is not required (it is
required only when the complex type has no particle).
"Repeated element" column is also created (considering maxOccurs=0
and complex content extension).
svn path=/trunk/mcs/; revision=27759
Merged this back from gmcs to keep the differences to a minumum.
* attribute.cs (Attribute.CheckAttributeType): Take an EmitContext
instead of a Declspace.
(Attribute.ResolveType): Likewise.
(Attributes.Search): Likewise.
(Attributes.Contains): Likewise.
(Attributes.GetClsCompliantAttribute): Likewise.
* class.cs (TypeContainer.VerifyMembers): Added EmitContext
argument.
(MethodData.ApplyAttributes): Take an EmitContext instead of a
DeclSpace.
svn path=/trunk/mcs/; revision=27753
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=27745
for library to be tested.
* rules.make (INTERNAL_RESGEN): New Define.
* library.make (run-test-local): Move commands to run-test-lib.
Preparartion for allowing creation of addition test dll with .vb
testcases.
* executable.make (PROGRAM_COMPILE): New define.
($(PROGRAM)): Use PROGRAM_COMPILE to compile PROGRAM.
svn path=/trunk/mcs/; revision=27734
tools/locale-builder/Makefile.
* Makefile.am (SUBDIRS): Remove tools.
(DIST_SUBDIRS): Add 'tools'.
(bootstrap): Rewrite so that we get two new targets.
(faststrap): New two-stage build.
(fasterstrap): New one-stage build.
Make 'faststrap' and 'fasterstrap' are useful for continuing development
once you've bootstrapped a mono/ CVS checkout.
svn path=/trunk/mono/; revision=27732
* Expression.cs : We should not catch all kind of exception. Just
throwing any kind of exception would be preferable.
Added support for XPathNavigator values.
svn path=/trunk/mcs/; revision=27726
* XslCopyOf.cs : When evaluation result was result tree fragment (i.e.
XPathNavigator) output its content (children).
* XslNumber.cs : Reflected CompilePattern() change.
* XslTemplateContent.cs : Don't throw System.Exception.
* XslVariable.cs : XslVariableInformation.Evaluate() now returns
XPathNavigator, not NodeSet (it should not return "children", since
the node pointed by XPathNavigator should be referenced as Root).
svn path=/trunk/mcs/; revision=27725
* tools/Makefile.am: Add tools directory
* tools/locale-builder: Add the locale-builder tool, this tool is
not built by default as it is only needed by people that wish to
moidify culture data.
* Makefile.am: Add tools to build
svn path=/trunk/mono/; revision=27717
* DebuggerStepThroughAttribute.cs : now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27702
* DateTimeconstantAttribute.cs
* DecimalConstantAttribute.cs
* IDispatchConstantAttribute.cs
* IUnknownConstantAttribute.cs
* MethodImplAttribute.cs
* RequiredAttributeAttribute.cs: now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27701
* ContextStaticAttribute.cs
* FlagsAttribute.cs
* ObsoleteAttribute.cs : now that Inherited is false by
default on AttributeUsageAttribute (as it should be) we
need to explicitly set Inherited to false for those
attributes should it be be false.
svn path=/trunk/mcs/; revision=27699
* icall.c: new signature for Process_Start.
* process.[ch]: new signature for Process_Start. If we're on windows
and UseShellExecute is false, we have to search for the program by
ourselves if we don't get a full path.
svn path=/trunk/mono/; revision=27696
Fix bug #58688 (MCS does not report error when the same attribute
is assigned twice)
* attribute.cs (Attribute.Emit): Distinction between null and default.
svn path=/trunk/mcs/; revision=27687
* CustomSerializer.cs : Added custom serializer for XmlSchema, that is
generated by SerializationCodeGenerator and edited a bit.
* XmlSchema.cs : Use XmlSchemaSerializationWriter.
svn path=/trunk/mcs/; revision=27680
of a top-level attribute without an attribute target.
* attribute.cs (Attribute.Error_AttributeConstructorMismatch):
Make non-static.
(Attribute.Conditional_GetConditionName),
(Attribute.Obsolete_GetObsoleteMessage): Update.
(Attribute.IndexerName_GetIndexerName): New. Attribute-specific
part of ScanForIndexerName.
(Attribute.CanIgnoreInvalidAttribute): New function.
(Attribute.ScanForIndexerName): Move to ...
(Attributes.ScanForIndexerName): ... here.
(Attributes.Attrs): Rename from now-misnamed AttributeSections.
(Attributes.Search): New internal variant that can choose not to
complain if types aren't resolved. The original signature now
complains.
(Attributes.GetClsCompliantAttribute): Use internal variant, with
complaints suppressed.
(GlobalAttribute.CheckAttributeType): Overwrite ds.NamespaceEntry
only if it not useful.
(CanIgnoreInvalidAttribute): Ignore assembly attribute errors at
top-level for attributes that are shared between the assembly
and a top-level class.
* parameter.cs (ImplicitParameter): Rename from ParameterAtribute.
* class.cs: Update to reflect changes.
(DefineIndexers): Fuse loops.
* codegen.cs (GetAssemblyName): Update to reflect changes. Accept
a couple more variants of attribute names.
(cleans up some issues with Marek's patch. Most importantly, it fixes
a breaking build: errors/CS0618-2-lib.dll)
svn path=/trunk/mcs/; revision=27666
* PKCS7.cs: Added SignedData.VerifySignature(AsymmetricAlgorithm aa).
Added support for calculating signature from SignedData content (i.e.
when UseAuthenticatedAttributes is false). Added contentType to
AuthenticatedAttributes (when SignedData.UseAuthenticatedAttributes
is true).
svn path=/trunk/mcs/; revision=27662
* DataContainer.cs - added. Provides implementation for data containers that holds data in arrays of primitives or objects. Each data container belongs to specific DataColumn.
* DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable ( to fetch exact number of records required ).
svn path=/trunk/mcs/; revision=27655
* SqlDecimal.cs : Fixed operator/ not to return positive always.
Halfly fixed ConvertToPrecScale() that was broken.
svn path=/trunk/mcs/; revision=27624
* SqlDecimal.cs :
- .ctor() should check the valid scale range and throw
SqlTypeException.
- Value should copy the last int32 value fragment.
- Fixed Abs() and Ceiling() to return Null when the input is Null.
- Now AdjustScale() should not depend on Truncate() that keeps zero
digits correctly. So Round() before returning the final result.
- ToString() should insert '-' for minus values.
- operator+ should use larger scale of operands rather than smaller
scale.
svn path=/trunk/mcs/; revision=27615
Fix bug #52585 (Implemented explicit attribute declaration)
* attribute.cs:
(Attributable.ValidAttributeTargets): New abstract method. It gets
list of valid attribute targets for explicit target declaration.
(Attribute.Target): It holds target itself.
(AttributeSection): Removed.
(Attribute.CheckTargets): New method. It checks whether attribute
target is valid for the current element.
* class.cs:
(EventProperty): New class. For events that are declared like
property (with add and remove accessors).
(EventField): New class. For events that are declared like field.
class.cs
* cs-parser.jay: Implemented explicit attribute target declaration.
* class.cs, decl.cs, delegate.cs, enum.cs, parameter.cs:
Override ValidAttributeTargets.
* parameter.cs:
(ReturnParameter): Class for applying custom attributes on
the return type.
(ParameterAtribute): New class. Class for applying custom
attributes on the parameter type.
svn path=/trunk/mcs/; revision=27608
* mini.h mini.c (mini_method_compile): Only run abc removal pass on
methods which contain array accesses.
* mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
boundaries. Fixes#58537.
* iltests.il: Add regression test for #58537.
svn path=/trunk/mono/; revision=27607
* basic-long.cs: Add new regression test.
2004-05-18 Patrik Torstensson <[email protected]>
* mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
register too early on the chain.
svn path=/trunk/mono/; revision=27591
* ASN1Convert.cs: In sync with Mono.Security.dll version.
* StrongName.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=27587
* Assembly.cs: Return an empty Evidence collection to avoid
NullReferenceException from calling code (as this is never
null with MS implementation). See bugzilla #53548.
svn path=/trunk/mcs/; revision=27586
* Buffer.cs: Added checks for null source and destination. Fix failing
CryptoStream unit test.
* Guid.cs: Fixed thread-safety issue. Simplified implementation to use
pseudo-random numbers to generate GUIDs (as per section 3.4 of the
spec). This removes the TODO to get the computer MAC address and
the chances to get a duplicate GUID (across different machines).
svn path=/trunk/mcs/; revision=27585
* mini.c (create_helper_signature): Use a helper function to reduce
the code which needs to be written. Also set the calling convention of
icalls on windows. Fixes#57840.
svn path=/trunk/mono/; revision=27578
* mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
exceptions-ppc.c: added helper function to get the instruction address
from a signal handler context.
svn path=/trunk/mono/; revision=27577
* SqlDecimal.cs :
- .ctor(double) initializes the precision as 17. If not sufficient,
it calls AdjustScale(), and if too much then it calls Round().
- Data should not return the internal array otherwise it might be
modified by outer code.
- Reimplemented AdjustScale() to work fine.
- Reimplemented Parse(). It should rather use Decimal.Parse()
rather than SqlDouble.Parse() for parsable value range difference.
- Reimplemented Round(). Don't use double.
- Fixed ToString() to return "Null" for null value.
- Fixed explicit let operator to use double .ctor, not decimal
.ctor() so that precision can be handled in the same way as double.
svn path=/trunk/mcs/; revision=27568
* TestBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
* TestColorBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
svn path=/trunk/mcs/; revision=27566
* SqlDecimalTest.cs :
Don't catch all kind of exception. That hides the exact error info.
Don't use ToSqlString() in AdjustScale() test (to make which is
wrong).
MS.NET's ToSqlInt32() is buggy; no worth following the behavior.
Added test for parsing "999999..." (SqlDecimal.MaxValue).
svn path=/trunk/mcs/; revision=27564
* HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
entities hashtable creation until it's really needed.
svn path=/trunk/mcs/; revision=27561
* ByteFX.Data.dll.sources: Update to latest listing of source
files.
* AssemblyInfo.cs: Revert back to the previous version, because we
don't have bytefx.snk.
* mysqlclient/transcaction.cs: Removed, replaced by the new
transaction.cs.
svn path=/trunk/mcs/; revision=27557
* RNGCryptoServiceProviderTest.cs: Added new tests to see how the
constructor behave with null seeds or if they modify the seed.
svn path=/trunk/mcs/; revision=27553
* helpers.c: Add new env variable to pass args to objdump.
Specifically for those of us who love -Mintel. r=miguel, gonzalo.
svn path=/trunk/mono/; revision=27551
* TextBox.cs: don't save the Text if in ViewState if it's a password.
Save it if the control is not visible or not enabled. Fixes bug #58497.
svn path=/trunk/mcs/; revision=27549
* SoapHttpClientProtocol.cs: when the response has a not acceptable
status code, the WebException we throw has a status of ProtocolError.
Fixes bug #58564.
svn path=/trunk/mcs/; revision=27543
* HttpApplicationFactory.cs: if no module matches the name found for a
possible event, ignore it. Fixes bug #58542.
svn path=/trunk/mcs/; revision=27541
* ConfigurationSettings.cs: don't ask me why, but the .cctor
initialization of 'instance' field does no longer work.
svn path=/trunk/mcs/; revision=27539
* gacutil.cs:
(InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
"--force" instead of expecting it in a fixed place.
svn path=/trunk/mcs/; revision=27537
* TimeSpan.cs: Only catch expected exceptions, if we get other exceptions
than OverflowExceptions then something went wrong internally
svn path=/trunk/mcs/; revision=27535
(GraphicsPathIterator): Store the path count, path points and path
type arrays instead of calling unmanaged functions in GDI+ each time
to get to get the path data.
(CopyData, Enumerate, HasCurve, Rewind, SubpathCount): Implemented.
svn path=/trunk/mcs/; revision=27533
* XmlDataDocument.cs :
Removed MonoTODO from implemented members and private members.
Updated OnNodeRemoved(), OnDataRowDeleted() and OnDataTableRollback()
to match with current implementation.
svn path=/trunk/mcs/; revision=27529
* Makefile.am (common_sources): added abcremoval.h so it get
disted and daily mono packages on go-mono.com will build again
svn path=/trunk/mono/; revision=27528
* DataSet.cs,
XmlDataInferenceLoader.cs,
XmlDataReader.cs,
XmlSchemaDataImporter.cs : XmlDecode every local name to read and
XmlEncode every local name to write. This should fix bug #58268.
svn path=/trunk/mcs/; revision=27524
* DataSetAssertion.cs : Enabled "Ordinal" check again, unless the test
value is -1.
* DataSetInferXmlSchemaTest.cs,
DataSetReadXmlSchemaTest.cs : Enabled Ordinal check again, as long
as working. Added IgnoredNamespaces() to inferxmlschema test.
svn path=/trunk/mcs/; revision=27520
necessary. Move body ...
(tmpinst-dir.stamp): ... here.
(stage3): Don't remove _tmpinst tree.
(bootstrap-clean, bootstrap-check): New rules. They run the
corresponding rules in the mcs/ tree.
svn path=/trunk/mono/; revision=27513
* marshal.c: Don't pass wrappers to message init because method
addressed used to lookup metadata. part of remoting[2|3] fix.
svn path=/trunk/mono/; revision=27495
* ExpiresBucket.cs: Style changes plus;
(Update): Fixed possible lock bug (bug 54531)
(Expand): remove lock optimization due to it can cause newly
added items to be lost.
(Remove): fixed possible lock bug.
svn path=/trunk/mcs/; revision=27480
* mini-x86.c (mono_arch_local_regalloc): Correctly free
reg in long and clob case (bug #58343). Fixed/added comments.
svn path=/trunk/mono/; revision=27478
* Installer.cs: marked parent internal to match MS
* InstallerCollection.cs: implemented
* InstallEventArgs.cs: remove setter for SavedState
svn path=/trunk/mcs/; revision=27471
struct correctly to a native struct. Resulting data should be
FreeHGlobal'd when finished.
* EncoderParameter.cs: Changed data storage to correspond to
native code layout. Also changed layout to match native layout.
* EncoderParameterValueType.cs: force EncoderParameterValueType to
be Int32
* gdipFunctions.cs: Fixed prototype for
GdipGetEncoderParameterList
* Image.cs: Reworked Save functions to handle EncoderParameters.
Implemented GetEncoderParameterList.
Also removed unused setGDIPalette internal method.
svn path=/trunk/mcs/; revision=27467
path is essentially the same as MONO_PATH except that it points to
GACs instead of lib directories.
* loader.h: The user gac is gone so we dont need function to
enable/disable it.
* mono-config.c: user gac option is now gone.
svn path=/trunk/mono/; revision=27464
array of ints is passed back from the runtime to the CultureInfo
object. The ints store the calendar type and any optional data
needed to construct the calendar.
svn path=/trunk/mcs/; revision=27462
to the culture info table.
* culture-info-tables.h: Add basic calendar data. Basically
everyone gets default gregorian until all the data is
updated.
* locales.c: Use the new consistent defines. Set calendar data for
culture info objects.
* object.h: add a field for calendar data to CultureInfo
svn path=/trunk/mono/; revision=27461
* Makefile: corrected /libpath: compiler flag (parameter) to point to ../class/lib/default/ the new location of libraries
svn path=/trunk/mcs/; revision=27459
* System.ComponentModel.Design/ComponentDesigner.cs: fixed public API
* System.Web.UI.Design/ControlDesigner.cs: fixed public API
* System.Web.UI.Design/HtmlControlDesigner: fixed public API
* System.Windows.Forms.Design/AnchorEditor.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/AxImporter.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/ComponentDocumentDesigner.cs: fixed
public API, converted to unix linefeeds
* System.Windows.Forms.Design/SelectionRules.cs: implementation
svn path=/trunk/mcs/; revision=27445
converted to unix linefeeds, marked class TODO, added Flags
attribute to FolderBrowserStyles enum
* System.Windows.Forms.Design/FileNameEditor.cs:
completed stubs, converted to unix linefeeds
svn path=/trunk/mcs/; revision=27441
conversion in C.
(GraphicsPath): Use GdipCreatePath2I instead.
(SetMarker, ClearMarkers):
(Flatten, GetBounds, IsOutlineVisible, IsVisible):
(StartFigure, CloseFigure, CloseFigures):
(Warp, Widen): Implemented. I left the MonoTODO attribute on for
the methods where the equivalent C function has not yet been
implemented.
* GraphicsPathIterator.cs (Count): Implemented.
* gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
(GdipFlattenPath, GdipWarpPath, GdipWidenPath):
(GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
svn path=/trunk/mcs/; revision=27424
* CustomDataClassGenerator.cs :
- Put classes inside custom DataSet class.
- Added automatic DataRelation creation support.
- Added Constraints creation support. That is done separate from
relations, since they might be independently created.
- Added non-MS public DataRelation fields.
- Removed extraneous "DataRelation type generation" code.
- Fixed custom_dataset.Initialize() not to create "c" field that
was created more than once.
- Implemented AddxxxRow() that takes parameters for every column.
svn path=/trunk/mcs/; revision=27418
* UTF8Encoding.cs: Moved charCount-- after the check for surrogate
pair. This fix bug #57009 (and 2 failing unit tests).
svn path=/trunk/mcs/; revision=27405
TestBitmap.cs: Modified method signature to static for use in other files.
TestImageConverter.cs: Added.
TestImageFormatConverter.cs: Added.
bitmaps/almogaver24bits1.bmp: Added.
svn path=/trunk/mcs/; revision=27402
* XmlSchemaDataImporter.cs : When primary key is used more than once,
DataRelation borked because of empty parent column name.
svn path=/trunk/mcs/; revision=27388
* XmlSchemaDataImporter.cs : When Creating constraints with related
to DataRelation creation, also set PrimaryKey to the parent table.
svn path=/trunk/mcs/; revision=27367
* XmlSchemaDataImporter.cs :
Design change to add indirect table and relation structures.
Support for "relation" annotation for local element.
Support for repeatable simple element column (maxOccurs > 1).
Fixed handling of Nested property on DataRelation (for globally
annotated relation, Nested is false).
svn path=/trunk/mcs/; revision=27359
* DataSetReadXmlSchemaTest.cs : Added tests for test012.xsd (repeatable
simple element) and test013.xsd (reference to global element;
currently failing).
svn path=/trunk/mcs/; revision=27358
* culture-info-tables.h: seems like Spanish and Portuguese cultures had
DateTimeFormatInfo.YearMonthPattern like "MMMM' yyyy" (note the single
quote). Changed them to "MMMM yyyy".
svn path=/trunk/mono/; revision=27337
* HtmlForm.cs: default value for Enctype is "".
* HtmlInputFile.cs: if no one set the encoding type for the HtmlForm,
we set it to "multipart/form-data". Fixes bug #58359.
svn path=/trunk/mcs/; revision=27332
* System.Web.Compilation/BaseCompiler.cs: use DynamicBase for the output
assemblies.
* System.Web.Configuration/CompilationConfiguration.cs: a null value is
ok for TempDirectory.
* System.Web.Hosting/AppDomainFactory.cs: set the Dynamic base for the
AppDomain.
Fixes bug #57726.
svn path=/trunk/mcs/; revision=27329
* AppDomainSetup.cs: don't throw an exception if dynamic_base has not
been set. Just return null as MS. Fixes bug #58120.
svn path=/trunk/mcs/; revision=27326
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
o InvalidOperationException when calling the Hash property and hash value is nul
l. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27299
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception to InvalidOperationException when calling the Hash property and hash value is null. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27298
* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
corcompare. Both throw a NotImplementedException.
* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
overloads) to please corcompare. All throw a NotImplementedException.
svn path=/trunk/mcs/; revision=27293
* mono-mutex.c (mono_mutex_unlock): Return EPERM when the current
thread doesn't own the mutex, rather than assert()ing.
svn path=/trunk/mono/; revision=27292
In .NET 1.0, encoded null elements use the attribute null="1", while in
1.1 the attribute is nil="true".
* XmlTypeMapping.cs: Little fix for nested classes.
svn path=/trunk/mcs/; revision=27279
* Utils.cs:
Finally implement fully method CopyArray
Progression: all nunit-tests for this method now pass on Mono, as they do in .NET
svn path=/trunk/mcs/; revision=27278
* XmlCanonicalizer.cs :
Element namespace is not XPath-selected(selectable) namespace nodes
and that should be outputted.
Don't return null for empty output.
svn path=/trunk/mcs/; revision=27270
* XmlDsigBase64Transform.cs :
LoadInput() should retrieve all the descendants.
GetOutput() should handle nodes without digging into child nodes.
svn path=/trunk/mcs/; revision=27269
* Environement.cs: Removed two security attributes for CurrentDirectory
that weren't documented (and anyway we don't support them).
svn path=/trunk/mcs/; revision=27268
* DataRow.cs : Added DataElement property to avoid storing every row-
element mapping. It stored even for nodes that should be removed.
svn path=/trunk/mcs/; revision=27266
* XmlDataDocument.cs : Removed row-element mapping. Just use new
DataRow.DataElement property. Added/removed some comments.
svn path=/trunk/mcs/; revision=27251
* XsdValidatingReaderTests.cs : Ignore TestNamespaceFalse(). It is not
kind of thing that should be supported.
* XmlValidatingReaderTests.cs : commented a bit.
svn path=/trunk/mcs/; revision=27238
* XmlSchema.cs : Removed FIXME. No PSVI required.
* XmlSchemaAll.cs : Removed FIXME. It was not done.
* XmlSchemaAttributeGroupRef.cs : Removed FIXME. It can be annotated.
* XmlSchemaChoice.cs : not FIXME but LAMESPEC.
* XmlSchemaSimpleTypeRestriction.cs : Added check for non
XmlSchemaFacet items on Compile(). Thus removed FIXME.
* XmlSchemaUtil.cs : Fixed SplitList to handle sequential spaces.
Thus removed FIXME.
* XmlSchemaObjectTable. cs: modified to use HybridDictionary (mostly
for avoiding iterator order difference).
svn path=/trunk/mcs/; revision=27232
* SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
* SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
* SQLDebugging.cs - Added new file with a TODO tag
svn path=/trunk/mcs/; revision=27229
* DefaultContext.cs : Removed MonoTODO. done.
* Expression.cs : handle XPathResultType.Navigator in some places and
removed MonoTODO. Mark MonoTODO with explicit comments (though they
are mostly pointing out possibilities of optimization).
Removed extra check that depended on the old bugs.
* XPathResultType.cs : Fixed .Navigator that had the same value as
.String.
svn path=/trunk/mcs/; revision=27224
* System.Net/HttpWebRequest.cs: added 3 missing properties for 1.1. They
are not used yet.
* System.Net/NetConfig.cs: added MaxResponseHeadersLength field.
* System.Net/ServicePoint.cs:
* System.Net/ServicePointManager.cs: added missing properties for 1.1.
* System.Net.Configuration/NetConfigurationHandler.cs: process the
httpWebRequest node too. Better error checking.
svn path=/trunk/mcs/; revision=27211
* IsolatedStorage.cs: More details on MonoTODO. Throw exceptions on
AssemblyIdentity and DomainIdentity properties.
* IsolatedStorageFile.cs: More details on MonoTODO.
* IsolatedStorageFileStream.cs: Removed MonoTODO on class. Now use
Path.Combine to build filenames (constructor) and throw an exception
when we try to get the handle (as documented).
svn path=/trunk/mcs/; revision=27208
* XmlDataDocument.cs : Radical design change.
- GetElementFromRow() must return "detached" element, even if it is
not added to table's Rows.
- Introduced XmlDataElement class to map element (this class itself)
and DataRow _always_ . It is impossible to map *all* DataRows
to/from elements only in XmlDataDocument API, since DataRow can
be created separate from it (i.e. by table.NewRow()).
- Removed unreliable GetElementsByTagName() dependency from most
of the code, since users might create elements that has the same
name of any tables (that is possible especially unmapped elements).
- Adding/Removing delegates on every event action is unnecessary.
Use just flags.
- For Load(), just using base.Load() will do most of the job.
- Attributes and SimpleContents are not handled properly.
"Removed" and "Rollback" events are still TODO.
svn path=/trunk/mcs/; revision=27194
* XmlDataDocumentTest.cs : use Environment.NewLine. Added more tests.
* XmlDataDocumentTest2.cs : Test nested relationship, detached row
state, and unmapped element as well.
svn path=/trunk/mcs/; revision=27192
* GroupCollection.cs:
* MatchCollection.cs:
* CaptureCollection.cs: Moved GroupCollection, MatchCollection and
CaptureCollection so that they no longer inherit from the
non-standard RegexCollectionBase class. Fixes the API difference.
svn path=/trunk/mcs/; revision=27175
by the handler factory to check if the target method needs session or not.
Also factorized error handling in WriteError().
* HttpSoapWebServiceHandler.cs: Added GetRequestMethod(), for the same
reason. Assign the context to the WebService just before invoking the
method.
* SoapHttpClientProtocol.cs: Use helper method to create the xml writer.
* WebServiceHandler.cs: Added virtual GetRequestMethod().
* WebServiceHandlerFactory.cs: Use an http handler wrapper when the target
method requires session support.
* WebServiceHelper.cs: Added some helper methods.
svn path=/trunk/mcs/; revision=27168
* PKCS12.cs: Removed file exists check from SaveToFile(). Removed
Equals() and GetHashCode(). Clone the original iteration count.
svn path=/trunk/mcs/; revision=27166
* services.xml, wsdl.ignore: Updated.
* wstest.cs: Small improvements.
* external/BankCodeEJBHomeTest.cs, external/GlobalWeatherTest.cs,
external/HPcatalogTest.cs, external/IODCODESPOSTAUXTest.cs,
external/TemperatureServiceTest.cs, localhost/ConvDocEncBarTest.cs,
localhost/ConvDocEncWraTest.cs, localhost/ConvDocLitBarTest.cs,
localhost/ConvDocLitWraTest.cs, localhost/ConvRpcTest.cs
Changed namespace to make it easier to select tests in gnunit.
* localhost/ConvRpcTest.cs: Added test for method that returns "Object".
* server/ConvDocEncWra.asmx, ConvDocLitWra.asmx, ConvRpc.asmx: New test
methods.
* server/web.config: Added version to vsdisco handler type name.
* client/localhost/DataServiceTest.cs
client/localhost/DuplicateArrayTestTest.cs
client/localhost/SessionCounterTest.cs
server/DataService.asmx
server/DuplicateArrayTest.asmx
server/SessionCounter.asmx: New tests.
svn path=/trunk/mcs/; revision=27165
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
* System.Web.dll.sources: added Html32TextWriter.
* System.Web.Compilation/AspGenerator.cs: ObjectTagBuilder do not
override HasBody now.
* System.Web.UI/Html32TextWriter.cs: stub contributed by Matthijs ter
Woord [meddochat].
* System.Web.UI/ObjectTagBuilder.cs: remove the HasBody override as MS
does not have that.
This makes System.Web free of errors, missing or extra stuff in the
class status pages.
svn path=/trunk/mcs/; revision=27144
* attribute.cs:
(Attribute.GetAttributeTargets): New method. Gets AttributeTargets
for attribute.
(Attribute.IsClsCompliaceRequired): Moved to base for better
accesibility.
(Attribute.UsageAttribute): New property for AttributeUsageAttribute
when attribute is AttributeUsageAttribute.
(Attribute.GetValidTargets): Simplified.
(Attribute.GetAttributeUsage): New method returns AttributeUsage
attribute for this type.
(Attribute.ApplyAttributes): Method renamed to Emit and make
non-static.
(GlobalAttributeSection): New class for special handling of global
attributes (assembly, module).
(AttributeSection.Emit): New method.
* class.cs: Implemented Attributable abstract methods.
(MethodCore.LabelParameters): Moved to Parameter class.
(Accessor): Is back simple class.
(PropertyMethod): Implemented Attributable abstract class.
(DelegateMethod): Implemented Attributable abstract class.
(Event): New constructor for disctintion between normal Event
and Event with accessors.
* cs-parser.jay: Used new Event ctor and GlobalAttributeSection.
* codegen.cs, const.cs, decl.cs, delegate.cs:
(CommonAssemblyModulClass): Implemented Attributable abstract class
and simplified.
* enum.cs: Implement IAttributeSupport interface.
(EnumMember): New class for emum members. Implemented Attributable
abstract class
* parameter.cs:
(ParameterBase): Is abstract.
(ReturnParameter): New class for easier [return:] attribute handling.
* typemanager.cs: Removed builder_to_attr.
svn path=/trunk/mcs/; revision=27143
* Makefile: disable net_2_0 on windows. It doesn't build. Don't
try to build net_1_0 and net_2_0 if we provide a PROFILE=xxx in the
command line.
svn path=/trunk/mcs/; revision=27137
* metadata/Makefile.am: link to ../os/libmonoos.la on windows.
* metadata/assembly.c:
-If MONO_DEBUG, warn about non-existing directories in
MONO_PATH.
-Added mono_assembly_getrootdir() that replaces MONO_ASSEMBLIES
compile time variable.
-Removed init_default_path and call mono_set_rootdir from
libmonoos.a instead (windows only).
* metadata/assembly.h: declare mono_assembly_getrootdir().
* metadata/domain.c:
* metadata/icall.c: use mono_assembly_getrootdir() instead of
MONO_ASSEMBLIES.
* metadata/loader.c: s/getenv/g_getenv/
* os/win32/util.c: the path from GetModuleFileName is UTF-16.
svn path=/trunk/mono/; revision=27134
* platforms/win32.make: Define a PLATFORM_PATH_SEPARATOR used for
separating paths in env vars. (ie MONO_PATH).
* profiles/net_2_0.make: Always use gmcs for building the 2.0
libraries. corlib is the first lib built and it will build
gmcs.
svn path=/trunk/mcs/; revision=27126
* marshal.{h,c}: Add support for UnmanagedType.AsAny.
* marshal.c: Use mono_metadata_signature_{alloc,dup} where appropriate.
* metadata.h: Add new marshalling conversions.
* metadata.h metadata.c (mono_metadata_signature_dup): New helper function.
svn path=/trunk/mono/; revision=27122
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
- Added fix for better handling of exceptions when
building the X509 Certificate chain.
svn path=/trunk/mcs/; revision=27117
* Timer.cs: if AutoReset, disable the timer before adding the callback
to the ThreadPool. Patch by Tim Fries <[email protected]>. Fixes bug
#57993.
svn path=/trunk/mcs/; revision=27114
* XmlDataInferenceLoader.cs :
It now requires XmlDocument as input. Improved identification of
DataSet element. Removed extra lines.
Moved boresome design notes to bottom of the source and
added standalone runnable driver (not included on build).
* DataSet.cs :
Update with related to the change above.
WriteXml() should call Flush() after writing. This fixes bug #58327.
* XmlSchemaDataImporter.cs :
Improved indentification of DataSet element.
svn path=/trunk/mcs/; revision=27111
* shared.c (_wapi_shm_attach): Cope when a previous daemon startup
attempt failed, leaving shared files that look like a daemon is
still starting.
svn path=/trunk/mono/; revision=27097
* SoapDocumentationHandler.cs: added internal property to get the page
handler when available.
* WebServiceHandlerFactory.cs: wrap the documentation handler in a class
that implements IRequiresSessionState and, if requested,
IReadOnlySessionState, so that we can use Sesion object in the default
WSDL help generator.
svn path=/trunk/mcs/; revision=27092
* reflection.c (mono_reflection_get_type): Lookup the type in all
modules of a multi-module assembly. Fixes#58291.
svn path=/trunk/mono/; revision=27091
* Mono.Security_test.dll.sources: Added unit tests for Mono.Security.
Protocol.Ntlm.MessabeBase and Mono.Security.ASN1Convert.
svn path=/trunk/mcs/; revision=27090
* ARC4ManagedTest.cs: Added missing unit tests for complete coverage.
Completed convertion to NUnit 2.
* CryptoConvertTest.cs: Added/modified unit tests for better coverage.
* MD2ManagedTest.cs: Added unit tests for better coverage.
* MD2Test.cs: Added unit tests for better coverage.
* MD4ManagedTest.cs: Added unit tests for better coverage.
* MD4Test.cs: Added unit tests for better coverage.
* PKCS8.cs: Added unit tests for better coverage.
svn path=/trunk/mcs/; revision=27087
* ChallengeResponseTest.cs: Added new unit tests for better coverage.
* MessageBaseTest.cs: New. Unit tests for the base abstract class.
* Type2MessageTest.cs: Added new unit tests for better coverage.
* Type3MessageTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27086
* PrivateKeyTest.cs: Added new unit tests for better coverage.
* SoftwarePublisherCertificateTest.cs: Added new unit tests for better
coverage.
svn path=/trunk/mcs/; revision=27085
* ASN1ConvertTest.cs: New. Unit tests for ASN.1 convertions.
* StrongNameTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27084
* ASN1Convert.cs: Added better exceptions. Fixed bugs found by new
unit tests.
* StrongName.cs: Fixed GetBytes() when creating a new strongname.
Removed unrequired :base() from a constructor. Removed debugging
Console.WriteLine.
svn path=/trunk/mcs/; revision=27082
* attribute.cs (Attribute.GetPositionalValue): New function.
* class.cs (TypeContainer.VerifyMembers): New function.
(TypeContainer.Emit): Use it.
(ClassOrStruct): New base class for Class and Struct.
(ClassOrStruct.ApplyAttributeBuilder): New function. Note if
StructLayout(LayoutKind.Explicit) was ascribed to the struct or
class.
(ClassOrStruct.VerifyMembers): If the struct is explicitly laid out,
then each non-static field should have a FieldOffset attribute.
Otherwise, none of the fields should have a FieldOffset attribute.
* rootcontext.cs (RootContext.ResolveCore): Resolve StructLayout
and FieldOffset attributes.
* typemanager.cs (TypeManager.struct_layout_attribute_type)
(TypeManager.field_offset_attribute_type): New core types.
(TypeManager.InitCoreTypes): Initialize them.
svn path=/trunk/mcs/; revision=27080
avoids throwing the Abort exception).
In mono_thread_manage, don't continue with the shutdown until all aborted
threads have actually stopped.
svn path=/trunk/mono/; revision=27076
(test-multi-local): Add logging of errors.
* runtest.pl: Change $errors and $warnings to keep track of lines
on which errors are supposed to occur.
svn path=/trunk/mcs/; revision=27068
* SqlMoney.cs : Handle fixed digits correctly.
Round decimal value before casting into other numeric types.
* SqlInt16.cs,
SqlInt32.cs,
SqlInt64.cs : Round SqlMoney decimal value before casting into them.
* SqlDateTime.cs :
Added range check.
Years and months were ignored in some .ctor().
Return invariant culture string in ToString().
Return null for operator - when operand is null.
svn path=/trunk/mcs/; revision=27067
* DataSetReadXmlSchemaTest.cs : SingleElementTreatmentDifference() was
incorrect. DataSet element is assumed only if there is only one
global element.
* DataSetReadXmlTest.cs : Added error-reported test case.
* DataSetInferXmlSchemaTest.cs : Modified more tests not to compare
Ordinal for non-specified columns (that shouldn't be significant).
svn path=/trunk/mcs/; revision=27065
* XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
node can be it as well) and added check for Attributes existence
in GetAttribute() and MoveTo*Attribute().
svn path=/trunk/mcs/; revision=27022
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
e meaningful exceptions instead of throw NpgsqlException which are now exclusive
ly to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27009
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws more meaningful exceptions instead of throw NpgsqlException which are now exclusively to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27008
* monop.cs: seperate assembly loading into .GetAssembly method,
fail gracefully, and support loading assemblies from absolute and
relative paths
support /r: as well as -r:
svn path=/trunk/mcs/; revision=27007
* FileSystemWatcher.cs : csc build fix. Duplicate name between class
field and local variable. (already filed in bugzilla #47991).
svn path=/trunk/mcs/; revision=26997
to fix signature of OdbcConnection
* OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in
order to fix signature of OdbcConnection
* OdbcConnection.cs: Signature fixes: removed DataReader property,
added setter for ConnectionTimeout, made transaction internal
* OdbcParameter.cs: reduced accessibility of Bind method to
internal, added setter for IsNullable
* OdbcParameterCollection.cs: made default ctor and Bind method
internal
svn path=/trunk/mcs/; revision=26991
* SqlDataSourceCommandEventArgs:
* XmlDataSource.cs : removed temporary workarounds for CLS
compliance as System.Data is now CLS compliant
svn path=/trunk/mcs/; revision=26983
* io.c: translate from GFileError to errno codes and don't free
variables right after calling mono_io_scandir, as we may overwrite
errno value.
svn path=/trunk/mono/; revision=26979
* DefaultWatcher.cs:
* FAMWatcher.cs: use MangledFilter instead of Filter.
* FileSystemWatcher.cs: added MangledFilter and finalizer.
* SearchPattern.cs: fixed the case when the pattern is "*".
svn path=/trunk/mcs/; revision=26978
* io.c: g_dir_open return ENOENT for directories on which we don't have
read/execute permission, while returning EPERM for anything below those.
So, change ENOENT by EPERM if the directory exists.
svn path=/trunk/mono/; revision=26970
* Makefile: build NUnit if the dll is not found when running
'make test'. Use INTERNAL_MCS to build the tests as csc fails miserably
to compile them.
svn path=/trunk/mcs/; revision=26968
* DSACryptoServiceProvider.cs: Fixed SignData to hash data before
signing it (thanks to Jens Thiel for spotting this).
svn path=/trunk/mcs/; revision=26932
* DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
(was badly tested) and simplified test to reduce key pair generations.
svn path=/trunk/mcs/; revision=26931
* DataSet.cs :
In WriteXmlSchema(), when complex type contains simple type content
attributes must not added to XmlSchemaComplexType directly. It
causes schema compilation error.
DataRelation should not be output when related columns are hidden.
svn path=/trunk/mcs/; revision=26930
(ves_icall_System_Globalization_CultureInfo_internal_get_cultures):
Fix array construction, add bailout if the length is 0.
svn path=/trunk/mono/; revision=26922
* PasswordDerivceBytesTest.cs: Added new tests to complete
coverage.
* RSACryptoServiceProviderTest.cs: Added new tests to complete
coverage.
svn path=/trunk/mcs/; revision=26919
* io.c (FindFirstFile): Comment out a windows-compatibility check
that breaks when directories have metachars in their names.
Workaround for bug 58116.
svn path=/trunk/mono/; revision=26912
* ToBase64Transform.cs: Input block may be smaller than a full block
when calling TransformFinalBlock (fix 2 CryptoStream unit tests).
svn path=/trunk/mcs/; revision=26911
* ToBase64TransformTest.cs: Added a (legal) test where the final
transform receive data smaller than it's input block (padding).
svn path=/trunk/mcs/; revision=26910
* socket-io.c (addrinfo_to_IPHostEntry): Don't crash if the
machine doesn't have a DNS entry. Patch by Urs Muff
([email protected]), fixes bug 57928.
svn path=/trunk/mono/; revision=26908
* CipherMode.cs: Moved XML comments to monodoc.
* CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
* CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
* DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
* ICryptoTransform.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
* FromBase64Transform.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26907
* Convert.cs: ToBase64CharArray method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26906
* SequentialSearchPrimeGeneratorBase.cs: Start the smallPrime vector at
10 (not 9) as 29 was just tested (more for correctness than speed gain).
svn path=/trunk/mcs/; revision=26902
* PrimalityTests.cs: Applying optimization from HAC section 4.50
(base == 2) for a 30% gain in primality testing (medium confidence).
svn path=/trunk/mcs/; revision=26901
* BigInteger.cs: Faster scan of smallPrimes in IsProbablePrime.
Commented the methods OddModTwoPow and EvenModTwoPow as they are broken
in some cases (well tested primes test case).
svn path=/trunk/mcs/; revision=26900
Add a 'complain' parameter to silence errors.
(Attribute.Resolve): Update to changes. Put in sanity check to catch
silently overlooked type-resolutions.
(Attribute.ScanForIndexerName, Attribute.DefinePInvokeMethod): Update
to reflect changes.
(Attributes.Search): New function.
(Attributes.Contains, Attributes.GetClsCompliantAttribute): Use Search.
(Attributes.GetAttributeFullName): Remove hack.
* class.cs (MethodCore.LabelParameters, MethodData.ApplyAttributes):
Update to reflect changes.
* codegen.cs (CommonAssemblyModulClass.GetClsCompliantAttribute):
Use Attributes.Search instead of nested loops.
svn path=/trunk/mcs/; revision=26899
ImportMembersMapping call. This fixes bug #58112. The problem is that
it imported two different arrays (only different in the array item
namespace) with the same name. Not sure what was this Reset needed for,
everyting seems to work without it.
svn path=/trunk/mcs/; revision=26893
* XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
also expected to do ReadXml(), but I will remove that feature and
support column reordering).
* XmlSchemaDataImporter.cs : Always initialize dataset name.
Always set Nested and primary key for parent table.
* XmlDataReader.cs : Now it is used.
Top level element might not match to dataset name nor any table
name, but still possible to read content tables.
Handle empty element correctly in some places.
Handle Fragment mode (read up XmlReader to the end).
* DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
XmlDataInferenceLoader and XmlDataReader.
svn path=/trunk/mcs/; revision=26889
* Makefile.am (bootstrap): New target for building from CVS. New
improved version of 'fullbuild' -- does not install any files.
(fullbuild): Obsolete target. Bootstraps and installs tree.
(mcs-tree-safe-build,xinstall-runtime,mcs-rest,remove-binaries):
Removed.
(stage1,stage1-mcs,stage1-mono,stage2,stage3)
(tmpinst-dir,tmpinst-runtime): New targets used to implement a
two-stage bootstrap.
svn path=/trunk/mono/; revision=26884
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to
complete coverage.
* RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete
coverage.
svn path=/trunk/mcs/; revision=26860
* Directory.cs: use the real wildcard for file names as it is supported
now in io-layer. SearhPattern is not needed now.
svn path=/trunk/mcs/; revision=26856
* Convert.cs: ToBase64String method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26850
* Rijndael.cs: Source clean up.
* RijndaelManaged.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
svn path=/trunk/mcs/; revision=26849
* RNGCryptoServiceProvider.cs: Removed TODO and documented them in
mono doc. Now call runtime when a seed is provided.
* RSA.cs: Added globalization to exceptions. Removed check for
<RSAKeyValue> as it is not checked by MS implementation.
* SignatureDescription.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Removed TODO and added notes to monodoc.
* SymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
* ToBase64Tranform.cs: Added missing exception handling. Moved XML
comments to monodoc.
svn path=/trunk/mcs/; revision=26848
* SHA1.cs: Moved XML comments to monodoc.
* SHA1CryptoServiceProvider.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA256.cs: Moved XML comments to monodoc.
* SHA256Managed.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA384.cs: Moved XML comments to monodoc.
* SHA512.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26845
* RC2.cs: Fixed KeySize to change it's value and the EffectiveKeySize
when the key is changed.
* RC2CryptoServiceProvider.cs: Added globalization to exceptions.
Fixed the KeySize must be equal with EffectiveKeySize to match MS
implementation.
svn path=/trunk/mcs/; revision=26844
* mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
more portable.
* mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
svn path=/trunk/mono/; revision=26839
When deserializing an encoded method response, if the return type of the
method is Object, assign to it the first element of the message, whatever
it is.
* XmlSerializationReader.cs:
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
the imported member.
* TypeTranslator.cs: Added method to safely get a primitive TypeData.
* XmlSerializationReader.cs: Don't throw an exception when the CLR type for
a given xsi type is not found. Just read it as primitive type.
* XmlTypeMapMember.cs: Added IsReturnValue property.
* XmlTypeMapping.cs: Added ReturnMember property.
* XmlSerializer.cs: Reference System.Data when compiling the serializer.
svn path=/trunk/mcs/; revision=26836
* corlib_test.dll.sources: Added SymmetricAlgorithm2Test,
ToBaseTransformTest, TripleDESTest unit tests to the build.
svn path=/trunk/mcs/; revision=26834
* RNGCryptoServiceProviderTest.cs: Updated unit tests for exception
testing.
* RSATest.cs: Updated unit tests for importing XML key pairs.
* SymmetricAlgorithm2Test.cs: New. Non generated unit test for better
coverage (like exception testing).
* ToBase64TransformTest.cs: New. Unit tests to complete coverage of
ToBase64Transform.
* TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
svn path=/trunk/mcs/; revision=26833
* DataSet.cs :
Eliminated CRLF injection.
More clear message in Clear().
Updates reflecting XmlSchemaDataImporter change.
Added duplicate check for XmlSerializerNamespaces in BuildSchema().
Don't use xmlns attribute for UnhandledAttributes (its not mandatory
but that depends on different behavior from ms.net).
Set locale also for DataTable.
Add xs:element only when target namespace matches to the
element's namespace. Otherwise, add xs:import for external namespace.
Put xs:sequence for dataset element's particle _only when_ actual
contents exist.
svn path=/trunk/mcs/; revision=26832
* ColorTranslator.cs: Fixed the existing methods and implemented
the missing methods.
* ColorConverter.cs: Fixed the existing methods and implemented
the missing methods. Also, fixed coding style.
svn path=/trunk/mcs/; revision=26831
* RC2Test.cs: Converted to NUnit 2. Uncommented some tests that throw
exceptions to test exception handling (and get more coverage).
* SHA256Test.cs: Corrected Setup attribtue (was [Test]).
svn path=/trunk/mcs/; revision=26830
* XmlDataReader.cs : Added. This class will work better when our
schema inference and schema read engine gets improved. (It contains
standalone testable Driver class.)
svn path=/trunk/mcs/; revision=26829
* ConstraintCollectionTest.cs : Table name should not be the same as
for the purpose of this test.
* DataSetReadXmlSchemaTest.cs : Added more tests based on schema files.
* DataSetTest.cs : Reordered attributes to pass test in
WriteDifferentNamespaceSchema().
svn path=/trunk/mcs/; revision=26822
Before the change the Enabled property wasn't updated when a postback
event was raised.
fixed SelectedIndex property implementation in ListControl.
Prevents throwing ArgumentOutOfRangeException (that should not be thrown),
when the list is empty.
svn path=/trunk/mcs/; revision=26817
* ManagedXslTransform.cs : For Stream input, use StreamWriter for
input to GenericOutputter. Passing XmlWriter causes unexpected
xml declaration output.
svn path=/trunk/mcs/; revision=26816
* NewMonoXSD.cs : Added new /generator:typename(,assemblyfile) option
support that enables users to use any CodeDomProvider.
Added VB support (/language:VB).
svn path=/trunk/mcs/; revision=26812
* mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
long reg allocation in any reg (not only eax:edx) and implemented
long shl/shr ops in asm instead of helpers.
svn path=/trunk/mono/; revision=26811
* rand.c|h: Added new icall for (optionally) seeding the PRNG. This
does nothing for now (not required for Linux/Windows) but the class
library can call it (and a newer or modified runtime could need it).
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26802
* io-private.h: 'namelist' is now a gchar ** in _WapiHandlePrivate_find.
* io.c: implemented scandir using glib functions.
svn path=/trunk/mono/; revision=26801
* AspParser.cs: indent a few lines.
* AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
attribute value. This way we can simulate reading 2 characters ahead
(one in ungetc and the other in Peek) and work with values like
text/javascript. Fixes bug #57302.
svn path=/trunk/mcs/; revision=26798
* ConfigXmlDocument.cs: removed method that was supposed to be internal.
* ConfigurationSettings.cs: instead of calling the overload that doesn't
exist in MS, use what we have when loading an external file.
svn path=/trunk/mcs/; revision=26793
* ForeignKeyConstraintTest.cs : Made tests pass under MS.NET 1.1.
Don't catch every kind of exception. That does nothing but keep us
away from the exact error location.
* DataSetTest.cs : Make sure that we read schema correctly, before
testing WriteXmlSchema.
svn path=/trunk/mcs/; revision=26786
* System.Web.Services.dll.sources: removed HttpGetWebServiceHandler and
HttpPostWebServiceHandler.
* System.Web.Services.Protocols/HttpGetWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpPostWebServiceHandler.cs: removed.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: changed
ctor parameters and added EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: added EnableSession
virtual property.
* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: added a new
handler that implements IRequiresSessionState used for HttpGet and
HttpPost.
(GetHandler): for HttpGet and HttpPost check if the method requires to
have a Session object and use the new SimpleSyncSessionHandler in that
case.
Still missing proper session handler for SOAP requests.
svn path=/trunk/mcs/; revision=26782
* HttpSessionState.cs: added Clone (), which makes and exact copy but
with a cloned SessionDictionary. When EnableSessionState is set to
ReadOnly, we can modify the collection, but changes are not propagated.
* ISessionHandler.cs: changed signature of UpdateContext().
* SessionDictionary.cs: added Clone.
* SessionInProcHandler.cs:
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: don't create a new session if the handler
do not require it. UpdateContext() now returns an HttpSessionState to
the module.
* SessionStateModule.cs: removed IsReadOnly as it is now passed as a
parameter to the session handler. If the session is read-only, clone
it so that it can be changed but changes are not kept.
In short, we don't create session objects when not required and we
honor the ReadOnly sessions.
svn path=/trunk/mcs/; revision=26781
* Environment.cs: Completed OSVersion property.
* Version.cs: Added internal CreateFromString() to "try" to build the
best version number form the specified string.
svn path=/trunk/mcs/; revision=26777
* environment.c|h: Added icall ves_icall_System_Environment_
GetOSVersionString to get the current OS version as a string.
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26776
* CustomDataClassGenerator.cs : Modified that DataSet contains each
DataTable field so that each table property can access them directly.
(plus, modified standalone code driver code: shouldn't affect)
svn path=/trunk/mcs/; revision=26775
* DataColumnCollectionTest.cs : catch only specific exception. Don't
rely on localizable error message.
* DataSetTest.cs : Attribute orders should not be significant, so
just hacked to match current implementation's order.
Added WriteNestedTableXml().
svn path=/trunk/mcs/; revision=26774
* HashAlgorithm.cs: Moved XML comments to monodoc. Added globalization
to exceptions.
* KeyedHashAlgorithm.cs: Added globalization to exceptions.
* KeySizes.cs: Moved XML comments to monodoc.
* MaskGenerationMethod.cs: Source clean up.
* MD5.cs: Moved XML comments to monodoc.
* MD5CryptoServiceProvider.cs: Removed CLSCompliance attributes from
private fields. Changed constants from enum to array. Zeroize data on
Dispose.
* PaddingMode.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Added globalization to exceptions. Removed
TODO and documented as "not supported" in MonoDoc.
* RandomNumberGenerator.cs: Source clean up.
svn path=/trunk/mcs/; revision=26773
* mini-sparc.h: Fix warnings.
* exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
stack.
* mini-exceptions.c (mono_handle_exception): Call the filter in a
separate statement for clarity.
svn path=/trunk/mono/; revision=26770
When reading an object using the typeof(object) map, an emty xsi:type
means that it has to read the contents into an XmlNode[].
* TypeData.cs: Return the correct full name for inner classes.
* XmlSchemaImporter.cs: Improved detection of types that represent
"anyType", and must be mapped to XmlElement, XmlNode or Object.
* XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
the correct namespace.
In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
not known.
svn path=/trunk/mcs/; revision=26761
* SHA256Managed.cs: Updated to use shared constants.
* SHA384Managed.cs: Updated to use shared constants.
* SHA512Managed.cs: Updated to use shared constants.
* SHAConstants.cs: New. Shared constants for SHA implementations.
svn path=/trunk/mcs/; revision=26759
* Base64Constants.cs: New. Convert code into tables for better base64
performance.
* FromBase64Transform.cs: Updated to use the new tables. Source code
cleanup.
* ToBase64Transform.cs: Updated to use the new tables. Added
globalization. Commented finalizer as it isn't required in this case.
svn path=/trunk/mcs/; revision=26753
* object.c (mono_class_compute_gc_descriptor): Fix warning.
* object.c (mono_runtime_invoke_array): Add an assert so null cannot be
passed when a valuetype is expected.
* object.c (mono_unhandled_exception): Only set the exit code if the
exception happens in the main thread. Fixes thread5.exe.
svn path=/trunk/mono/; revision=26741
* BuiltInDatatype.cs : added BUGGY_MS_COMPLIANT condition and that
handles ms-compatible properties.
* XmlSchemaComplexType.cs : ditto for ContentTypeParticle of xs:anyType.
Make sure ContentType for xs:anyType is Mixed.
* XmlSchemaUtil.cs : ditto for <xs:attribute use="prohibited" ..>
svn path=/trunk/mcs/; revision=26737
* XmlSchema.cs : Write() handles schema namespace for xmlserializer
(it does not look to be handled inside xmlserializer).
svn path=/trunk/mcs/; revision=26735
* XmlDsigBase64Transform.cs : LoadInputAsXmlNodeList() is testable.
* XmlDsigC14NTransformTest.cs : Ignore LoadInputAsXmlNodeList(); that
test premises incorrect namespace handling.
* XmlDsigXPathTransformTest.cs : Removed some FIXMEs (counting node
will give more expected results),
plus some noise on FunctionHereObsolete().
svn path=/trunk/mcs/; revision=26732
* SignedXml.cs,
Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
* XmlDsigBase64Transform.cs : Should not output the content of the
selected element nodes. Put text content only those text nodes are
in the node list.
* XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
* XmlDsigXsltTransform.cs : Use XmlResolver to load document and
to transform. Throw null reference exception explicitly when
the input was not loaded.
svn path=/trunk/mcs/; revision=26731
* XmlSchemaDataImporter.cs :
SimpleContent column support.
Annotated relation support.
Top-level element is counted only when its type is complex.
xs:anyType is no longer treated as complex type.
dataset existence is mandatory now.
Improved DataType and DefaultValue support.
Attribute namespace is properly handled now.
Prohibited attribute is now treated as hidden column.
Reject list or union simple type.
Still incomplete 1) to read relationship in some cases, 2) to
determine whether an element is dataset or table, 3) thus to
exclude extraneous column, 4) to remove extraneous *_Id column.
svn path=/trunk/mcs/; revision=26730
* DataTable.cs :
We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
serialization .ctor() (thus schema read/inference should be easier).
DataRowSorter should consider Table's Locale.
svn path=/trunk/mcs/; revision=26729
* ConstraintCollection.cs :
Use Table.CaseSensitive and Table.Locale to compare strings.
Duplicate constraint name exception does not occur under .NET 1.1.
svn path=/trunk/mcs/; revision=26727
* ConstraintCollectionTest.cs : uncommented some tests that should be
implemented until mono 1.0.
* ConstraintTest.cs : use ExpectedException. Don't expect localizable
error message.
* DataColumnTest.cs,
DataRelationTest.cs,
DataRowCollectionTest.cs : catch only specific type exception.
Don't rely on (test) localizable messages.
* DataSetAssertion.cs : We shouldn't expect exact column ordinals
when infering/reading the structures from documents/schemas.
svn path=/trunk/mcs/; revision=26726
* System.Web.Services/WebService.cs: added a HttpSessionState field
and a setter method. Session now returns null if EnableSession is not
set for the method invoked.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs: use
the session if the method has EnableSession set.
* System.Web.Services.Protocols/LogicalMethodInfo.cs: added
EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: set the Session
object of the WebService.
Fixes bug #57905 (needs the latest DefaultWsdlHelpGenerator.aspx).
svn path=/trunk/mcs/; revision=26722
* data/DefaultWsdlHelpGenerator.aspx: add any cookie in the request to
the request we do for the actual web service.
svn path=/trunk/mono/; revision=26721
* daemon.c (read_message): Return FALSE on error so the GSource
callback itself can return FALSE. Cures the infinite loop poll()
warning on MacosX.
* shared.c: Fix some daemon startup race conditions.
svn path=/trunk/mono/; revision=26704
* WebConfigurationSettings.cs: now it defaults to 'web.config' and if
not found, 'Web.config'. Don't throw exception if both exists. Thanks
to urs and dru for bugging me about this.
svn path=/trunk/mcs/; revision=26698
* configure.in: check for SIGEV_THREAD being defined before checking
for AIO support. Fixes compilation under FreeBSD.
svn path=/trunk/mono/; revision=26690
* interp.c (ves_exec_method_with_context): Disable explicit assignment
of 'esi' to the ip variable, since it causes register allocation errors
on some versions of gcc. Fixes#58010.
svn path=/trunk/mono/; revision=26689
JIT_SUPPORTED.
(install-data-local, uninstall-data-local): Run runtime with
libtool.
* runtime/net_2_0/Makefile.am: Likewise.
Report from Urs C Muff <[email protected]>.
svn path=/trunk/mono/; revision=26685
staticjobjectJNICALLNewLocalRef(JNIEnv*env,jobjectref){printf("JNI Function NewLocalRef is not implemented.\n");g_assert_not_reached();return0;}
staticjintJNICALLEnsureLocalCapacity(JNIEnv*env,jintcapacity){printf("JNI Function EnsureLocalCapacity is not implemented.\n");g_assert_not_reached();return0;}
staticjobjectJNICALLAllocObject(JNIEnv*env,jclassclazz){printf("JNI Function AllocObject is not implemented.\n");g_assert_not_reached();return0;}
staticjobjectJNICALLAllocObject(JNIEnv*env,jclassclazz){printf("JNI Function EnsureLocalCapacity is not implemented.\n");g_assert_not_reached();return0;}
staticvoidJNICALLGetBooleanArrayRegion(JNIEnv*env,jbooleanArrayarray,jsizestart,jsizel,jboolean*buf){printf("JNI Function GetBooleanArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetByteArrayRegion(JNIEnv*env,jbyteArrayarray,jsizestart,jsizelen,jbyte*buf){printf("JNI Function GetByteArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetCharArrayRegion(JNIEnv*env,jcharArrayarray,jsizestart,jsizelen,jchar*buf){printf("JNI Function GetCharArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetShortArrayRegion(JNIEnv*env,jshortArrayarray,jsizestart,jsizelen,jshort*buf){printf("JNI Function GetShortArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetIntArrayRegion(JNIEnv*env,jintArrayarray,jsizestart,jsizelen,jint*buf){printf("JNI Function GetIntArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetLongArrayRegion(JNIEnv*env,jlongArrayarray,jsizestart,jsizelen,jlong*buf){printf("JNI Function GetLongArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetFloatArrayRegion(JNIEnv*env,jfloatArrayarray,jsizestart,jsizelen,jfloat*buf){printf("JNI Function GetFloatArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetDoubleArrayRegion(JNIEnv*env,jdoubleArrayarray,jsizestart,jsizelen,jdouble*buf){printf("JNI Function GetDoubleArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetBooleanArrayRegion(JNIEnv*env,jbooleanArrayarray,jsizestart,jsizel,jboolean*buf){printf("JNI Function SetBooleanArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetByteArrayRegion(JNIEnv*env,jbyteArrayarray,jsizestart,jsizelen,jbyte*buf){printf("JNI Function SetByteArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetCharArrayRegion(JNIEnv*env,jcharArrayarray,jsizestart,jsizelen,jchar*buf){printf("JNI Function SetCharArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetShortArrayRegion(JNIEnv*env,jshortArrayarray,jsizestart,jsizelen,jshort*buf){printf("JNI Function SetShortArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetIntArrayRegion(JNIEnv*env,jintArrayarray,jsizestart,jsizelen,jint*buf){printf("JNI Function SetIntArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetLongArrayRegion(JNIEnv*env,jlongArrayarray,jsizestart,jsizelen,jlong*buf){printf("JNI Function SetLongArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetFloatArrayRegion(JNIEnv*env,jfloatArrayarray,jsizestart,jsizelen,jfloat*buf){printf("JNI Function SetFloatArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetDoubleArrayRegion(JNIEnv*env,jdoubleArrayarray,jsizestart,jsizelen,jdouble*buf){printf("JNI Function SetDoubleArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetStringRegion(JNIEnv*env,jstringstr,jsizestart,jsizelen,jchar*buf){printf("JNI Function GetStringRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetStringUTFRegion(JNIEnv*env,jstringstr,jsizestart,jsizelen,char*buf){printf("JNI Function GetStringUTFRegion is not implemented.\n");g_assert_not_reached();}
staticvoid*JNICALLGetPrimitiveArrayCritical(JNIEnv*env,jarrayarray,jboolean*isCopy){printf("JNI Function GetPrimitiveArrayCritical is not implemented.\n");g_assert_not_reached();returnNULL;}
staticvoidJNICALLReleasePrimitiveArrayCritical(JNIEnv*env,jarrayarray,void*carray,jintmode){printf("JNI Function ReleasePrimitiveArrayCritical is not implemented.\n");g_assert_not_reached();}
staticconstjchar*JNICALLGetStringCritical(JNIEnv*env,jstringstring,jboolean*isCopy){printf("JNI Function GetStringCritical is not implemented.\n");g_assert_not_reached();returnNULL;}
staticvoidJNICALLReleaseStringCritical(JNIEnv*env,jstringstring,constjchar*cstring){printf("JNI Function ReleaseStringCritical is not implemented.\n");g_assert_not_reached();}
staticjweakJNICALLNewWeakGlobalRef(JNIEnv*env,jobjectobj){printf("JNI Function NewWeakGlobalRef is not implemented.\n");g_assert_not_reached();return0;}
staticvoidJNICALLDeleteWeakGlobalRef(JNIEnv*env,jweakref){printf("JNI Function DeleteWeakGlobalRef is not implemented.\n");g_assert_not_reached();}
@@ -49,6 +49,9 @@ Specifies the namespace of the XML schema element for which a class or a dataset
.I"/language:name""/l:name"
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual Basic.NET).
.TP
.I"/generator:type,assembly""/g:type,assembly"
Indicates xsd.exe to use custom CodeDomProvider to generate code. The type name must be full name. Assembly name is a local file name that is going to be loaded. The specified Type must have the default constructor.
.TP
.I"/outputdir:path""/o:path"
Specifies the directory where to generate the code or schemas.
* 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
* 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
Each makefile follows the same pattern: it does some setup, includes
the standard make rules, and provides rules for six standard targets:
the standard make rules, and provides rules for seven standard targets:
all, install, test, run-test, clean, and dist.
"Some setup" is defining two variables: $(thisdir) and
@@ -57,7 +60,7 @@ $(SUBDIRS). $(thisdir) is the directory that the makefile lives in,
relative to the top directory (ie, class/corlib) and $(SUBDIRS)
defines the subdirectories that should be built in.
The six targets do the following:
The seven targets do the following:
* all-local builds whatever someone would expect to be built
when they just type 'make'. Most likely Foo.dll or Foo.exe
@@ -75,6 +78,8 @@ target. The idea is that 'make run-test' from the toplevel should be
able to proceed unsupervised and test everything that can be tested in
such a manner.
* run-test-ondotnet-local is a variant of run-test-local. It is used only to validate if our tests themselves works fine under Microsoft runtime (on Windows). Basically, in this target, we should not use $(TEST_RUNTIME) to test our libraries.
* clean-local removes built files; 'make clean' should leave
only files that go into a distribution tarball. (But it is not necessarily
true that all files that go into a tarball need to be left after a make clean.)
MySql - Fixed ConnectionSTring editor dialog (thanks marco p (pomarc))
Common - UserId now supported in connection strings (thanks Jeff Neeley)
MySql - Attempting to create a parameter that is not input throws an exception (thanks Ryan Gregg)
11/29/2003
MySql - Added much documentation
11/26/2003
MySql - checked in new MultiHostStream capability. Big thanks to Dan Guisinger for this. he originally submitted the code and idea of supporting multiple machines on the connect string.
11/25/2003
MySql - Added alot of documentation. Still alot to do.
11/24/2003
MySql - Fixed speed issue with 0.73
11/14/2003
MySql - changed to Thread.Sleep(0) in MySqlDataStream to help optimize the case where it doesn't need to wait (thanks Todd German)
11/1/2003
MySql - Prepopulating the idlepools to MinPoolSize
10/31/2003
MySql - Fixed MySqlPool deadlock condition as well as stupid bug where CreateNewPooledConnection
was not ever adding new connections to the pool.
Also fixed MySqlStream.ReadBytes and ReadByte to not use TicksPerSecond which does not appear
to always be right.
(thanks Matthew J. Peddlesden)
MySql - Fix for precision and scale (thanks Matthew J. Peddlesden)
10/28/2003
MySql - Added Thread.Sleep(1) to stream reading methods to be more cpu friendly (thanks Sean McGinnis)
10/24/2003
MySql - Fixed problem where ExecuteReader would sometime return null (thanks Lloyd Dupont )
10/17/2003
MySql - Fixed major bug with null field handling (thanks Naucki)
10/15/2003
MySql - enclosed queries for max_allowed_packet and characterset inside try catch (and set defaults)
MySql - fixed problem where socket was not getting closed properly (thanks Steve!)
10/14/2003
MySql - Fixed problem where ExecuteNonQuery was not always returning the right value
10/13/2003
MySql - Fixed InternalConnection to not use @@session.max_allowed_packet but use @@max_allowed_packet. (Thanks Miguel)
10/12/2003
MySql - Added many new XML doc lines
10/10/2003
MySql - Fixed sql parsing to not send empty queries (thanks Rory)
MySql - Fixed problem where the reader was not unpeeking the packet on close
MySql - Fixed problem where user variables were not being handled (thanks Sami Vaaraniemi)
MySql - Fixed loop checking in the MySqlPool (thanks Steve M. Brown)
10/7/2003
MySql - Fixed ParameterCollection.Add method to match SqlClient (thanks Joshua Mouch)
Common & MySql - Fixed ConnectionSTring parsing to handle no and yes for boolean and not lowercase values (thanks Naucki)
10/3/2003
MySql - Added InternalConnection class, changes to pooling
Common - Implemented Persist Security Info
9/26/2003
Common - Added security.cs and version.cs to project
9/25/2003
MySql - Fixed DateTime handling in Parameter.cs (thanks Burkhard Perkens-Golomb)
MySql - Fixed parameter serialization where some types would throw a cast exception
MySql - Fixed DataReader to convert all returned values to prevent casting errors (thanks Keith Murray)
MySql - Added code to Command.ExecuteReader to return null if the initial SQL command throws an exception (thanks Burkhard Perkens-Golomb)
9/24/2003
MySql - Fixed ExecuteScalar bug introduced with restructure
9/23/2003
MySql - Restructure to allow for LOCAL DATA INFILE and better sequencing of packets
MySql - Fixed several bugs related to restructure.
9/10/2003
MySql - Early work done to support more secure passwords in Mysql 4.1. Old passwords in 4.1 not supported yet
8/22/2003
MySql- Parameters appearing after system parameters are now handled correctly (Adam M. (adammil))
MySql - strings can now be assigned directly to blob fields (Adam M.)
8/20/2003
MySql - Fixed float parameters (thanks Pent)
8/7/2003
MySql - Improved Parameter ctor and ParameterCollection.Add methods to better match SqlClient (thx Joshua Mouch )
MySql - Corrected Connection.CreateCommand to return a MySqlCommand type
MySql - Fixed connection string designer dialog box problem (thanks Abraham Guyt)
7/24/2003
MySql - Fixed problem with sending commands not always reading the response packet (thanks Joshua Mouch )
MySql - Fixed parameter serialization where some blobs types were not being handled (thanks Sean McGinnis )
7/22/2003
MySql - Removed spurious MessageBox.show from DataReader code (thanks Joshua Mouch )
7/17/2003
MySql - Fixed a nasty bug in the split sql code (thanks everyone! :-) )
*************Released 0.71***********************
7/15/2003
MySql - Fixed bug in MySqlStream where too much data could attempt to be read (thanks Peter Belbin)
7/11/2003
MySql - Implemented HasRows (thanks Nash Pherson)
MySql - Fixed bug where tables with more than 252 columns cause an exception ( thanks Joshua Kessler )
MySql - Fixed bug where SQL statements ending in ; would cause a problem ( thanks Shane Krueger )
MySql - Fixed bug in driver where error messsages were getting truncated by 1 character (thanks Shane Krueger)
7/6/2003
========MySql===============
* Made MySqlException serializable (thanks Mathias Hasselmann)
========PgSql===============
* Made PgSqlException serializable (thanks Mathias Hasselmann)
***********Released 0.70*********************
6/25/2003
========MySql===============
* Updated some of the character code pages to be more accurate
* Fixed problem where readers could be opened on connections that had readers open
* Release of 0.70
6/20/2003
========MySql===============
* Moved test to separate assembly MySqlClientTests
6/19/2003
========MySql===============
* Fixed stupid problem in driver with sequence out of order (Thanks Peter Belbin)
6/18/2003
========MySql===============
* Added some pipe tests
* Increased default max pool size to 50
* Compiles with Mono 0-24
6/17/2003
========MySql===============
* Fixed connection and data reader dispose problems
* Added String datatype handling to parameter serialization
6/13/2003
========MySql===============
* Fixed sequence problem in driver that occured after thrown exception
(thanks Burkhard Perkens-Golomb)
6/10/2003
========MySql===============
* Added support for CommandBehavior.SingleRow to DataReader
* Fixed command sql processing so quotes are better handled (thanks Theo Spears)
6/9/2003
========MySQL===============
* Fixed parsing of double, single, and decimal values to account for non-English separators.
You still have to use the right syntax if you using hard coded sql, but if you use parameters
the code will convert floating point types to use '.' appropriately internal both into the server
and out.
[ Thanks anonymous ]
* Added MySqlStream class to simplify timeOuts and driver coding.
* Fixed DataReader so that it is closed properly when the associated connection is closed.
[thanks smishra]
* Made client more SqlClient compliant so that DataReaders have to be closed before the connection
can be used to run another command
* Improved DBNull.Value handling in the fields
* Added several unit tests
* Fixed MySqlException so that the base class is actually called :-o
* Improved driver coding
=============PgSql=================
* Too many changes to document. Still basic structuring of driver. Driver not really usable yet.
5/28/2003
* Fixed bug where NextResult was returning false on the last resultset
* Added more tests for MySQL
* Improved casting problems by equating unsigned 32bit values to Int64 and usigned 16bit values to Int32, etc
5/6/2003
* Added new ctor for MySqlParameter for (name, type, size, srccol)
* Fixed bug in MySqlDataReader where it didn't check for null fieldlist before returning field count
4/23/2003
* Started adding MySqlClient unit tests (added MySqlClient/Tests folder and some test cases)
* Fixed some things in Connection String handling
4/7/2003
* Moved INIT_DB to MySqlPool. I may move it again, this is in preparation of the conference.
4/6/2003
* Fixed bug inside CommandBuilder that prevented inserts from happening properly
* Reworked some of the internals so that all three execute methods of Command worked properly
* FIxed many small bugs found during benchmarking
4/5/2003
* The first cut of CoonectionPooling is working. "min pool size" and "max pool size" are respected.
4/3/2003
* Work to enable multiple resultsets to be returned
* Character sets are handled much more intelligently now. The driver queries MySQL at startup for the default character set.
That character set is then used for conversions if that code page can be loaded. If not, then the default code
page for the current OS is used.
3/31/2003
* Added code to save the inferred type in the name,value ctor of Parameter
* Also, inferred type if value of null parameter is changed using Value property
* Converted all files to use proper Camel case. MySQL is now MySql in all files. PgSQL is now PgSql
* Added attribute to PgSql code to prevent designer from trying to show
3/17/2003
* Added MySQLDbType property to Parameter object and added proper conversion code to convert from DbType to MySQLDbType)
* Removed unused ObjectToString method from MySQLParameter.cs
* Fixed Add(..) method in ParameterCollection so that it doesn't use Add(name, value) instead.
* Fixed IndexOf and Contains in ParameterCollection to be aware that parameter names are now stored without @
* Fixed Command.ConvertSQLToBytes so it only allows characters that can be in MySQL variable names
* Fixed DataReader and Field so that blob fields read their data from Field.cs and GetBytes works right
* Added simple query builder editor to CommandText property of MySQLCommand
* Fixed CommandBuilder and Parameter serialization to account for Parameters not storing @ in their names
* Removed MySQLFieldType enum from Field.cs. Now using MySQLDbType enum
3/15/2003
* Added Designer attribute to several classes to prevent designer view when using VS.Net
3/13/2003
* Fixed Initial catalog typo in ConnectionString designer
* Removed 3 parameter ctor for MySQLParameter that conflicted with (name, type, value)
* changed MySQLParameter so paramName is now stored without leading @ (this fixed null inserts when using designer)
* Changed TypeConverter for MySQLParameter to use the ctor with all properties
Note that this build has not been checked out with Mono.
3/10/2003
* Fixed sequence issue in driver
3/9/2003
* Added DbParametersEditor to make parameter editing more like SqlClient
* Fixed Command class so that parameters can be edited using the designer
3/7/2003
* Update connection string designer to support Use Compression flag
2/15/2003
* Fixed string encoding so that European characters like ä will work correctly
2/9/2003
* Creating base classes to aid in building new data providers
* Added support for UID key in connection string
2/10/2003
* Field, parameter, command now using DBNull.Value instead of null
* CommandBuilder using DBNull.Value
* CommandBuilder now builds insert command correctly when an auto_insert field is not present
* Field now uses typeof keyword to return System.Types (performance)
0.65
====================
* MySQLCommandBuilder now implemented
* Transaction support now implemented (not all table types support this)
* GetSchemaTable fixed to not use xsd (for Mono)
* Driver is now Mono-compatible!!
* TIME data type now supported
* More work to improve Timestamp data type handling
* Changed signatures of all classes to match corresponding SqlClient classes
0.60
======================
* Protocol compression using SharpZipLib (www.icsharpcode.net)
* Named pipes on Windows now working properly
* Work done to improve Timestamp data type handling
* Implemented IEnumerable on DataReader so DataGrid would work
0.50
======================
* Speed increased dramatically by removing bugging network sync code
* Driver no longer buffers rows of data (more ADO.Net compliant)
* Conversion bugs related to TIMESTAMP and DATETIME fields fixed
3/11/2004
MySql - Changed command editor to point to MySqlClient.Design
3/4/2004
Common - Fixed bug in Version.isAtLeast
Common - Changed DBConnectionString to support changes done to MySqlConnectionString
Common - Removed SqlCommandEditor and DataAdapterPreviewDialog
3/3/2004
MySql - Using new long return values in many places
MySql - Integrated new CompressedStream class
3/2/2004
MySql - Changed ConnectionString and added attributes to allow it to be used in MySqlClient.Design
MySql - Changed packet.cs to support newer lengths in ReadLenInteger
MySql - changed other classes to use new properties and fields of MySqlConnectionString
MySql - ConnectionInternal is now using PING to see if the server is alive
3/1/2004
MySql - Moved toolbox bitmaps into resource/
MySql - Changed field.cs to allow values to come directly from row buffer
2/25/2004
MySql - Changed to use the new driver.Send syntax
MySql - Using a new packet queueing system
MySql - started work handling the "broken" compression packet handling
2/20/2004
Common - Fixed bug in StreamCreator where failure to connect to a host would continue
to loop infinitly (thanks Kevin Casella)
2/8/2004
MySql - Improved connectstring handling
MySql - Moved designers into Pro product
2/4/2004
MySql - Removed some old commented out code from command.cs
MySql - Fixed a problem with compression
2/2/2004
MySql - Fixed connection object where an exception throw prior to the connection opening would not leave
the connection in the connecting state (thanks Chris Cline )
1/31/2004
MySql - Added GUID support
MySql - Fixed sequence out of order bug (thanks Mark Reay)
1/26/2004
MySql - Enum values now supported as parameter values (thanks Philipp Sumi)
1/22/2004
MySql - Year datatype now supported
1/21/2004
MySql - fixed compression
1/20/2004
MySql - Fixed bug where a parameter with a TimeSpan as the value would not serialize properly
MySql,Common - Fixed bug where default ctor would not set default connection string values
MySql - Added some XML comments to some members
MySql - Work to fix/improve compression handling
1/13/2004
MySql,Common - Improved ConnectionString handling so that it better matches the standard set by SqlClient.
MySql - A MySqlException is now thrown if a username is not included in the connection string
MySql- Localhost is now used as the default if not specified on the connection string
MySql - An exception is now thrown if an attempt is made to set the connection string while the connection is open
MySql - Small changes to ConnectionString docs
MySql,common - Removed MultiHostStream and MySqlStream. Replaced it with Common/StreamCreator
MySql - Added support for Use Pipe connection string value
MySql - Added Platform class for easier access to platform utility functions
MySql - Fixed small pooling bug where new connection was not getting created after IsAlive fails
Common - Added Platform.cs and StreamCreator.cs
12/30/2003
MySql - Fixed Field.cs to properly handle 4.1 style timestamps
MySql - Changed Common.Version to Common.DBVersion to avoid name conflict
12/29/2003
MySql - Fixed field.cs so that text columns return the right field type (thanks [email protected]et)
12/22/2003
MySql - Added MySqlError class to provide some reference for error codes (thanks Geert Veenstra)
------------0.74 ------------------------
12/6/2003
MySql - Added Unix socket support (thanks Mohammad DAMT [[email protected]])
12/4/2003
MySql - only calling Thread.Sleep when no data is available
MySql - improved escaping of quote characters in parameter data
MySql - removed misleading comments from parameter.cs
12/1/2003
Mysql -fixed pooling bug
MySql - same pooling bug fixed again!! ;-)
11/30/2003
MySql - Fixed ConnectionSTring editor dialog (thanks marco p (pomarc))
Common - UserId now supported in connection strings (thanks Jeff Neeley)
MySql - Attempting to create a parameter that is not input throws an exception (thanks Ryan Gregg)
11/29/2003
MySql - Added much documentation
11/26/2003
MySql - checked in new MultiHostStream capability. Big thanks to Dan Guisinger for this. he originally submitted the code and idea of supporting multiple machines on the connect string.
11/25/2003
MySql - Added alot of documentation. Still alot to do.
11/24/2003
MySql - Fixed speed issue with 0.73
11/14/2003
MySql - changed to Thread.Sleep(0) in MySqlDataStream to help optimize the case where it doesn't need to wait (thanks Todd German)
11/1/2003
MySql - Prepopulating the idlepools to MinPoolSize
10/31/2003
MySql - Fixed MySqlPool deadlock condition as well as stupid bug where CreateNewPooledConnection
was not ever adding new connections to the pool.
Also fixed MySqlStream.ReadBytes and ReadByte to not use TicksPerSecond which does not appear
to always be right.
(thanks Matthew J. Peddlesden)
MySql - Fix for precision and scale (thanks Matthew J. Peddlesden)
10/28/2003
MySql - Added Thread.Sleep(1) to stream reading methods to be more cpu friendly (thanks Sean McGinnis)
10/24/2003
MySql - Fixed problem where ExecuteReader would sometime return null (thanks Lloyd Dupont )
10/17/2003
MySql - Fixed major bug with null field handling (thanks Naucki)
10/15/2003
MySql - enclosed queries for max_allowed_packet and characterset inside try catch (and set defaults)
MySql - fixed problem where socket was not getting closed properly (thanks Steve!)
10/14/2003
MySql - Fixed problem where ExecuteNonQuery was not always returning the right value
10/13/2003
MySql - Fixed InternalConnection to not use @@session.max_allowed_packet but use @@max_allowed_packet. (Thanks Miguel)
10/12/2003
MySql - Added many new XML doc lines
10/10/2003
MySql - Fixed sql parsing to not send empty queries (thanks Rory)
MySql - Fixed problem where the reader was not unpeeking the packet on close
MySql - Fixed problem where user variables were not being handled (thanks Sami Vaaraniemi)
MySql - Fixed loop checking in the MySqlPool (thanks Steve M. Brown)
10/7/2003
MySql - Fixed ParameterCollection.Add method to match SqlClient (thanks Joshua Mouch)
Common & MySql - Fixed ConnectionSTring parsing to handle no and yes for boolean and not lowercase values (thanks Naucki)
10/3/2003
MySql - Added InternalConnection class, changes to pooling
Common - Implemented Persist Security Info
9/26/2003
Common - Added security.cs and version.cs to project
9/25/2003
MySql - Fixed DateTime handling in Parameter.cs (thanks Burkhard Perkens-Golomb)
MySql - Fixed parameter serialization where some types would throw a cast exception
MySql - Fixed DataReader to convert all returned values to prevent casting errors (thanks Keith Murray)
MySql - Added code to Command.ExecuteReader to return null if the initial SQL command throws an exception (thanks Burkhard Perkens-Golomb)
9/24/2003
MySql - Fixed ExecuteScalar bug introduced with restructure
9/23/2003
MySql - Restructure to allow for LOCAL DATA INFILE and better sequencing of packets
MySql - Fixed several bugs related to restructure.
9/10/2003
MySql - Early work done to support more secure passwords in Mysql 4.1. Old passwords in 4.1 not supported yet
8/22/2003
MySql- Parameters appearing after system parameters are now handled correctly (Adam M. (adammil))
MySql - strings can now be assigned directly to blob fields (Adam M.)
8/20/2003
MySql - Fixed float parameters (thanks Pent)
8/7/2003
MySql - Improved Parameter ctor and ParameterCollection.Add methods to better match SqlClient (thx Joshua Mouch )
MySql - Corrected Connection.CreateCommand to return a MySqlCommand type
MySql - Fixed connection string designer dialog box problem (thanks Abraham Guyt)
7/24/2003
MySql - Fixed problem with sending commands not always reading the response packet (thanks Joshua Mouch )
MySql - Fixed parameter serialization where some blobs types were not being handled (thanks Sean McGinnis )
7/22/2003
MySql - Removed spurious MessageBox.show from DataReader code (thanks Joshua Mouch )
7/17/2003
MySql - Fixed a nasty bug in the split sql code (thanks everyone! :-) )
*************Released 0.71***********************
7/15/2003
MySql - Fixed bug in MySqlStream where too much data could attempt to be read (thanks Peter Belbin)
7/11/2003
MySql - Implemented HasRows (thanks Nash Pherson)
MySql - Fixed bug where tables with more than 252 columns cause an exception ( thanks Joshua Kessler )
MySql - Fixed bug where SQL statements ending in ; would cause a problem ( thanks Shane Krueger )
MySql - Fixed bug in driver where error messsages were getting truncated by 1 character (thanks Shane Krueger)
7/6/2003
========MySql===============
* Made MySqlException serializable (thanks Mathias Hasselmann)
========PgSql===============
* Made PgSqlException serializable (thanks Mathias Hasselmann)
***********Released 0.70*********************
6/25/2003
========MySql===============
* Updated some of the character code pages to be more accurate
* Fixed problem where readers could be opened on connections that had readers open
* Release of 0.70
6/20/2003
========MySql===============
* Moved test to separate assembly MySqlClientTests
6/19/2003
========MySql===============
* Fixed stupid problem in driver with sequence out of order (Thanks Peter Belbin)
6/18/2003
========MySql===============
* Added some pipe tests
* Increased default max pool size to 50
* Compiles with Mono 0-24
6/17/2003
========MySql===============
* Fixed connection and data reader dispose problems
* Added String datatype handling to parameter serialization
6/13/2003
========MySql===============
* Fixed sequence problem in driver that occured after thrown exception
(thanks Burkhard Perkens-Golomb)
6/10/2003
========MySql===============
* Added support for CommandBehavior.SingleRow to DataReader
* Fixed command sql processing so quotes are better handled (thanks Theo Spears)
6/9/2003
========MySQL===============
* Fixed parsing of double, single, and decimal values to account for non-English separators.
You still have to use the right syntax if you using hard coded sql, but if you use parameters
the code will convert floating point types to use '.' appropriately internal both into the server
and out.
[ Thanks anonymous ]
* Added MySqlStream class to simplify timeOuts and driver coding.
* Fixed DataReader so that it is closed properly when the associated connection is closed.
[thanks smishra]
* Made client more SqlClient compliant so that DataReaders have to be closed before the connection
can be used to run another command
* Improved DBNull.Value handling in the fields
* Added several unit tests
* Fixed MySqlException so that the base class is actually called :-o
* Improved driver coding
=============PgSql=================
* Too many changes to document. Still basic structuring of driver. Driver not really usable yet.
5/28/2003
* Fixed bug where NextResult was returning false on the last resultset
* Added more tests for MySQL
* Improved casting problems by equating unsigned 32bit values to Int64 and usigned 16bit values to Int32, etc
5/6/2003
* Added new ctor for MySqlParameter for (name, type, size, srccol)
* Fixed bug in MySqlDataReader where it didn't check for null fieldlist before returning field count
4/23/2003
* Started adding MySqlClient unit tests (added MySqlClient/Tests folder and some test cases)
* Fixed some things in Connection String handling
4/7/2003
* Moved INIT_DB to MySqlPool. I may move it again, this is in preparation of the conference.
4/6/2003
* Fixed bug inside CommandBuilder that prevented inserts from happening properly
* Reworked some of the internals so that all three execute methods of Command worked properly
* FIxed many small bugs found during benchmarking
4/5/2003
* The first cut of CoonectionPooling is working. "min pool size" and "max pool size" are respected.
4/3/2003
* Work to enable multiple resultsets to be returned
* Character sets are handled much more intelligently now. The driver queries MySQL at startup for the default character set.
That character set is then used for conversions if that code page can be loaded. If not, then the default code
page for the current OS is used.
3/31/2003
* Added code to save the inferred type in the name,value ctor of Parameter
* Also, inferred type if value of null parameter is changed using Value property
* Converted all files to use proper Camel case. MySQL is now MySql in all files. PgSQL is now PgSql
* Added attribute to PgSql code to prevent designer from trying to show
3/17/2003
* Added MySQLDbType property to Parameter object and added proper conversion code to convert from DbType to MySQLDbType)
* Removed unused ObjectToString method from MySQLParameter.cs
* Fixed Add(..) method in ParameterCollection so that it doesn't use Add(name, value) instead.
* Fixed IndexOf and Contains in ParameterCollection to be aware that parameter names are now stored without @
* Fixed Command.ConvertSQLToBytes so it only allows characters that can be in MySQL variable names
* Fixed DataReader and Field so that blob fields read their data from Field.cs and GetBytes works right
* Added simple query builder editor to CommandText property of MySQLCommand
* Fixed CommandBuilder and Parameter serialization to account for Parameters not storing @ in their names
* Removed MySQLFieldType enum from Field.cs. Now using MySQLDbType enum
3/15/2003
* Added Designer attribute to several classes to prevent designer view when using VS.Net
3/13/2003
* Fixed Initial catalog typo in ConnectionString designer
* Removed 3 parameter ctor for MySQLParameter that conflicted with (name, type, value)
* changed MySQLParameter so paramName is now stored without leading @ (this fixed null inserts when using designer)
* Changed TypeConverter for MySQLParameter to use the ctor with all properties
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Text;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Automatically generates single-table commands used to reconcile changes made to a DataSet with the associated MySQL database. This class cannot be inherited.
/// Gets or sets the beginning character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuotePrefix
{
get{return_QuotePrefix;}
set{_QuotePrefix=value;}
}
/// <summary>
/// Gets or sets the ending character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuoteSuffix
{
get{return_QuoteSuffix;}
set{_QuoteSuffix=value;}
}
#endregion
#regionPublicMethods
/// <summary>
/// Retrieves parameter information from the stored procedure specified in the MySqlCommand and populates the Parameters collection of the specified MySqlCommand object.
/// This method is not currently supported since stored procedures are not available in MySql.
/// </summary>
/// <param name="command">The MySqlCommand referencing the stored procedure from which the parameter information is to be derived. The derived parameters are added to the Parameters collection of the MySqlCommand.</param>
/// <exception cref="InvalidOperationException">The command text is not a valid stored procedure name.</exception>
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Text;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Automatically generates single-table commands used to reconcile changes made to a DataSet with the associated MySQL database. This class cannot be inherited.
/// Gets or sets the beginning character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuotePrefix
{
get{return_QuotePrefix;}
set{_QuotePrefix=value;}
}
/// <summary>
/// Gets or sets the ending character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuoteSuffix
{
get{return_QuoteSuffix;}
set{_QuoteSuffix=value;}
}
#endregion
#regionPublicMethods
/// <summary>
/// Retrieves parameter information from the stored procedure specified in the MySqlCommand and populates the Parameters collection of the specified MySqlCommand object.
/// This method is not currently supported since stored procedures are not available in MySql.
/// </summary>
/// <param name="command">The MySqlCommand referencing the stored procedure from which the parameter information is to be derived. The derived parameters are added to the Parameters collection of the MySqlCommand.</param>
/// <exception cref="InvalidOperationException">The command text is not a valid stored procedure name.</exception>
/// Releases the resources used by the MySqlConnection.
/// </summary>
publicnewvoidDispose()
{
if(State==ConnectionState.Open)
Close();
base.Dispose();
}
#endregion
}
}
Loaded 100 of 6665 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.