Closed Bug 18229 Opened 25 years ago Closed 25 years ago

Bogus class file names being generated on Windows

Categories

(Rhino Graveyard :: Compiler, defect, P3)

x86
Windows NT

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: treilly, Assigned: norrisboyd)

Details

The first line of
org.mozilla.javascript.optimizer.OptClassNameHelper.setTargetClassFileName(String)
is the bug.  It is assuming the path separator is a '/' causing bad things
to happen on Windows when the path separator is a '\\'.  Using
File.separatorChar fixed the problem for me.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed (Thanks for pointing this out!):

Checking in OptClassNameHelper.java;
/cvsroot/mozilla/js/rhino/org/mozilla/javascript/optimizer/OptClassNameHelper.ja
va,v  <--  OptClassNameHelper.java
new revision: 1.3; previous revision: 1.2
done
You need to log in before you can comment on or make changes to this bug.