When writing any simple generics code like:
List<Integer> list = new ArrayList<Integer>();
in a SQLJ file, JDeveloper is unable to translate the file, failing with a series of
Error(438,7): Missing semicolon.
Error(438,7): Unbalanced curly braces.
Error(455,15): Unbalanced curly braces.
Error(473,13): Java Parsing. Encountered: }Expected: <EOF> ; "abstract" ...; "public" ...; "interface" ...; "#sql" ...; ";" ...;
error messages.
This happens both using JDev 10g EA1 or using SQLJ-8.1.7 command line to translate the files.
Will Oracle fix the internal SQLJ translator to fully support Java5 language features?
Or release a new version of the stand-alone SQLJ translator?
And if I'm at it, will JDev support "plug-in" SQLJ translators? via command-line? via invoking the translator class directly (much faster)?
This is serious since it totally prevents me from using generics with SQLJ!
Regards,
Yaniv