To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=113734 Issue #|113734 Summary|Sequence<sal_Int32> constructor should be marked expli |cit Component|udk Version|DEV300m84 Platform|Opteron/x86_64 URL| OS/Version|Linux Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|ENHANCEMENT Priority|P4 Subcomponent|code Assigned to|kr Reported by|olistraub
------- Additional comments from olistr...@openoffice.org Mon Aug 9 07:13:48 +0000 2010 ------- We ran into problems where users call a method having the following signature: void foo(Sequence<sal_Int32> aSequence); Sometimes users called the method using an sal_Int32 argument instead of a Sequence<sal_Int32> having one sal_Int32 entry: foo(5); instead of Sequence<sal_Int32> bla(1); bla[0] = 5; foo(bla); The wrong call is possible because the Sequence<T>(sal_Int32 length) constructor is not marked as explicit, so the compiler will create a sequence object of length 5. I'd suggest to make the Sequence<T>(sal_Int32 length) constructor explicit to avoid these bugs. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@udk.openoffice.org For additional commands, e-mail: issues-h...@udk.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org