bug 279028 Java 6 compilation problem with generics

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@330 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
David Jencks 2009-06-03 21:09:47 +00:00
parent 7664bb8cf6
commit ac3bd2b73f
1 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ public class ContinuationSupport
try
{
s3=ServletRequest.class.getMethod("startAsync",null)!=null;
Class<?> s3c = ContinuationSupport.class.getClassLoader().loadClass("org.eclipse.jetty.continuation.Servlet3Continuation");
s3cc=s3c.getConstructors()[0];
Class<? extends Continuation> s3c = ContinuationSupport.class.getClassLoader().loadClass("org.eclipse.jetty.continuation.Servlet3Continuation").asSubclass(Continuation.class);
s3cc=s3c.getConstructor(ServletRequest.class, ServletResponse.class);
s3=true;
}
catch (Exception e)
@ -56,8 +56,8 @@ public class ContinuationSupport
try
{
j6=ContinuationSupport.class.getClassLoader().loadClass("org.mortbay.util.ajax.ContinuationSupport")!=null;
Class<?> j6c = ContinuationSupport.class.getClassLoader().loadClass("org.eclipse.jetty.continuation.Jetty6Continuation");
j6cc=j6c.getConstructors()[0];
Class<? extends Continuation> j6c = ContinuationSupport.class.getClassLoader().loadClass("org.eclipse.jetty.continuation.Jetty6Continuation").asSubclass(Continuation.class);
j6cc=j6c.getConstructor(ServletRequest.class, ServletResponse.class, Continuation.class);
j6=true;
}
catch (Exception e)