no23reason opened a new pull request, #1259:
URL: https://github.com/apache/arrow-java/pull/1259

   ## What's Changed
   
   There was a check in that class that looks like it throws an exception, but 
actually does not. This means that when that branch is hit, instead of an 
actionable error, the user gets a ClassCastException like
   
   ```
   java.lang.ClassCastException: class io.netty.buffer.PooledDirectByteBuf 
cannot be cast to class io.netty.buffer.PooledUnsafeDirectByteBuf 
(io.netty.buffer.PooledDirectByteBuf and 
io.netty.buffer.PooledUnsafeDirectByteBuf are in unnamed module of loader 
org.springframework.boot.loader.launch.LaunchedClassLoader@5e9f23b4)
   ```
   
   Actually throwing the exception prevents 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: [email protected]

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

Reply via email to