The J adapter class generator cannot perform the following types of operation:
A COBOL class inheriting a Java class cannot be defined. Even if a COBOL class inherits an adapter class, the Java class function cannot be overwritten.
Passing a COBOL object as a parameter
No COBOL object can be passed as a parameter for invoking a method, nor can a COBOL object be set for a Java field. Only an adapter object produced by wrapping a Java object can be passed to Java.
Therefore, the following restrictions apply to COBOL:
Listener
Java registers a listener object, in which event processing logic is written, within an object that generates an event. However, since no COBOL object can be registered in a Java object, COBOL cannot be used to write listeners.
Collection class
No COBOL object can be registered in a Java collection class. When using COBOL objects as a collection, use a COBOL collection class.
No COBOL program can be invoked from Java. A COBOL program invoked from Java can use no adapter class.