当我尝试使用ant构建项目时,我收到了以下警告.我的build.xml是从eclipse自动生成的:
warning: NotImplementedException is internal proprietary API and may be removed in a future release
Run Code Online (Sandbox Code Playgroud)
在Eclipse中,该行没有错误,如果我删除该行(是休眠的注释),则错误将在另一行中发生.似乎错误出现在我的java文件的第一行.
我试图用新版本和javax持久性替换hibernate和注释.但没有任何帮助.
我希望其他人有同样的失败,知道我需要做什么.
编辑:
@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
@Table(name="myclass")
public class MYCLASS implements Cloneable {
Run Code Online (Sandbox Code Playgroud)
第二行生成警告.但如果我删除该行,下一个将生成相同的警告.如果我删除所有注释,最后一行会生成警告.
我想模仿Finder的谓词列表.特别是LeftExpressions弹出窗口带有"其他"(德语:"Andere ...")菜单条目,并且喜欢用用户可选择的搜索谓词列表弹出NSSheet.

我的方法是使用名为"other ..."的leftExpression创建一些NSPredicateEditorRowTemplates和一个最后一个自定义rowTemplate.
然后我重写templateViews方法并添加了separatorItem:
-(NSArray *)templateViews{
NSMutableArray * views = [[super templateViews] mutableCopy];
// I tried already to add here my custom menu entry, but if I add more templates my custom entry (and the separator line) is not fixed at the last index.
if (!isCustomMenuItemAdded) {
NSPopUpButton *leftButton = views[0];
// Add a menu separator
[[leftButton menu]insertItem:[NSMenuItem separatorItem] atIndex:[leftButton menu].itemArray.count-1];
}
return views;
}
Run Code Online (Sandbox Code Playgroud)
我的自定义predicateEditor现在显示正确,但是如果我点击最后一个菜单项'Other ..',则显示虚拟NSPredicateRowTemplate.
我试图在我的rowTemplate类中覆盖 - (id)复制方法来抑制新行,但这对我来说很奇怪.
-(id)copy{
return nil; // OK, now there is no …Run Code Online (Sandbox Code Playgroud) 在编辑了我的Xcode 5.1.0源文件后,我突然收到此链接器错误:
0 0x1059b5f93 __assert_rtn + 144
1 0x105a1d7f5 ld::tool::OutputFile::compressedOrdinalForAtom(ld::Atom const*) + 281
2 0x105a1e469 ld::tool::OutputFile::addDyldInfo(ld::Internal&, ld::Internal::FinalSection*, ld::Atom const*, ld::Fixup*, ld::Fixup*, ld::Fixup*, ld::Atom const*, ld::Atom const*, unsigned long long, unsigned long long) + 2261
3 0x105a14496 ld::tool::OutputFile::generateLinkEditInfo(ld::Internal&) + 1322
4 0x105a0f952 ld::tool::OutputFile::write(ld::Internal&) + 116
5 0x1059b6c40 main + 1012
A linker snapshot was created at:
/tmp/keytech PLM-2014-03-05-101905.ld-snapshot
ld: Assertion failed: (0 && "dylib not assigned ordinal"), function compressedOrdinalForAtom, file /SourceCache/ld64/ld64-236.3/src/ld/OutputFile.cpp, line 3454.
clang: error: linker command failed with exit code …Run Code Online (Sandbox Code Playgroud)