mono.git
16 years ago2008-01-14 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 14 Jan 2008 12:04:00 +0000 (12:04 -0000)]
2008-01-14  Jb Evain  <jbevain@novell.com>

* Expression.cs: TypeAs can't take value types.
* ExpressionPrinter.cs: implement TypeAs.

svn path=/trunk/mcs/; revision=92849

16 years agoI hate myself, I hate myself
Jb Evain [Mon, 14 Jan 2008 11:57:02 +0000 (11:57 -0000)]
I hate myself, I hate myself

svn path=/trunk/mcs/; revision=92848

16 years agoadd passing tests
Jb Evain [Mon, 14 Jan 2008 11:56:09 +0000 (11:56 -0000)]
add passing tests

svn path=/trunk/mcs/; revision=92847

16 years ago2008-01-14 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 14 Jan 2008 11:55:47 +0000 (11:55 -0000)]
2008-01-14  Jb Evain  <jbevain@novell.com>

* Expression.cs: implement TypeIs.
* ExpressionPrinter.cs: implement VisitTypeBinaryExpression.
* TypeBinaryExpression.cs: add proper ctor.

svn path=/trunk/mcs/; revision=92846

16 years agoTARGET_J2EE:
Igor Zelmanovich [Mon, 14 Jan 2008 11:50:36 +0000 (11:50 -0000)]
TARGET_J2EE:

resolve action url as relative

svn path=/trunk/mcs/; revision=92845

16 years ago2008-01-14 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 14 Jan 2008 11:45:22 +0000 (11:45 -0000)]
2008-01-14 Igor Zelmanovich <igorz@mainsoft.com>

* Control.cs: fixed ResolveClientUrl.
use Context.FilePath instead of Context.CurrentExecutionPath for
resolvint app. releative path.

svn path=/trunk/mcs/; revision=92844

16 years ago2008-01-14 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 14 Jan 2008 11:43:40 +0000 (11:43 -0000)]
2008-01-14  Jb Evain  <jbevain@novell.com>

* Expression.cs, ExpressionPrinter.cs: fix for Quote's type.

svn path=/trunk/mcs/; revision=92843

16 years agoNew test.
Marek Safar [Mon, 14 Jan 2008 11:21:05 +0000 (11:21 -0000)]
New test.

svn path=/trunk/mcs/; revision=92842

16 years agoMon Jan 14 12:33:06 CET 2008 David S. Miller <davem@davemloft.net>
Paolo Molaro [Mon, 14 Jan 2008 10:59:02 +0000 (10:59 -0000)]
Mon Jan 14 12:33:06 CET 2008  David S. Miller  <davem@davemloft.net>

