|
24 | 24 | import org.hibernate.validator.spi.messageinterpolation.LocaleResolver;
|
25 | 25 | import org.hibernate.validator.spi.resourceloading.ResourceBundleLocator;
|
26 | 26 |
|
27 |
| -import com.sun.el.ExpressionFactoryImpl; |
28 |
| - |
29 | 27 | /**
|
30 | 28 | * Resource bundle backed message interpolator.
|
31 | 29 | *
|
@@ -195,14 +193,16 @@ private static ExpressionFactory buildExpressionFactory() {
|
195 | 193 | return expressionFactory;
|
196 | 194 | }
|
197 | 195 |
|
198 |
| - // Finally we try the CL of the EL implementation itself. This is necessary for OSGi now that the |
199 |
| - // implementation is separated from the API. |
200 |
| - SetContextClassLoader.action( ExpressionFactoryImpl.class.getClassLoader() ); |
201 |
| - if ( canLoadExpressionFactory() ) { |
202 |
| - ExpressionFactory expressionFactory = ELManager.getExpressionFactory(); |
203 |
| - LOG.debug( "Loaded expression factory via com.sun.el classloader" ); |
204 |
| - return expressionFactory; |
205 |
| - } |
| 196 | + // We do not directly rely on Expressly anymore, which is the RI of EL. |
| 197 | + // Keeping the code for now, just in case we decide to come back to OSGi support... |
| 198 | + // // Finally we try the CL of the EL implementation itself. This is necessary for OSGi now that the |
| 199 | + // // implementation is separated from the API. |
| 200 | + // SetContextClassLoader.action( com.sun.el.ExpressionFactoryImpl.class.getClassLoader() ); |
| 201 | + // if ( canLoadExpressionFactory() ) { |
| 202 | + // ExpressionFactory expressionFactory = ELManager.getExpressionFactory(); |
| 203 | + // LOG.debug( "Loaded expression factory via com.sun.el classloader" ); |
| 204 | + // return expressionFactory; |
| 205 | + // } |
206 | 206 | }
|
207 | 207 | catch (Throwable e) {
|
208 | 208 | throw LOG.getUnableToInitializeELExpressionFactoryException( e );
|
|
0 commit comments