私は次の設定をしています。
Table<Integer, Integer, Float> store = HashBasedTable.create();
int i = 0, j = 0;
for (List<String> stack_i : stacks) {
j = 0;
for (String entry_j : stack_i) {
Float alpha = doSomeMagic(entry_j, token);
if (alpha != null)
store.put(i, j, alpha);
j++;
}
i++;
}
if (store.cellSet().size() > 0) {
for (Table.Cell<Integer, Integer, Float> cell : store.cellSet()) {
if (cell.getValue() > max) {
max = cell.getValue();
maxchainIndex = cell.getRowKey();
}
}
}
私が直面している問題は、次の JVM エラーが発生することです。
SEVERE: java.lang.IllegalAccessError: メソッド com.google.common.collect.Iterators.emptyModifiableIterator()Ljava/util/Iterator; にアクセスしようとしました。クラス com.google.common.collect.StandardTable$CellIterator から com.google.common.collect.StandardTable$CellIterator.(StandardTable.java:310) で com.google.common.collect.StandardTable$CellIterator.(StandardTable.java :306) com.google.common.collect.StandardTable$CellSet.iterator(StandardTable.java:280) で
行でエラーが発生します
for(Table.Cell<Integer,Integer,Float> cell:store.cellSet())
ここで何が間違っているのかわかりません。確認したところ、ストアには少なくとも 1 つのアイテムがあります。