【发布时间】:2015-03-01 20:59:46
【问题描述】:
我正在尝试编译新的 Java Base64 API (docs),因为旧的 BASE64Decoder 已弃用,但我不明白为什么会出错。
这是我的代码:
Base64.Decoder b64 = new Base64.getDecoder();
我安装了最新的Java JDK 版本和maven。
Maven 输出:
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
Compilation failure
pl/kris14an/vinylrepo/ImageDecoder.java:[14,44] cannot find symbol
symbol: class getDecoder
location: class java.util.Base64
Apache Maven 3.2.5
Java 版本:1.8.0_31,供应商:甲骨文公司
【问题讨论】: