This doesn't really answer your questions, but I'd change the code to not use DOS-style paths. At least in JDK 1.2.2 and higher (and maybe lower, I just don't know about earlier versions), Java interprets forward slashes correctly under Windows. So you can use "C:/". Or, you can use either the System.getProperty( "file.separator") and/or System.getProperty( "path.separator"), or use the File class fields (pathSeparator, pathSeparatorChar, separator, separatorChar), to get the appropriate characters.
Any of these should be more portable, and would of course avoid the Rose problem.
-----Original Message-----
From: Synnestvedt, Raida [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:38 PM
To: 'Cote, Alan T'; '[EMAIL PROTECTED]'
Subject: RE: (ROSE) Bug in reverse-engineering Java code?
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
*
*************************************************************************