* mini.h (MonoInstList): New type.
(MONO_INST_LIST_INIT, MONO_INST_LIST_EMPTY,
__MONO_INST_LIST_ADD, MONO_INST_LIST_ADD,
MONO_INST_LIST_ADD_TAIL, __MONO_INST_LIST_DEL,
__MONO_INST_LIST_SPLICE, MONO_INST_LIST_SPLICE,
MONO_INST_LIST_SPLICE_TAIL, MONO_INST_LIST_SPLICE_INIST,
MONO_INST_LIST_SPLICE_TAIL_INIT, mono_container_of,
MONO_INST_LIST_ENTRY, MONO_INST_LIST_FIRST_ENTRY,
MONO_INST_LIST_LAST_ENTRY, MONO_INST_LIST_FOR_EACH,
MONO_INST_LIST_FOR_EACH_PREV, MONO_INST_LIST_FOR_EACH_SAFE,
MONO_INST_LIST_FOR_EACH_PREV_SAFE,
MONO_INST_LIST_FOR_EACH_ENTRY,
MONO_INST_LIST_FOR_EACH_ENTRY_REVERSE,
MONO_INST_LIST_FOR_EACH_ENTRY_SAFE,
mono_inst_list_first, mono_inst_list_last,
mono_inst_list_next, mono_inst_list_prev): New instruction
list handling interfaces.
(MonoBasicBlock): Remove 'last_ins' and 'code', replace with
list head 'ins_list'.
(MonoInst): Replace next pointer with list head 'node'.
(MonoCallInst): Make 'out_args' a MonoInstList.
(MONO_INST_NEW_CALL): Explicitly init ->out_args.
(MonoCompile): Delete reverse_inst_list and
reverse_inst_list_len.
* mini-hppa.c (mono_arch_call_opcode, NEW_INS,
mono_arch_lowering_pass, mono_arch_local_regalloc,
mono_arch_output_basic_block, mono_arch_emit_prolog):
Convert to new instruction lists.
(insert_after_ins): Delete.
* inssel.brg (MONO_EMIT_NEW_BRANCH_BLOCK): Convert to new
instruction lists.
* mini-hppa.h (MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Likewise.
* mini.c (NEW_BBLOCK, ADD_BBLOCK, CHECK_BBLOCK,
split_bblock, mono_add_ins_to_end, mono_emit_call_args,
mono_emulate_opcode, mono_emit_load_got_addr,
inline_method, mono_method_to_ir, mono_print_bb_code,
print_dfn, decompose_pass, nullify_basic_block,
replace_out_block_in_code, remove_block_if_useless,
merge_basic_blocks, move_basic_block_to_end,
try_unsigned_compare, optimize_branches, mono_print_code,
mini_select_instructions, remove_critical_edges): Likewise.
* mini-amd64.c (emit_sig_cookie, mono_arch_call_opcode,
peephole_pass_1, peephole_pass, mono_arch_lowering_pass,
mono_arch_output_basic_block, mono_arch_emit_prolog):
Likewise.
* mini-mips.c (mono_arch_call_opcode, peephole_pass,
NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
mono_arch_output_basic_block): Likewise.
(inst_list_prepend, insert_after_ins): Delete.
* mini-mips.h (MONO_EMIT_NEW_BRANCH_NONZERO_LABEL,
MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Convert to new
instruction lists.
* mini-x86.c (emit_sig_cookie, mono_arch_call_opcode,
peephole_pass_1, peephole_pass, mono_arch_output_basic_block,
mono_arch_emit_prolog): Likewise.
* cfold.c (mono_constant_fold): Likewise.
* liveness.c (visit_bb, mono_analyze_liveness,
optimize_initlocals): Likewise.
* ssapre.c (dump_code, process_bb, code_motion): Likewise.
* graph.c (mono_draw_code_cfg): Likewise.
* ssa.c (mono_ssa_rename_vars, mono_ssa_compute,
mono_ssa_remove, mono_ssa_avoid_copies, mono_ssa_create_def_use,
mono_ssa_cprop): Likewise.
* abcremoval (get_relations_from_previous_bb, process_block):
Likewise.
* local-propagation (mono_cprop_invalidate_values,
mono_local_cprop_bb): Likewise.
* mini-s390x.c (mono_arch_call_opcode, emit_sig_cookie,
peephole_pass, mono_arch_output_basic_block,
mono_arch_emit_prolog): Likewise.
* mini-arm.c (mono_arch_call_opcode, peephole_pass,
NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
mono_arch_emit_prolog): Likewise.
(insert_after_ins): Delete.
* aliasing.c (print_code_with_aliasing_information,
mono_build_aliasing_information, mono_aliasing_deadce):
Convert to new instruction lists.
* mini-ia64.c (emit_sig_cookie, mono_arch_call_opcode,
peephole_pass, NEW_INS, mono_arch_lowering_pass,
mono_arch_local_regalloc, mono_arch_output_basic_block):
Likewise.
(insert_after_ins): Delete.
* mini-sparc.c (emit_sig_cookie, mono_arch_call_opcode,
peephole_pass, mono_arch_output_basic_block): Convert to
new instruction lists.
* mini-codegen (InstList, inst_list_prepend,
insert_after_ins): Delete.
(insert_before_ins, get_register_force_spilling,
get_register_spilling, free_up_ireg, free_up_reg,
create_copy_ins, create_spilled_store, alloc_int_reg,
alloc_float_reg, alloc_reg, mono_local_regalloc): Convert
to new instruction lists.
* mini-ppc.c (mono_arch_call_opcode, peephole_pass,
NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
mono_arch_output_basic_block, mono_arch_emit_prolog): Likewise.
(insert_after_ins): Delete.
* mini-alpha.c (NEW_INS, peephole_pass, mono_arch_lowering_pass,
mono_arch_local_regalloc, mono_arch_output_basic_block,
mono_arch_call_opcode): Convert to new instruction lists.
(insert_after_ins): Delete.
* mini-s390.c (mono_arch_call_opcode, emit_sig_cookie,
peephole_pass, mono_arch_output_basic_block,
mono_arch_emit_prolog): Convert to new instruction lists.

svn path=/trunk/mono/; revision=92841

16 years ago2007-01-14 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Mon, 14 Jan 2008 10:56:15 +0000 (10:56 -0000)]
2007-01-14  Everaldo Canuto  <ecanuto@novell.com>

* Form.cs: In WmWindowPosChanged call base.WndProc including when state is
minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.

svn path=/trunk/mcs/; revision=92840

16 years ago2008-01-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 14 Jan 2008 10:44:35 +0000 (10:44 -0000)]
2008-01-14  Marek Habersack  <mhabersack@novell.com>

