diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-03 18:11:17 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-03 18:11:17 +0000 |
commit | b3c8f267ee4247e471fac12608a511d1af5b67e2 (patch) | |
tree | a042408209d89f31319c957e2ef76b6689fef0ce /java/sca | |
parent | 64b961dbaa5f41ec9a167e68a7efc1172abdd2a7 (diff) |
Cast a few types to make it compatible with JDK 5 which doesn't have javax.script packages
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@691705 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/engines/TuscanyJRubyScriptEngine.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/engines/TuscanyJRubyScriptEngine.java b/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/engines/TuscanyJRubyScriptEngine.java index 8be6093539..324246c32b 100644 --- a/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/engines/TuscanyJRubyScriptEngine.java +++ b/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/engines/TuscanyJRubyScriptEngine.java @@ -170,14 +170,14 @@ public class TuscanyJRubyScriptEngine extends AbstractScriptEngine return invokeImpl(obj, name, args, Object.class);
}
- public <T> T getInterface(Object obj, Class<T> clazz) {
+ public Object getInterface(Object obj, Class clazz) {
if (obj == null) {
throw new IllegalArgumentException("script object is null");
}
return makeInterface(obj, clazz);
}
- public <T> T getInterface(Class<T> clazz) {
+ public Object getInterface(Class clazz) {
return makeInterface(null, clazz);
}
@@ -443,10 +443,10 @@ public class TuscanyJRubyScriptEngine extends AbstractScriptEngine public Set<String> getNames() {
HashSet set = new HashSet();
synchronized (ctx) {
- for (int scope : ctx.getScopes()) {
- Bindings b = ctx.getBindings(scope);
+ for (Object scope : ctx.getScopes()) {
+ Bindings b = ctx.getBindings((Integer)scope);
if (b != null) {
- for (String key: b.keySet()) {
+ for (Object key: b.keySet()) {
set.add(key);
}
}
|