possible-bug

Type.GetInterface and nested types

Hi, I just discovered a very strange behavior with Type.GetInterface and nested Types. The following sample code will show the problem, I am using the Type.FullName of an interface to check whether a given type derives from that interface: public interface IStandardInterface {} public class StandardClass : IStandardInterface {} class...

Why does my CSS (apparantly) force a scrollbar to appear regardless of content size?

I apologize for the long paste of code here, but this has been bugging me for a good few hours now. I'm working on porting my entire site over into a new template, and I'm trying to make the various areas and things more size-aware so I can contain most of them in resizeable dockable windows and things, a very neat concept that's working...

WPF Font: Why are some characters missing?

I'm writing a WPF app and the font that I am using only has problems running in WPF - it works fine using it in anything else (notepad, wordpad, etc.). The problem with WPF is that it falls back to another font sometimes. By "sometimes" I mean that only characters [a-zA-Z] appear to render correctly - everything else appears to be rend...

Maven2 - problem with pluginManagement and parent-child relationship

from maven documentation pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only...

Dynamically created TextBox has no focus with MinimumSize and Font changed.

I have a strange one. Create a new form. Then add the following function : protected override void OnLoad ( EventArgs e ) { if ( _goWrong ) { this.MinimumSize = new System.Drawing.Size ( 420, 161 ); this.Font = new Font ( "Tahoma", this.Font.Size, this.Font.Style ); } TextBox box = new TextBox (); this.Controls.Add ...

jQuery Validation plugin attaches only to the first form

I have noticed a strange jQuery Validation plugin behaviour, possible a bug (tested with the latest version at http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js). Suppose I have several forms on a page. This code leads to only first form to be validated: $(document).ready(function() { $("form").validate(); }); ...

XmlSerializer bug when serializing collection of collections without root element?

This is a bit of a long question, but I've made it as terse as possible, so please bear with me. It looks to me like a bug in the XmlSerializer class but before I file it with Microsoft I'd like to see if there's anything I've missed, which is entirely possible. I'm attempting to generate the following XML as a representative case, whic...

Why am I having this InstantiationException in Java when accessing final local variables?

I was playing with some code to make a "closure like" construct ( not working btw ) Everything looked fine but when I tried to access a final local variable in the code, the exception InstantiationException is thrown. If I remove the access to the local variable either by removing it altogether or by making it class attribute instead...

Which option controls the color of this text?

I have applied a color theme called Vibrant Ink (or some modification of it), and since I installed Visual Studio 2010 Pro Power Tools all my statement completion boxes are unreadable. . What setting changes the colors of these boxes? Preferrably, I'd like to change the background color to something darker, but if that's not possible ...

Javascript parseInt gives very unexpected results

I'm parsing a string to check if it's a date, and by chance we now discovered that my method doesn't work for dates in august or september. This is what I do (the input isn't really hard-coded, obviously, but for brevity...): var str = '2010-08-26 14:53'; var data = str.split(' '); // ['2010-08-26', '14:53'] var date = data[0].split('-...

VBA: What is causing this string argument passed to ParamArray to get changed to a number (that looks suspiciously like a pointer)?

FINAL EDIT: It does indeed appear to be a compiler bug - see the accepted answer. Using VBA within Excel 2007, I have the following code in 'Class1': Option Explicit Public Function strange(dummy As String, ParamArray pa()) Debug.Print pa(LBound(pa)) End Function Public Sub not_strange(dummy As String, ParamArray pa()) Debug....