From 100aebfe4c340ba8555895f165907c2b397b3898 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 30 Mar 2012 19:29:57 +0200 Subject: [PATCH] PY-6063 (don't mix paths and URLs) --- .../com/intellij/openapi/roots/impl/ContentEntryImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java b/platform/lang-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java index 0acdeabd2842..180caedecc21 100644 --- a/platform/lang-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java +++ b/platform/lang-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java @@ -243,9 +243,10 @@ public class ContentEntryImpl extends RootModelComponentBase implements ContentE } private void assertFolderUnderMe(@NotNull String url) { - final String rootUrl = getUrl(); - if (!FileUtil.isAncestor(rootUrl, url, false)) { - LOG.error("The file " + url + " is not under content entry root " + rootUrl); + final String path = VfsUtil.urlToPath(url); + final String rootPath = VfsUtil.urlToPath(getUrl()); + if (!FileUtil.isAncestor(rootPath, path, false)) { + LOG.error("The file '" + path + "' is not under content entry root '" + rootPath + "'"); } }