遇到了这个奇怪的错误:
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: size is not a function, it is null. (#1)
在分析堆转储并在VisualVM上运行此OQL查询时:
select { map: x }
from java.util.concurrent.ConcurrentHashMap x
where x.size() < 10
问题出在
where
子句上,尽管Map
显然具有size方法,但它似乎无法正常工作。