* CSharpCodeCompiler.cs: 3.0 is the default version now.

svn path=/trunk/mcs/; revision=92839

16 years agoconvert ArrayList to array only in case of DeserializeObject()
Konstantin Triger [Mon, 14 Jan 2008 10:27:15 +0000 (10:27 -0000)]
convert ArrayList to array only in case of DeserializeObject()

svn path=/trunk/mcs/; revision=92838

16 years ago2008-01-14 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 14 Jan 2008 09:52:31 +0000 (09:52 -0000)]
2008-01-14  Jb Evain  <jbevain@novell.com>

* BinaryExpression.cs,
* Expression.cs: revert part of Miguel's last patch.
MakeBinary is expected to call the appropriate factory
methods. Whose methods that are responsible for creating
the good BinaryExpression, wether they use a custom method
or not.

svn path=/trunk/mcs/; revision=92837

16 years agodeal with power
Jb Evain [Mon, 14 Jan 2008 09:49:51 +0000 (09:49 -0000)]
deal with power

svn path=/trunk/mcs/; revision=92836

16 years agoFix the build.
Paolo Molaro [Mon, 14 Jan 2008 09:04:35 +0000 (09:04 -0000)]
Fix the build.

svn path=/trunk/mono/; revision=92835

16 years ago2008-01-14 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 14 Jan 2008 08:49:56 +0000 (08:49 -0000)]
2008-01-14  Jb Evain  <jbevain@novell.com>

* Expression.cs: MakeUnary is expected to call the appropriate
factory methods.

svn path=/trunk/mcs/; revision=92834

16 years ago2008-01-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 14 Jan 2008 05:02:54 +0000 (05:02 -0000)]
2008-01-14  Miguel de Icaza  <miguel@novell.com>

* Expression.cs (Constant, MakeBinary and consumers of it): Some
more fill-up changes.

MakeBinary will need much more work to support user-provided
types.

svn path=/trunk/mcs/; revision=92833

16 years agocorcompare work
Jb Evain [Sun, 13 Jan 2008 23:16:31 +0000 (23:16 -0000)]
corcompare work

svn path=/trunk/mcs/; revision=92825

16 years ago2008-01-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Jan 2008 22:53:04 +0000 (22:53 -0000)]
2008-01-14  Zoltan Varga  <vargaz@gmail.com>

* NumberFormatter.cs: Remove some redundant assignments.

svn path=/trunk/mcs/; revision=92824

16 years agofresh impl
Jb Evain [Sun, 13 Jan 2008 22:16:25 +0000 (22:16 -0000)]
fresh impl

svn path=/trunk/mcs/; revision=92823

16 years agomake some room
Jb Evain [Sun, 13 Jan 2008 22:11:43 +0000 (22:11 -0000)]
make some room

svn path=/trunk/mcs/; revision=92822

16 years agospaces to tabs
Jb Evain [Sun, 13 Jan 2008 22:11:17 +0000 (22:11 -0000)]
spaces to tabs

svn path=/trunk/mcs/; revision=92821

16 years ago2008-01-13 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Sun, 13 Jan 2008 19:28:29 +0000 (19:28 -0000)]
2008-01-13  Juraj Skripsky  <js@hotfeet.ch>

* Collection.cs, ReadonlyCollection.cs (ICollection.CopyTo):
Use ICollection.CopyTo of inner list. Fixes bug #350432.

svn path=/trunk/mcs/; revision=92816

16 years ago* corlib_test.dll.sources: added ReadOnlyCollectionTest.cs.
Gert Driesen [Sun, 13 Jan 2008 18:51:59 +0000 (18:51 -0000)]
* corlib_test.dll.sources: added ReadOnlyCollectionTest.cs.
* CollectionTest.cs: Added test for ICollection.CopyTo.
* ReadOnlyCollectionTest.cs: Added ctor tests, and test for
ICollection.CopyTo.

svn path=/trunk/mcs/; revision=92814

16 years ago2008-01-13 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 13 Jan 2008 17:48:31 +0000 (17:48 -0000)]
2008-01-13  Sebastien Pouliot  <sebastien@ximian.com>

