ID: Q167952
The information in this article applies to:
When 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.
The 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.
Some of the data types that can generate this error are:
1. Parameters that are complex or nested structures.
2. Parameters that have multiple levels of pointer indirection.
3. Return values (or parameters marked with the retval attribute) that
are array types.
For example, if you have an interface method declaration like the following
in your .tlb file:
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.
NOTE: JavaTLB.exe has been replaced with a new utility in the SDK for Java 2.0 and newer that will have similar limitations.
For 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
Version : 1.0,1.5,1.5.1
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: November 11, 1998