问题描述:

import com.sun.image.codec.jpeg.JPEGCodec 和 com.sun.image.codec.jpeg.JPEGImageEncoder 两个包报红线

import com.sun.image.codec.jpeg.JPEGCodec不通过,报错报红线

解决办法:

Windows --> Priferences --> Compiler --> Errors/Warnings
Deprecated and restricted API下的 Forbidden reference (access rules)由 Error 改成Warning 后Apply --> OK 即可去除红线。

import com.sun.image.codec.jpeg.JPEGCodec不通过,报错报红线

相关文章:

  • 2021-10-08
  • 2021-09-18
  • 2021-04-12
  • 2022-01-01
  • 2021-12-17
  • 2021-09-04
  • 2021-06-16
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2021-12-24
  • 2022-12-23
  • 2021-10-01
  • 2021-11-13
相关资源
相似解决方案