COBCH1762 オープンの種類のパラメーターを by reference または出力として渡せない

オープン型のパラメーターを参照または出力のパラメーターとして定義しようとしました。オープン型のパラメーターは、値でのみ渡せます。

オープン型とは、汎用パラメーターに基づく型、オープン型の配列、または汎用引数のいずれかがそれ自身オープン型である汎用型です。

次の例では、item1 および item2 が参照で渡されます。このエラーを修正するには、これらを値で渡す必要があります。

$set ilusing(java.lang.Comparable)
 class-id GenericMath.
 method-id main static.
 01 n1 binary-double.
 01 n2 binary-double.
 
  set n1 to 999
  set n2 to 100
  display n1 space n2
  display self::Min[binary-double](n1 n2)
  display self::Max[binary-double](n1 n2)
  goback.
  end method.

 method-id Min using T static.
 constraints.
  constrain T implements type java.lang.Comparable.
 procedure division using by reference item1 as T item2 as T  *> generic params NOT passed by value
                      returning res as T.
  if item1::compareTo(item2) < 0
    set res to item1
  else
    set res to item2
  end-if
 end method.