Author: pete.muir(a)jboss.org
Date: 2008-10-31 10:46:37 -0400 (Fri, 31 Oct 2008)
New Revision: 212
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ClientProxyFactory.java
Log:
fix compilation errors
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ClientProxyFactory.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ClientProxyFactory.java 2008-10-30
19:40:01 UTC (rev 211)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ClientProxyFactory.java 2008-10-31
14:46:37 UTC (rev 212)
@@ -3,7 +3,6 @@
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.List;
import java.util.Set;
@@ -15,8 +14,6 @@
import javax.webbeans.manager.Context;
import org.jboss.webbeans.ManagerImpl;
-import org.jboss.webbeans.test.beans.Tuna;
-import org.jboss.webbeans.test.util.Util;
public class ClientProxyFactory
{
@@ -37,7 +34,6 @@
this.manager = manager;
}
- @Override
public Object invoke(Object self, Method method, Method proceed, Object[] args)
throws Throwable
{
Context context = manager.getContext(bean.getScopeType());
@@ -49,9 +45,10 @@
}
private Class<?>[] addSerializableInterface(Class<?> clazz) {
- Class<?>[] interfaces = Arrays.copyOf(clazz.getInterfaces(),
clazz.getInterfaces().length + 1);
+ // TODO Doesn't compile Class<?>[] interfaces =
Arrays.copyOf(clazz.getInterfaces(), clazz.getInterfaces().length + 1);
+ Class[] interfaces = new Class[0];
interfaces[interfaces.length] = Serializable.class;
- return interfaces;
+ return interfaces;
}
private class TypeInfo {
Show replies by date