Previous Topic Next topic Print topic


COBCH1660 Type is not disposable

The item specified in the PERFORM USING statement is not disposable.

In the following example, d1 must implement the java.lang.AutoCloseable interface.

class-id myClass.
method-id myMethod.
 perform using d1 as string = "Hello" *> implement d1 as type java.lang.AutoCloseable
   continue
 end-perform.
end method.
end class.
Previous Topic Next topic Print topic