当前位置:网站首页>ByteBuffer.position 抛出异常 IllegalArgumentException
ByteBuffer.position 抛出异常 IllegalArgumentException
2022-07-28 05:17:00 【wang0112233】
源码

低版本的可能直接会抛出IllegalArgumentException ,没有msg
//position(int)方法的源码
public final Buffer position(int newPosition) {
if ((newPosition > limit) || (newPosition < 0))
throw new IllegalArgumentException();
position = newPosition;
if (mark > position) mark = -1;
return this;
}
边栏推荐
- Implementation of simple upload function in PHP development
- VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard
- 数据库面试
- Printf function of input and output function in C language
- Jsonp single sign on permission verification
- JMeter related knowledge sorting
- Simulink automatically generates STM32 code details
- Eccv2022 | 29 papers of Tencent Youtu were selected, including face security, image segmentation, target detection and other research directions
- lamda 获取当前循环数,AtomicInteger
- Offline loading of wkwebview and problems encountered
猜你喜欢

【ARXIV2204】Vision Transformers for Single Image Dehazing
Printf function of input and output function in C language

IDEA配置 service(Run Dashboard) 服务,多模块同时启动

First acquaintance with C language (1)

How practical is the struct module? Learn a knowledge point immediately

在ruoyi生成的对应数据库的代码 之后我该怎么做才能做出下边图片的样子

IDEA使用dev-tool实现热部署

【CVPR2022】Multi-Scale High-Resolution Vision Transformer for Semantic Segmentation

【SLAM】LVI-SAM解析——综述

多线程进阶:volatile的作用以及实现原理
随机推荐
多线程进阶:synchronized底层原理,锁优化、锁升级的过程
Confused, I'm going to start running in the direction of [test]
面试了一位38岁程序员,听说要加班就拒绝了
FeignClient 调用GET 方法报错 ResultVO{result=未知异常,异常详情:Request method ‘POST‘ not supported
Google browser cannot open localhost:3000. If you open localhost, you will jump to the test address
Autoreleasepool problem summary
What are the methods of array objects in Es5 and what are the new methods in ES6
数据库面试
2022 summer practice (first week)
接口幂等性问题
【计算机三级信息安全】信息安全保障概述
Mysql处理遗留数据样例
How to successfully test php7.1 connecting to sqlserver2008r2
The most detailed installation of windows10 virtual machine, install virtual machine by hand, and solve the problem that the Hyper-V option cannot be found in the home version window
Applet import project
【单例模式】懒汉模式的线程安全问题
【ARIXV2204】Neighborhood attention transformer
从微服务基本概念到核心组件-通过一个实例来讲解和分析
Tomato timing dimming table lamp touch chip-dlt8t10s-jericho
VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard