パッケージには抽象クラスがありrelation
、パッケージdatabase.relation
にはそのサブクラスがありJoin
ますdatabase.operations
。relation
。という名前の保護されたメンバーがありmStructure
ます。
でJoin
:
public Join(final Relation relLeft, final Relation relRight) {
super();
mRelLeft = relLeft;
mRelRight = relRight;
mStructure = new LinkedList<Header>();
this.copyStructure(mRelLeft.mStructure);
for (final Header header :mRelRight.mStructure) {
if (!mStructure.contains(header)) {
mStructure.add(header);
}
}
}
オンライン
this.copyStructure(mRelLeft.mStructure);
と
for (final Header header : mRelRight.mStructure) {
次のエラーが発生します。
フィールドRelation.mStructureは表示されません
両方のクラスを同じパッケージに入れると、これは完全に機能します。誰かがこの問題を説明できますか?