jbonofre commented on code in PR #2934:
URL: https://github.com/apache/avro/pull/2934#discussion_r1634945222


##########
lang/java/avro/src/main/java/org/apache/avro/specific/SpecificDatumReader.java:
##########
@@ -24,12 +24,26 @@
 import org.apache.avro.io.ResolvingDecoder;
 import org.apache.avro.util.ClassUtils;
 import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
 
 /**
  * {@link org.apache.avro.io.DatumReader DatumReader} for generated Java
  * classes.
  */
 public class SpecificDatumReader<T> extends GenericDatumReader<T> {
+
+  public static final String[] SERIALIZABLE_PACKAGES;
+
+  static {
+    SERIALIZABLE_PACKAGES = 
System.getProperty("org.apache.avro.SERIALIZABLE_PACKAGES",
+        
"java.lang,java.math,java.io,java.net,org.apache.avro.reflect").split(",");
+  }
+
+  private List<String> trustedPackages = new ArrayList<String>();
+  private boolean trustAllPackages = false;

Review Comment:
   it was the initial idea, but it could be confusing for users/contributors. 
Let me improve a bit this part to be clearer.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to