PRB: JavaTLB Emits J5008 Warnings for Some COM ObjectsLast reviewed: January 29, 1998Article ID: Q167952 |
The information in this article applies to:
SYMPTOMSWhen you use JavaTLB to generate classes from some COM objects libraries, the following warnings appear:
Method 'identifier' contains data types that cannot be accurately and safely represented in Java. The method will not be converted. CAUSEThe cause of this warning is that the method uses a type that is not supported in Java. All methods that produce a J5008 warning are omitted from the class file.
MORE INFORMATIONSome of the data types that can generate this error are:
interface IMyInterface : IUnknown { SCODE MyMethod ([in]LPOLESTR pArg1, [in]LPOLESTR pArg2, [out]IAnotherInterface **ppIAnotherInterface); ... }and you run JavaTLB on this .tlb file, you get the Compiler Warning message mentioned above.
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/ http://support.microsoft.com/support/java/ Keywords : kberrmsg kbtool kbusage JCOM JVM Technology : kbInetDev Version : 1.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |