[jboss-jira] [JBoss JIRA] Commented: (JASSIST-114) Source compatibility with Java 1.4 is declared but test cases uses Java 5 syntax
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Apr 21 09:27:10 EDT 2010
[ https://jira.jboss.org/jira/browse/JASSIST-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12526801#action_12526801 ]
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
More information about the jboss-jira
mailing list