姬長信(Redy)

Java lang IllegalAccess通过HashBasedTable累加器收…


执行下面的代码时出错,

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::putAll)
                    );

Error in coming on – HashBasedTable::putAll Using Oracle’s 1.8 jre