Java lang IllegalAccess on collecting Guava Immutable Table via HashBasedTable accumulator
问题 Error while executing below code, Caused by: java.lang.IllegalAccessError: tried to access class com.google.common.collect.AbstractTable from class ImmutableTable.copyOf(listItemsToProcess.parallelStream() .map(item -> ProcessorInstanceProvider.getInstance() .buildImmutableTable(item)) .collect(() -> HashBasedTable.create(), HashBasedTable::putAll, HashBasedTable<Integer, String, Boolean>::putAll) ); Error in coming on - HashBasedTable::putAll Using Oracle's 1.8 jre 回答1: This is a compiler