diff options
author | Jean-Marie Henaff <jmhenaff@google.com> | 2014-05-21 15:55:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-21 15:55:42 +0000 |
commit | b6a75b0c9c57683cc6e4da6b9f5ca080e5239748 (patch) | |
tree | e6b068b3b9238745c005c316456be1ed3f4c74a0 | |
parent | b3d3bb5f259a22cc06c1721b311eee89d91b89fb (diff) | |
parent | 217aefdbe3366a7ee102d7542e4bd05dcf22f76d (diff) | |
download | toolchain_jack-b6a75b0c9c57683cc6e4da6b9f5ca080e5239748.zip toolchain_jack-b6a75b0c9c57683cc6e4da6b9f5ca080e5239748.tar.gz toolchain_jack-b6a75b0c9c57683cc6e4da6b9f5ca080e5239748.tar.bz2 |
Merge "Fix portability issue with package name." into jack-wip-dev
-rw-r--r-- | jack/src/com/android/jack/ecj/loader/jast/JAstClasspath.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jack/src/com/android/jack/ecj/loader/jast/JAstClasspath.java b/jack/src/com/android/jack/ecj/loader/jast/JAstClasspath.java index eef0411..4d96325 100644 --- a/jack/src/com/android/jack/ecj/loader/jast/JAstClasspath.java +++ b/jack/src/com/android/jack/ecj/loader/jast/JAstClasspath.java @@ -19,6 +19,7 @@ package com.android.jack.ecj.loader.jast; import com.android.jack.ir.ast.JDefinedClass; import com.android.jack.ir.ast.JDefinedClassOrInterface; import com.android.jack.ir.ast.JType; +import com.android.jack.lookup.JLookup; import com.android.jack.lookup.JLookupException; import com.android.jack.lookup.JNodeLookup; import com.android.jack.util.NamingTools; @@ -130,7 +131,8 @@ public class JAstClasspath extends ClasspathLocation { @Override public boolean isPackage(@CheckForNull String qualifiedPackageName) { assert (qualifiedPackageName != null); - return lookup.isPackageOnPath(qualifiedPackageName); + return lookup.isPackageOnPath( + qualifiedPackageName.replace(File.separatorChar, JLookup.PACKAGE_SEPARATOR)); } /** |