Command Windows substitutes && in Java Source

Hi all,

I'm quite new to PL/SQL developer, so I hope I'm not asking an obvious question...

I know "&&" is a special sequence of characters for PL/SQL Developer. However, I'm trying to execute a "create or replace and compile java source" from a "Command Window" and, indeed, the Java source contains such sequence (which is "AND" operator in Java language).

When I execute it, it compiles ok, but the generated source only contains one single "&" instead of two, so the meaning is not the same and the code does not execute correctly.

I know I can split the "if" condition into two nested "if" statements, but I'd like to know if there's a workaround for this.

BTW, if I execute it from a "Java Source" window, PL/SQL Developer gets disconneted from Oracle during compilation... I don't know the reason for this.

Thanks in advance for any help.

Regards,
Miguel Angel
 
Back
Top