ADF application has view object containing bind variable based on groovy expression. The latter tries to access ADF security context. On compilation I get static type checking error:
[Static type checking] – [ADF security error] Accessing the securityContext property on class oracle.adf.share.ADFContext is not permitted.
You need to switch definition type of groovy expression. Move it from external file based (*.bcs) to inline mode. As far as I’ve noticed groovy expression external file based definition came into scene with ADF 12c. So this is like moving backwards, but it solves problem.
This kind of definition:
Note: TestView refers to file TestView.bcs, where groovy script is saved.
It needs to be replaced with:
ADF Version 18.104.22.168.0