Handle scopes can only be stack-allocated, not allocated with new.
句柄范围只能是在栈上分配的,不能通过new来分配。
Such objects can be safely allocated on the stack instead of the heap.
这样的对象可以安全地在堆栈上而不是在堆上分配。
An IllegalAssignmentError can be introduced when it isn't known which memory area an object is allocated from, or where on the scope stack a particular scope is located.
当不知道从哪个内存区域分配对象或者特定范围位于范围堆栈上的何处时,可能发生IllegalAssignmentError。
应用推荐