* GDIPlusTest.cs: Don't use internal Unit enum anymore.

svn path=/trunk/mcs/; revision=92811

16 years ago2008-01-13 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 13 Jan 2008 17:47:46 +0000 (17:47 -0000)]
2008-01-13  Sebastien Pouliot  <sebastien@ximian.com>

* gdipEnums.cs: Remove Unit enum since there's a public version
(GraphicsUnit) for it.
* gdipFunctions.cs: Make GDIPlus class static for 2.0 and remove
new lines (both warnings from Gendarme). Stop using Unit enum.
* Pen.cs: Stop using Unit enum.

svn path=/trunk/mcs/; revision=92810

16 years ago* COMException.cs: Added missing colon in ToString.
Gert Driesen [Sun, 13 Jan 2008 17:24:39 +0000 (17:24 -0000)]
* COMException.cs: Added missing colon in ToString.

svn path=/trunk/mcs/; revision=92808

16 years ago* AppDomain.cs: Also fix bug #350530 for overload taking evidence and
Gert Driesen [Sun, 13 Jan 2008 17:23:07 +0000 (17:23 -0000)]
* AppDomain.cs: Also fix bug #350530 for overload taking evidence and
args. On 1.0 profile, throw COMException to match MS and to allow
our unit tests to pass on MS.
* AppDomainTest.cs: Added ExecuteAssemblyByName and ExecuteAssembly
tests for assemblies without entrypoint.

svn path=/trunk/mcs/; revision=92807

16 years agorelease capabilities file after use
Konstantin Triger [Sun, 13 Jan 2008 14:54:53 +0000 (14:54 -0000)]
release capabilities file after use

svn path=/trunk/mcs/; revision=92799

16 years agoRedesign System/NumberFormatter to improve primitive numeric types ToString performance.
Eyal Alalouf [Sun, 13 Jan 2008 14:44:17 +0000 (14:44 -0000)]
Redesign System/NumberFormatter to improve primitive numeric types ToString performance.

svn path=/trunk/mono/; revision=92798

16 years agoRedesign System/NumberFormatter to improve primitive numeric types ToString performance.
Eyal Alalouf [Sun, 13 Jan 2008 14:44:17 +0000 (14:44 -0000)]
Redesign System/NumberFormatter to improve primitive numeric types ToString performance.

svn path=/trunk/mcs/; revision=92798

16 years agoSet eol-style to native.
Gert Driesen [Sun, 13 Jan 2008 13:27:59 +0000 (13:27 -0000)]
Set eol-style to native.

svn path=/trunk/mcs/; revision=92795

16 years agoSet eol-style to native.
Gert Driesen [Sun, 13 Jan 2008 13:26:54 +0000 (13:26 -0000)]
Set eol-style to native.

svn path=/trunk/mcs/; revision=92794

16 years ago* X509Certificate2.cs: NotAfter and NotBefore must return local time.
Gert Driesen [Sun, 13 Jan 2008 13:24:47 +0000 (13:24 -0000)]
* X509Certificate2.cs: NotAfter and NotBefore must return local time.
* X509Certificate2Test.cs: Added asserts to ensure NotAfter and
NotBefore are in local time.
* X509ChainPolicyTest.cs: Added assert to ensure VerificationTime is
in local time.

svn path=/trunk/mcs/; revision=92793

16 years ago* Page.jvm.cs: optimized SetupResponseWriter, fixed getChildCount and getChildren...
Vladimir Krasnov [Sun, 13 Jan 2008 13:22:03 +0000 (13:22 -0000)]
* Page.jvm.cs: optimized SetupResponseWriter, fixed getChildCount and getChildren methods
* Control.jvm.cs: fixed getChildCount method

svn path=/trunk/mcs/; revision=92792

16 years ago2008-01-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Jan 2008 13:10:41 +0000 (13:10 -0000)]
2008-01-13  Zoltan Varga  <vargaz@gmail.com>

* AppDomainTest.cs: Add a test for #350530.

svn path=/trunk/mcs/; revision=92791

16 years agoremove Console.WriteLine
Igor Zelmanovich [Sun, 13 Jan 2008 13:10:00 +0000 (13:10 -0000)]
remove Console.WriteLine

svn path=/trunk/mcs/; revision=92790

16 years agoremove Console.WriteLine
Igor Zelmanovich [Sun, 13 Jan 2008 13:07:12 +0000 (13:07 -0000)]
remove Console.WriteLine

svn path=/trunk/mcs/; revision=92789

