Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 212b13a

Browse files
committed
JERSEY-3172: HK2 update.
Change-Id: I356eadcfb236e5d800bf4cd34266c38a001a654e
1 parent f5be718 commit 212b13a

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

core-common/src/test/java/org/glassfish/jersey/process/internal/RequestScopeTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2012-2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2012-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -40,6 +40,7 @@
4040

4141
package org.glassfish.jersey.process.internal;
4242

43+
import java.lang.reflect.Type;
4344
import java.util.concurrent.Callable;
4445

4546
import org.glassfish.jersey.process.internal.RequestScope.Instance;
@@ -203,6 +204,11 @@ public Class<?> getImplementationClass() {
203204
return String.class;
204205
}
205206

207+
@Override
208+
public Type getImplementationType() {
209+
return getImplementationClass();
210+
}
211+
206212
@Override
207213
public String create(final ServiceHandle<?> root) {
208214
return id;

core-server/src/main/java/org/glassfish/jersey/server/internal/inject/DelegatedInjectionValueFactoryProvider.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2012-2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2012-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -41,6 +41,7 @@
4141

4242
import java.lang.annotation.Annotation;
4343
import java.lang.reflect.ParameterizedType;
44+
import java.lang.reflect.Type;
4445
import java.util.Collections;
4546

4647
import javax.inject.Inject;
@@ -165,6 +166,11 @@ public Class<T> getImplementationClass() {
165166
return clazz;
166167
}
167168

169+
@Override
170+
public Type getImplementationType() {
171+
return getImplementationClass();
172+
}
173+
168174
@Override
169175
public T create(ServiceHandle sh) {
170176
return null;

core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ActiveDescriptorBindingTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2015-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -261,6 +261,11 @@ public Class<?> getImplementationClass() {
261261
return MyRequestData.class;
262262
}
263263

264+
@Override
265+
public Type getImplementationType() {
266+
return getImplementationClass();
267+
}
268+
264269
@Override
265270
public MyRequestData create(ServiceHandle<?> serviceHandle) {
266271

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@
18951895
<guava.version>18.0</guava.version>
18961896
<hamcrest.version>1.3</hamcrest.version>
18971897
<xmlunit.version>1.6</xmlunit.version>
1898-
<hk2.version>2.5.0-b05</hk2.version>
1898+
<hk2.version>2.5.0-b30</hk2.version>
18991899
<httpclient.version>4.5</httpclient.version>
19001900
<jackson.version>2.5.4</jackson.version>
19011901
<jackson1.version>1.9.13</jackson1.version>

tests/integration/servlet-request-wrapper-binding-2/src/main/java/org/glassfish/jersey/tests/integration/servlet_request_wrapper_binding2/RequestResponseWrapperProvider.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2015-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -223,6 +223,11 @@ public Class<?> getImplementationClass() {
223223
return HttpServletRequest.class;
224224
}
225225

226+
@Override
227+
public Type getImplementationType() {
228+
return getImplementationClass();
229+
}
230+
226231
@Override
227232
public synchronized String getImplementation() {
228233
return HttpServletRequest.class.getName();

tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<profile>
121121
<id>memleak-reproducer</id>
122122
<properties>
123-
<hk2.version>2.4.0-b26</hk2.version>
123+
<hk2.version>2.5.0-b30</hk2.version>
124124
</properties>
125125
</profile>
126126
</profiles>

0 commit comments

Comments
 (0)