You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/04/15 17:47:39 UTC

[GitHub] [incubator-druid] leventov commented on a change in pull request #7477: Java 9 compatible specialized class compilation

leventov commented on a change in pull request #7477: Java 9 compatible specialized class compilation
URL: https://github.com/apache/incubator-druid/pull/7477#discussion_r275473143
 
 

 ##########
 File path: processing/src/main/java/org/apache/druid/query/monomorphicprocessing/SpecializationService.java
 ##########
 @@ -209,14 +349,20 @@ T specialize(ImmutableMap<Class<?>, Class<?>> classRemapping)
     @SuppressWarnings("unchecked")
     private Class<T> defineClass(String specializedClassName, byte[] specializedClassBytecode)
     {
-      return (Class<T>) UNSAFE.defineClass(
-          specializedClassName,
-          specializedClassBytecode,
-          0,
-          specializedClassBytecode.length,
-          prototypeClass.getClassLoader(),
-          prototypeClass.getProtectionDomain()
-      );
+      if (DEFINE_CLASS_NOT_SUPPORTED_EXCEPTION != null) {
+        throw new UnsupportedOperationException(DEFINE_CLASS_NOT_SUPPORTED_EXCEPTION);
 
 Review comment:
   Could you please add a message

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org