Alan,
Please view this tech note on the subject.

SYMPTOM: 
Reverse engineering Java file fails with "Parser Error: near token"
CAUSE:
Java reverse engineering cannot correctly reverse engineer the following
line:
String bs = "\\";
RESOLUTION:
The work around is to use:
String bs = "\134\134"

For more information, contact Rational Software Technical Support.

....Raida
Raida Synnestvedt
Rose Support
Rational Software

-----Original Message-----
From: Cote, Alan T [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 6:34 AM
To: '[EMAIL PROTECTED]'
Subject: (ROSE) Bug in reverse-engineering Java code?



I think I've found a bug in reverse-engineering (or round-trip engineering)
Java Code with Rose 2000e (and Rose 2001) Enterprise Edition:  A line of
code of the form,

protected static final String BASE_DIR = "C:\\";

seems to confuse the parser.  I *think* the parser is using the \" sequence
to escape a ", rather than recognizing the \\ sequence as an escaped \.  The
result appears to be that the parser thinks that the string literal is
continuing beyond the statement.

Has anyone a definitive answer on whether this is a bug?  How about a
workaround (that doesn't require changing the code every time it's reverse
engineered)?

- Al
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to