16 years ago2008-01-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Jan 2008 13:06:39 +0000 (13:06 -0000)]
2008-01-13  Zoltan Varga  <vargaz@gmail.com>

* AppDomain.cs: Check for a missing entry point in the ExecuteAssembly methods.
Fixes #350530.

svn path=/trunk/mcs/; revision=92788

16 years agorefactoring:
Igor Zelmanovich [Sun, 13 Jan 2008 13:02:45 +0000 (13:02 -0000)]
refactoring:
use Debug.WriteLine instead Console.WriteLine within #if DEBUG.

svn path=/trunk/mcs/; revision=92787

16 years agorefactoring:
Igor Zelmanovich [Sun, 13 Jan 2008 13:01:38 +0000 (13:01 -0000)]
refactoring:
use Trace.WriteLine instead Console.WriteLine within #if TRACE.

svn path=/trunk/mcs/; revision=92786

16 years agorefactoring:
Igor Zelmanovich [Sun, 13 Jan 2008 12:55:20 +0000 (12:55 -0000)]
refactoring:
use Debug.WriteLine instead Console.WriteLine within #if DEBUG.

svn path=/trunk/mcs/; revision=92785

16 years ago2008-01-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Jan 2008 12:47:28 +0000 (12:47 -0000)]
2008-01-13  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke): Fix a typo.

svn path=/trunk/mono/; revision=92784

16 years agoensure events are wired using public interface
Konstantin Triger [Sun, 13 Jan 2008 12:17:44 +0000 (12:17 -0000)]
ensure events are wired using public interface

svn path=/trunk/mcs/; revision=92783

16 years agoremove PagesSection as obsolete
Igor Zelmanovich [Sun, 13 Jan 2008 12:03:58 +0000 (12:03 -0000)]
remove PagesSection as obsolete

svn path=/trunk/mcs/; revision=92781

16 years agoAdd System.Web.Phantom to Grasshopper build system
Noam Lampert [Sun, 13 Jan 2008 11:59:49 +0000 (11:59 -0000)]
Add System.Web.Phantom to Grasshopper build system

svn path=/trunk/mcs/; revision=92780

16 years agoremoved 'mainsoft.web' section
Igor Zelmanovich [Sun, 13 Jan 2008 11:33:53 +0000 (11:33 -0000)]
removed 'mainsoft.web' section

svn path=/trunk/mono/; revision=92779

16 years agorefactoring
Igor Zelmanovich [Sun, 13 Jan 2008 10:03:50 +0000 (10:03 -0000)]
refactoring

svn path=/trunk/mcs/; revision=92776

16 years agorefactoring
Igor Zelmanovich [Sun, 13 Jan 2008 10:00:34 +0000 (10:00 -0000)]
refactoring

svn path=/trunk/mcs/; revision=92775

16 years ago2008-01-13 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 13 Jan 2008 09:41:36 +0000 (09:41 -0000)]
2008-01-13 Igor Zelmanovich <igorz@mainsoft.com>

* TreeView.cs:
* TreeView.js:
upgrade client side script due to changes in webform.js.

svn path=/trunk/mcs/; revision=92774

16 years ago2008-01-13 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 13 Jan 2008 09:38:32 +0000 (09:38 -0000)]
2008-01-13 Igor Zelmanovich <igorz@mainsoft.com>

* webform.js:
make scripts compatible with MicrosoftAjaxLibrary.

svn path=/trunk/mcs/; revision=92773

16 years ago2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 12 Jan 2008 20:15:49 +0000 (20:15 -0000)]
2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
messages (to match .Net), we need to remove the capture ourselves.

