Reputation: 11
As I load the Server, the console gives this only error to enabling the plugin.
No enclosing instance of the type TObjectHash is accessible in scope
Then after that there is a reference to the spigot plugin
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-PaperSpigot-a925999]
This TObjectHash is from the trove repository the following code is this inside the file:
package gnu.trove.impl.hash;
import gnu.trove.impl.hash.TObjectHash;
import gnu.trove.strategy.HashingStrategy;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public abstract class TCustomObjectHash < T >
extends TObjectHash < T > {
static final long serialVersionUID = 8766048185963756400L;
protected HashingStrategy <? super T > strategy;
public TCustomObjectHash() {}
public TCustomObjectHash(HashingStrategy <? super T > strategy) {
this.strategy = strategy;
}
public TCustomObjectHash(HashingStrategy <? super T > strategy, int initialCapacity) {
super(initialCapacity);
this.strategy = strategy;
}
public TCustomObjectHash(HashingStrategy <? super T > strategy, int initialCapacity, float loadFactor) {
super(initialCapacity, loadFactor);
this.strategy = strategy;
}
@Override
protected int hash(Object obj) {
return this.strategy.computeHashCode(obj);
}
@Override
protected boolean equals(Object one, Object two) {
return two != REMOVED && this.strategy.equals(one, two);
}
@Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
TObjectHash.super.writeExternal(out);
out.writeObject(this.strategy);
}
@Override
public void readExternal(ObjectInput in ) throws IOException, ClassNotFoundException { in .readByte();
TObjectHash.super.readExternal( in );
this.strategy = (HashingStrategy) in .readObject();
}
}
What am I missing here?
Upvotes: 1
Views: 86
Reputation: 3507
This type of question has been answered numerous times over the years
Upvotes: 1