RFR: JDK-8023203 - Wrap RandomAccessFile.seek native method into a Java helper method

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 19 08:35:02 UTC 2013


On 19/08/2013 01:44, Dan Xu wrote:
> HiAll,
>
> Please review the simple change for JDK-8023203 - Wrap 
> RandomAccessFile.seek native method into a Java helper method. Itadds 
> a helper java method and makes it the only place that can invoke the 
> native method directly. Thanks!
>
> Webrev: http://cr.openjdk.java.net/~dxu/8023203/webrev/
> Bug: http://bugs.sun.com/view_bug.do?bug_id=8023203
I don't think we have a bug here but as a defensive change then it's 
okay (the duplicate check isn't a concern as a lseek is relatively 
expensive).

-Alan



More information about the core-libs-dev mailing list