This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch release_practice
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/release_practice by this push:
new 03f9925 oops
03f9925 is described below
commit 03f9925724ecef08baf29491a0d50e41d187e6f1
Author: Alex Harui <[email protected]>
AuthorDate: Fri May 31 23:25:26 2019 -0700
oops
---
.../org/apache/royale/compiler/internal/units/SWCCompilationUnit.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/compiler/src/main/java/org/apache/royale/compiler/internal/units/SWCCompilationUnit.java
b/compiler/src/main/java/org/apache/royale/compiler/internal/units/SWCCompilationUnit.java
index 03b66b4..2d50445 100644
---
a/compiler/src/main/java/org/apache/royale/compiler/internal/units/SWCCompilationUnit.java
+++
b/compiler/src/main/java/org/apache/royale/compiler/internal/units/SWCCompilationUnit.java
@@ -467,7 +467,7 @@ public class SWCCompilationUnit extends CompilationUnitBase
int slash = absoluteFileName.lastIndexOf("/");
int backslash = absoluteFileName.lastIndexOf("\\");
int lastSep = slash > backslash ? slash : backslash;
- absoluteFileName = absoluteFileName.substring(slash +
1);
+ absoluteFileName = absoluteFileName.substring(lastSep +
1);
}
}
StringBuilder reportBuilder = new StringBuilder(absoluteFileName);