Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BUG: Cannot translate SQLJ files with Java5 generics code

93753Oct 31 2005 — edited Jan 30 2006

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2006
Added on Oct 31 2005
3 comments
414 views