svn path=/trunk/mcs/; revision=92762

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 18:15:08 +0000 (18:15 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate.cs: Don't wrap our own COMException inside another
one. This will provide a better error message to the user (or tool)

svn path=/trunk/mcs/; revision=92760

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 17:59:40 +0000 (17:59 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* SettingsPropertyValue.cs: Fix typo. Found using Gendarme.

svn path=/trunk/mcs/; revision=92758

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 17:36:22 +0000 (17:36 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* ConfigurationLocationCollection.cs: Avoid infinite recursion.
Found using Gendarme.

svn path=/trunk/mcs/; revision=92757

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 16:58:39 +0000 (16:58 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* ReferenceList.cs: Avoid infinite recursion when setting [].
Found by Gendarme.
* XmlDsigXPathTransform.cs: Fix direct comparison with NaN. Found
by Gendarme.

svn path=/trunk/mcs/; revision=92756

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 16:55:24 +0000 (16:55 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* DefaultContext.cs: Fix direct comparison with NaN. Found by
Gendarme.

svn path=/trunk/mcs/; revision=92755

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 16:36:54 +0000 (16:36 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* RelaxngInference.cs: Fix infinite recursion in TypeInference
property getter. Found by Gendarme.

svn path=/trunk/mcs/; revision=92754

16 years ago2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 12 Jan 2008 16:35:52 +0000 (16:35 -0000)]
2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* XmlSchemaInference.cs: Fix infinite recursion in TypeInference
property getter. Found by Gendarme.

svn path=/trunk/mcs/; revision=92753

16 years ago* WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
Gert Driesen [Sat, 12 Jan 2008 09:52:20 +0000 (09:52 -0000)]
* WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
standalone test for bug #351049.

svn path=/trunk/mcs/; revision=92723

16 years ago* errors/Makefile (VALID_PROFILE): New. Disable tests for other profiles.
Raja R Harinath [Sat, 12 Jan 2008 05:09:43 +0000 (05:09 -0000)]
* errors/Makefile (VALID_PROFILE): New.  Disable tests for other profiles.
* tests/Makefile (VALID_PROFILE): New.  Disable tests for other profiles.

svn path=/trunk/mcs/; revision=92719

16 years ago2008-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jan 2008 21:22:44 +0000 (21:22 -0000)]
2008-01-11  Zoltan Varga  <vargaz@gmail.com>

* mono-io-portability.c: Include errno.h since it is needed by code inside
#ifdef DEBUG.

svn path=/trunk/mono/; revision=92690

16 years ago2008-01-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 11 Jan 2008 19:50:45 +0000 (19:50 -0000)]
2008-01-11  Jonathan Pobst  <monkey@jpobst.com>

* MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
will process the message and close our window.
[Fixes bug #324328]

svn path=/trunk/mcs/; revision=92687

16 years agowithout the typo this time
Stephane Delcroix [Fri, 11 Jan 2008 19:21:07 +0000 (19:21 -0000)]
without the typo this time

svn path=/trunk/mcs/; revision=92685

16 years ago2008-01-11 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Fri, 11 Jan 2008 19:19:45 +0000 (19:19 -0000)]
2008-01-11  Stephane Delcroix  <sdelcroix@novell.com>

* DateTimeOffset.cs: Fixes the MinValue (was equal to MaxValue)...

svn path=/trunk/mcs/; revision=92684

16 years ago2008-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jan 2008 16:45:12 +0000 (16:45 -0000)]
2008-01-11  Zoltan Varga  <vargaz@gmail.com>

* mono-ehash.c: Don't include os/gc_wrapper.h.

svn path=/trunk/mono/; revision=92678

16 years ago2008-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jan 2008 16:01:32 +0000 (16:01 -0000)]
2008-01-11  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Use a 4 byte load in OP_CHECK_THIS.

svn path=/trunk/mono/; revision=92677

16 years ago* TypedDataSetGenerator.cs: Remove mention of NET_3_5 -- the
Raja R Harinath [Fri, 11 Jan 2008 16:01:25 +0000 (16:01 -0000)]
* TypedDataSetGenerator.cs: Remove mention of NET_3_5 -- the
enclosed methods are part of 2.0 SP1.
* TypedDataSetSchemaImporterExtension.cs: Likewise.

svn path=/trunk/mcs/; revision=92676

16 years ago2008-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jan 2008 15:40:28 +0000 (15:40 -0000)]
2008-01-11  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c (mono_arch_output_basic_block): Use a byte load in CHECK_THIS.
Fixes #353182.

svn path=/trunk/mono/; revision=92675

16 years ago2008-01-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jan 2008 15:37:33 +0000 (15:37 -0000)]
2008-01-11  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (get_boxable_mono_type): check if the token is valid.

* verify.c (set_stack_value): changed to add an error if an
invalid type is set on stack. Changed all callers due to signature change.

* verify.c (do_stobj): implement stobj validation.

svn path=/trunk/mono/; revision=92674

16 years ago2008-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jan 2008 14:51:02 +0000 (14:51 -0000)]
2008-01-11  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (version.h): Make this work with non-bash shells.

svn path=/trunk/mono/; revision=92671

16 years ago2008-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jan 2008 14:48:10 +0000 (14:48 -0000)]
2008-01-11  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (reflection_methodbuilder_to_mono_method): No need to
set container->is_method, it was set earlier.

* metadata.c (type_in_image): Handle MVARs which belong to not finished
generic methods.

