Skip to content

Commit 143b41a

Browse files
committed
make function template change static private
1 parent 422f8e6 commit 143b41a

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

binding.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"variables": {
3+
#"arch%": "amd64"
34
"arch%": "i386" # linux JVM architecture. See $(JAVA_HOME)jre/lib/<@(arch)/server/
45
},
56
"targets": [
@@ -32,7 +33,7 @@
3233
"$(JAVA_HOME)/include/linux",
3334
],
3435
"libraries": [
35-
"-L$(JAVA_HOME)jre/lib/i386/server/",
36+
"-L$(JAVA_HOME)jre/lib/<@(arch)/server/",
3637
"-Wl,-rpath,$(JAVA_HOME)jre/lib/<@(arch)/server/",
3738
"-ljvm"
3839
]

src/javaObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <sstream>
66
#include <algorithm>
77

8-
std::map<std::string, v8::Persistent<v8::FunctionTemplate> > sFunctionTemplates;
8+
/*static*/ std::map<std::string, v8::Persistent<v8::FunctionTemplate> > JavaObject::sFunctionTemplates;
99

1010
/*static*/ void JavaObject::Init(v8::Handle<v8::Object> target) {
1111
}

src/javaObject.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class JavaObject : public node::ObjectWrap {
2929
static v8::Handle<v8::Value> fieldGetter(v8::Local<v8::String> property, const v8::AccessorInfo& info);
3030
static void fieldSetter(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
3131

32+
static std::map<std::string, v8::Persistent<v8::FunctionTemplate> > sFunctionTemplates;
3233
Java* m_java;
3334
jobject m_obj;
3435
jclass m_class;

0 commit comments

Comments
 (0)