[jboss-cvs] JBossAS SVN: r78332 - projects/jpa/trunk/sandbox/src/test/java/org/jboss/jpa/sandbox/test/remote.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Sep 10 06:52:23 EDT 2008
Author: wolfc
Date: 2008-09-10 06:52:23 -0400 (Wed, 10 Sep 2008)
New Revision: 78332
Modified:
projects/jpa/trunk/sandbox/src/test/java/org/jboss/jpa/sandbox/test/remote/RemoteTestCase.java
Log:
Make it compile with Java 5
Modified: projects/jpa/trunk/sandbox/src/test/java/org/jboss/jpa/sandbox/test/remote/RemoteTestCase.java
===================================================================
--- projects/jpa/trunk/sandbox/src/test/java/org/jboss/jpa/sandbox/test/remote/RemoteTestCase.java 2008-09-10 10:38:51 UTC (rev 78331)
+++ projects/jpa/trunk/sandbox/src/test/java/org/jboss/jpa/sandbox/test/remote/RemoteTestCase.java 2008-09-10 10:52:23 UTC (rev 78332)
@@ -52,7 +52,9 @@
private static DerbyService derbyService;
- private MarshalledObject<EntityManagerFactory> mo;
+ // not generic in Java 5
+ @SuppressWarnings("unchecked")
+ private MarshalledObject mo;
private InitialContext ctx;
@@ -85,6 +87,7 @@
derbyService.start();
}
+ @SuppressWarnings("unchecked")
@Before
public void setup() throws IOException
{
@@ -95,13 +98,13 @@
RemotelyInjectEntityManagerFactory factory = new RemotelyInjectEntityManagerFactory(metaData, "dummy");
- mo = new MarshalledObject<EntityManagerFactory>(factory);
+ mo = new MarshalledObject(factory);
}
@Test
public void test1() throws IOException, ClassNotFoundException
{
- EntityManagerFactory factory = mo.get();
+ EntityManagerFactory factory = (EntityManagerFactory) mo.get();
EntityManager em = factory.createEntityManager();
@@ -112,7 +115,7 @@
@Test
public void test2() throws IOException, ClassNotFoundException
{
- EntityManagerFactory factory = mo.get();
+ EntityManagerFactory factory = (EntityManagerFactory) mo.get();
EntityManager em = factory.createEntityManager();
More information about the jboss-cvs-commits
mailing list