* reflection.c (mono_reflection_initialize_generic_parameter): Set
is_method of the generic container to TRUE for methods.

svn path=/trunk/mono/; revision=92669

16 years ago2008-01-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jan 2008 14:30:05 +0000 (14:30 -0000)]
2008-01-11 Rodrigo Kumpera <rkumpera@novell.com>

* unverifiable_ldfld_reference_type_by_ref.il: new test for ldfld.

* invalid_stojb_bad_token.il: test for bad ldobj token.

* invalid_stojb_token_out_of_bounds.il: same.

* make_stobj_test.sh: new test generator.

* make_test.sh: added new tests for stobj.

svn path=/trunk/mono/; revision=92668

16 years agostub Expression::Lambda
Jb Evain [Fri, 11 Jan 2008 13:04:31 +0000 (13:04 -0000)]
stub Expression::Lambda

svn path=/trunk/mcs/; revision=92667

16 years agoNew test.
Marek Safar [Fri, 11 Jan 2008 10:09:54 +0000 (10:09 -0000)]
New test.

svn path=/trunk/mcs/; revision=92658

16 years ago2008-01-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Jan 2008 10:09:05 +0000 (10:09 -0000)]
2008-01-11  Marek Safar  <marek.safar@gmail.com>

  * lambda.cs: Don't use a cast on unknown expression statement.

svn path=/trunk/mcs/; revision=92657

16 years agoIn .:
Geoff Norton [Fri, 11 Jan 2008 03:32:26 +0000 (03:32 -0000)]
In .:
* ControlHAndler.cs:  Mark all dirty areas as dirty with the Hwnd system.

2008-01-10  Geoff Norton  <gnorton@novell.com>

svn path=/trunk/mcs/; revision=92652

16 years agoIn .:
Geoff Norton [Fri, 11 Jan 2008 03:31:36 +0000 (03:31 -0000)]
In .:
2008-01-10  Geoff Norton  <gnorton@novell.com>

* XplatUICarbon.cs:  Clip the Graphics context to the invalid area
tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
window manager.

svn path=/trunk/mcs/; revision=92651

16 years ago2008-01-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 11 Jan 2008 00:39:15 +0000 (00:39 -0000)]
2008-01-10  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
failing test.

svn path=/trunk/mcs/; revision=92644

16 years ago2008-01-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jan 2008 22:52:23 +0000 (22:52 -0000)]
2008-01-10  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
Linux doesn't care, having a minimum matches MS and keeps the window
from becoming too small to use window decorations.
[Fixes bug #338996]

svn path=/trunk/mcs/; revision=92631

16 years ago2008-01-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Jan 2008 22:19:04 +0000 (22:19 -0000)]
2008-01-10  Zoltan Varga  <vargaz@gmail.com>

* metadata.c (type_in_image): Handle type parameters properly.

* class-internals.h (MonoGenericParam): Add an 'image' argument to track
memory ownership of this structure.

svn path=/trunk/mono/; revision=92628

16 years ago2008-01-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jan 2008 21:47:21 +0000 (21:47 -0000)]
2008-01-10  Jonathan Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
ShowFocusCues.  Make focus rectangles fit the text instead of the whole
control.  [Fixes bug #325419]

svn path=/trunk/mcs/; revision=92627

16 years ago2008-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Jan 2008 19:13:29 +0000 (19:13 -0000)]
2008-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeDeformatter.cs: Use RSAManaged and the new overloaded
PKCS1.Verify_v15 with tryNonStandardEncoding == true when verifying
timestamping certificate signatures. Fix for #350958

svn path=/trunk/mcs/; revision=92616

16 years ago2008-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Jan 2008 19:12:50 +0000 (19:12 -0000)]
2008-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* PKCS1.cs: Add a new method that optionally checks for badly
padding, technically invalid, PKCS#1 block. This is required to
support timestamping verification for Authenticode (since the
main timestamping service does this). Fix for #350958

svn path=/trunk/mcs/; revision=92615

16 years ago2008-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Jan 2008 19:12:15 +0000 (19:12 -0000)]
2008-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* PKCS12.cs, X509Certificate.cs, X509Chain.cs, X509Extension.cs:
Synchronize/update with Mono.Security assembly

svn path=/trunk/mcs/; revision=92614

16 years agoremove dead code/compiler warning
Sebastien Pouliot [Thu, 10 Jan 2008 19:07:50 +0000 (19:07 -0000)]
remove dead code/compiler warning

svn path=/trunk/mcs/; revision=92613

