Could you kindly verify if the __future__ imports will in-fact fail as the jython version has been downgraded from 2.5.1 in 11g to 2.2 in 12c?
What bothers me is the Syntax Error as I know the statements is Absolutely fine and the Jython.org does not have a version 2.2 that i could download and set up to test.
With most Current solutions written in Jython in 11g using the With context will invariably fail in 12c post migration. This is a big worry.
Procedure Code:
from __future__ import with_statement
etc.
giving the error:
ODI-1590: The execution of the script failed.
Caused By: org.apache.bsf.BSFException: exception from Jython:
SyntaxError: ('from __future__ imports must occur at the beginning of the file', ('<string>', 2, 0, ''))