[jbosscache-commits] JBoss Cache SVN: r6503 - core/trunk/src/main/java/org/jboss/cache/util/concurrent.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Mon Aug 4 16:26:14 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-08-04 16:26:13 -0400 (Mon, 04 Aug 2008)
New Revision: 6503
Modified:
core/trunk/src/main/java/org/jboss/cache/util/concurrent/WithinThreadExecutor.java
Log:
Worked around http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6267833
Modified: core/trunk/src/main/java/org/jboss/cache/util/concurrent/WithinThreadExecutor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/util/concurrent/WithinThreadExecutor.java 2008-08-04 16:57:25 UTC (rev 6502)
+++ core/trunk/src/main/java/org/jboss/cache/util/concurrent/WithinThreadExecutor.java 2008-08-04 20:26:13 UTC (rev 6503)
@@ -67,22 +67,30 @@
throw new UnsupportedOperationException();
}
- public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks) throws InterruptedException
+ @SuppressWarnings("unchecked")
+ // unchecked on purpose due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6267833
+ public List invokeAll(Collection tasks) throws InterruptedException
{
throw new UnsupportedOperationException();
}
- public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
+ @SuppressWarnings("unchecked")
+ // unchecked on purpose due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6267833
+ public List invokeAll(Collection tasks, long timeout, TimeUnit unit) throws InterruptedException
{
throw new UnsupportedOperationException();
}
- public <T> T invokeAny(Collection<Callable<T>> tasks) throws InterruptedException, ExecutionException
+ @SuppressWarnings("unchecked")
+ // unchecked on purpose due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6267833
+ public Object invokeAny(Collection tasks) throws InterruptedException, ExecutionException
{
throw new UnsupportedOperationException();
}
- public <T> T invokeAny(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
+ @SuppressWarnings("unchecked")
+ // unchecked on purpose due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6267833
+ public Object invokeAny(Collection tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
{
throw new UnsupportedOperationException();
}
More information about the jbosscache-commits
mailing list