16 years ago2008-01-10 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 10 Jan 2008 19:05:37 +0000 (19:05 -0000)]
2008-01-10  Geoff Norton  <gnorton@novell.com>

        * cs-tokenizer.cs: One more token to distinguish between method and lambda
        arguments

svn path=/trunk/mcs/; revision=92612

16 years ago2008-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Jan 2008 18:33:05 +0000 (18:33 -0000)]
2008-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeDeformatter.cs: Use RSAManaged and the new overloaded
PKCS1.Verify_v15 with tryNonStandardEncoding == true when verifying
timestamping certificate signatures. Fix for #350958

svn path=/trunk/mcs/; revision=92611

16 years ago2008-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Jan 2008 18:32:50 +0000 (18:32 -0000)]
2008-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* PKCS1.cs: Add a new method that optionally checks for badly
padding, technically invalid, PKCS#1 block. This is required to
support timestamping verification for Authenticode (since the
main timestamping service does this). Fix for #350958

svn path=/trunk/mcs/; revision=92610

16 years ago2008-01-10 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 10 Jan 2008 18:07:27 +0000 (18:07 -0000)]
2008-01-10  Geoff Norton  <gnorton@novell.com>

        * ControlHandler.cs:  Ensure we send controls a WM_WINDOWPOSCHANGED
        when their bounds are changed by the carbon system.  Fixes initial sizing
        of PDN DocumentWorkspace bug.

svn path=/trunk/mcs/; revision=92608

16 years agoTARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works
Konstantin Triger [Thu, 10 Jan 2008 17:56:47 +0000 (17:56 -0000)]
TARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works

svn path=/trunk/mcs/; revision=92606

16 years ago2008-01-10 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 10 Jan 2008 16:46:48 +0000 (16:46 -0000)]
2008-01-10 Igor Zelmanovich <igorz@mainsoft.com>

* webform.js:
implement useAsync feature for Callback.

svn path=/trunk/mcs/; revision=92600

16 years agoenlarge memory size
Leonid Freydovich [Thu, 10 Jan 2008 16:32:33 +0000 (16:32 -0000)]
enlarge memory size

svn path=/trunk/mcs/; revision=92596

16 years ago2008-01-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Jan 2008 16:27:10 +0000 (16:27 -0000)]
2008-01-10  Zoltan Varga  <vargaz@gmail.com>

* DelegateTest.cs: Add CreateDelegate tests.

svn path=/trunk/mcs/; revision=92595

16 years ago2008-01-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Jan 2008 16:25:48 +0000 (16:25 -0000)]
2008-01-10  Zoltan Varga  <vargaz@gmail.com>

* Delegate.cs: Implement argument checking in CreateDelegate(Type,object,MethodInfo)
method. Make the CreateDelegate(Type,MethodInfo) overload calls this version.
Fixes #352805.

svn path=/trunk/mcs/; revision=92594

16 years ago2008-01-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 10 Jan 2008 15:30:14 +0000 (15:30 -0000)]
2008-01-10  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (get_boxable_mono_type): make typedref types been just
unverifiable. check for void type.

* verify.c (do_unbox_any): added, verify opcode unbox.any.

* verify.c (do_load_function_ptr): accept method spec tokens.

svn path=/trunk/mono/; revision=92592

16 years ago2008-01-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 10 Jan 2008 15:26:14 +0000 (15:26 -0000)]
2008-01-10 Rodrigo Kumpera <rkumpera@novell.com>

* valid_ldftn_method_spec_token.il: new test
for loading function pointers for generic methods.

svn path=/trunk/mono/; revision=92591

16 years agoTARGET_JVM: use J2EEUtils.InputStreamWrapper for reading java's InputStream
Konstantin Triger [Thu, 10 Jan 2008 15:10:44 +0000 (15:10 -0000)]
TARGET_JVM: use J2EEUtils.InputStreamWrapper for reading java's InputStream

svn path=/trunk/mcs/; revision=92588

16 years agoimplement Java InputStreamWrapper
Konstantin Triger [Thu, 10 Jan 2008 15:08:35 +0000 (15:08 -0000)]
implement Java InputStreamWrapper

svn path=/trunk/mcs/; revision=92587

16 years ago2008-01-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jan 2008 14:56:29 +0000 (14:56 -0000)]
2008-01-10  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Guard against an NRE if the user open a new form from a
SelectedIndexChanged event.  This closes the combobox dropdown, and we
were trying to dispose it.  [Fixes bug #352830]

svn path=/trunk/mcs/; revision=92586