java NotImplementedException 是内部专有 API
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16374189/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
NotImplementedException is internal proprietary API
提问by bladepit
I got the following warning when I try to build my project with ant. My build.xml ist a auto-generated from eclipse:
当我尝试用 ant 构建我的项目时,我收到以下警告。我的 build.xml 是从 Eclipse 自动生成的:
warning: NotImplementedException is internal proprietary API and may be removed in a future release
In Eclipse there is no error at the line and if i remove the line (are annotation for hibernate) the error will occur in another line. It seems to be that the error comes in the first line of my java file.
在 Eclipse 中,该行没有错误,如果我删除该行(是休眠的注释),错误将出现在另一行中。似乎错误出现在我的java文件的第一行。
I tried to replace hibernate and the annotations with an new version as well as javax persistence. But nothing helped.
我尝试用新版本以及 javax 持久性替换 hibernate 和注释。但没有任何帮助。
I hope someone else has the same failure and knows what i need to do.
我希望其他人也有同样的失败,并且知道我需要做什么。
EDIT:
编辑:
@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
@Table(name="myclass")
public class MYCLASS implements Cloneable {
The second row generates the warning. But if i remove the row the next will generate the same warning. If i remove all annotations the last line generates the warning.
第二行生成警告。但是,如果我删除该行,下一个将生成相同的警告。如果我删除所有注释,最后一行会生成警告。
回答by Marco
Are you importing sun.reflect.generics.reflectiveObjects.NotImplementedException
somewhere?.
Sun classes are not part of the official Java API and may get changed/removed at any time without notice. Apart from that, they might be missing if someone runs your application on a different JVM than the Oracle one. For example the IBM JVM does not have access to the sun classes and therefore your program would fail at runtime.
你在什么sun.reflect.generics.reflectiveObjects.NotImplementedException
地方进口?Sun 类不是官方 Java API 的一部分,可能会随时更改/删除,恕不另行通知。除此之外,如果有人在与 Oracle 不同的 JVM 上运行您的应用程序,它们可能会丢失。例如,IBM JVM 无法访问 sun 类,因此您的程序将在运行时失败。