1.右键项目->属性->java bulid path->jre System Library->access rules->resolution选择accessible,下面填上** 点击确定即可. 2.在MyEclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder:可是Eclipse提示: Access restriction: The type BASE64Decoder is not access
package com; import sun.misc.Unsafe; import java.lang.reflect.Field; /** * Created by yangyu on 16/11/24. */ public class TestUnsafe { public static void main(String[] args) { Node node = new Node(); /** * 通过CAS方法更新node的next属性 * 原子操作 */ boolean flag