woaidongmao

文章均收录自他人博客,但不喜标题前加-[转贴],因其丑陋,见谅!~
随笔 - 1469, 文章 - 0, 评论 - 661, 引用 - 0
数据加载中……

java不支持局部静态变量

如题

public class CWebUserProcessor {
    private CWebUserProcessor(){
        return;
    }
    public static CWebUserProcessor Instance(){
        static CWebUserProcessor static_self = new CWebUserProcessor();//---- ERROR
        return static_self;
    }
}

posted on 2009-07-24 15:56 肥仔 阅读(154) 评论(0)  编辑 收藏 引用 所属分类: Web-后台


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理