BUG: Late Binding Fails on Optional Parameters in Java/COM Component (269035)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q269035 SYMPTOMS
When you try to call a Java/COM method that takes an optional parameter, you may receive the following error message:
Run-time error: '450':
Wrong number of arguments or invalid property assignment
CAUSE
This error can occur when you use late-bound clients, such as Active Server Pages (ASP), because they do not have access to type information.
RESOLUTION
To work around this problem, create a Variant, and call its putEmpty method to act as the arguments that are optional and not being supplied. Refer to the "More Information" section for sample code.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbBug kbFAQ kbJava kbnofix KB269035 |
---|
|