[
https://jira.jboss.org/jira/browse/JASSIST-114?page=com.atlassian.jira.pl...
]
Pete Muir commented on JASSIST-114:
-----------------------------------
Index: src/test/test/javassist/proxy/ProxySerializationTest.java
===================================================================
--- src/test/test/javassist/proxy/ProxySerializationTest.java (revision 534)
+++ src/test/test/javassist/proxy/ProxySerializationTest.java (working copy)
@@ -30,8 +30,8 @@
try {
String name = "proxytest_1";
- Constructor constructor = proxyClass.getConstructor(String.class);
- TestClass proxy = (TestClass)constructor.newInstance(name);
+ Constructor constructor = proxyClass.getConstructor(new Class[] {
String.class });
+ TestClass proxy = (TestClass)constructor.newInstance(new String[] { name });
((ProxyObject)proxy).setHandler(handler);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(bos);
@@ -57,8 +57,8 @@
try {
String name = "proxytest_2";
- Constructor constructor = proxyClass.getConstructor(String.class);
- TestClass proxy = (TestClass)constructor.newInstance(name);
+ Constructor constructor = proxyClass.getConstructor(new Class[] {
String.class });
+ TestClass proxy = (TestClass)constructor.newInstance(new String[] { name} );
((ProxyObject)proxy).setHandler(handler);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ProxyObjectOutputStream out = new ProxyObjectOutputStream(bos);
Source compatibility with Java 1.4 is declared but test cases uses
Java 5 syntax
--------------------------------------------------------------------------------
Key: JASSIST-114
URL:
https://jira.jboss.org/jira/browse/JASSIST-114
Project: Javassist
Issue Type: Bug
Reporter: Pete Muir
Assignee: Shigeru Chiba
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira