Use java platform not version
This commit is contained in:
parent
c12ba01014
commit
aa212df4b1
|
@ -72,7 +72,7 @@ public class AnnotationConfiguration extends AbstractConfiguration
|
|||
public static final String CONTAINER_INITIALIZER_STARTER = "org.eclipse.jetty.containerInitializerStarter";
|
||||
public static final String MULTI_THREADED = "org.eclipse.jetty.annotations.multiThreaded";
|
||||
public static final String MAX_SCAN_WAIT = "org.eclipse.jetty.annotations.maxWait";
|
||||
public static final String JAVA_TARGET_VERSION = "org.eclipse.jetty.annotations.javaTargetVersion";
|
||||
public static final String JAVA_TARGET_PLATFORM = "org.eclipse.jetty.annotations.javaTargetPlatform";
|
||||
|
||||
public static final int DEFAULT_MAX_SCAN_WAIT = 60; /* time in sec */
|
||||
public static final boolean DEFAULT_MULTI_THREADED = true;
|
||||
|
@ -504,7 +504,7 @@ public class AnnotationConfiguration extends AbstractConfiguration
|
|||
throws Exception
|
||||
{
|
||||
int javaPlatform = 0;
|
||||
Object target = context.getAttribute(JAVA_TARGET_VERSION);
|
||||
Object target = context.getAttribute(JAVA_TARGET_PLATFORM);
|
||||
if (target!=null)
|
||||
javaPlatform = Integer.valueOf(target.toString());
|
||||
AnnotationParser parser = createAnnotationParser(javaPlatform);
|
||||
|
|
Loading…
Reference in New Issue