From 314f18644f73dcb75521754e70561c831fe709bf Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Fri, 6 Sep 2013 08:47:46 -0600 Subject: [PATCH] make getChars and releaseChars static, to prevent them being confused with implementations in other objects if they're not inlined (debug mode) --- classpath/java-io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classpath/java-io.cpp b/classpath/java-io.cpp index f3ed5bafaa..b93b3f94ae 100644 --- a/classpath/java-io.cpp +++ b/classpath/java-io.cpp @@ -222,11 +222,11 @@ class Directory { } // namespace -inline string_t getChars(JNIEnv* e, jstring path) { +static inline string_t getChars(JNIEnv* e, jstring path) { return reinterpret_cast(e->GET_CHARS(path, 0)); } -inline void releaseChars(JNIEnv* e, jstring path, string_t chars) { +static inline void releaseChars(JNIEnv* e, jstring path, string_t chars) { e->RELEASE_CHARS(path, chars); }