keith-turner commented on code in PR #5217: URL: https://github.com/apache/accumulo/pull/5217#discussion_r1935787269
########## core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java: ########## @@ -505,6 +523,19 @@ public ColumnVisibility(byte[] expression) { validate(expression); } + /** + * Creates a new column visibility by performing a deep copy of an existing column visibility + * object + * + * @param visibility ColumnVisibility object + * @since 2.1.4 + */ + public ColumnVisibility(ColumnVisibility visibility) { + byte[] incomingExpression = visibility.expression; + this.expression = Arrays.copyOf(incomingExpression, incomingExpression.length); + this.node = new Node(visibility.node); Review Comment: I am experimenting w/ adding an immutable parse tree to accumulo-access as a possible way to address this. -- 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: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org