Test-injection中注入对象,只能直接在 test-injection中直接初始化。

1:离开初始化环境,将会不工作。

例如: 下面的将会出现错误。

DATA  lc type ref to ClassA.

create object lc.

test-injection input_class.

     lc_classa = lc 

end-injection.

需要:

test-injection input_class.

    create object lc type ClassA.

end-injection.

猜你喜欢

转载自www.cnblogs.com/liyafei/p/11429063.html