小编Den*_*nis的帖子

这有什么问题?我找不到符号

这是类的代码方法的前四行:

这是类"CrudController"

public String create(Object entity, Class clazz, String req_id, HttpServletResponse response) throws NullPointerException {
    if (entity == null ) throw NullPointerException("ENTITY");
    else if(clazz == null) throw NullPointerException("CLAZZ");
            else if(response == null) throw NullPointerException("RESPONSE");
Run Code Online (Sandbox Code Playgroud)

我在这三行中遇到这些错误:

[ERROR] /path/to/CrudController.java:[42,29] error: cannot find symbol
[ERROR]  class CrudController
[ERROR] /path/to/CrudController.java:[43,31] error: cannot find symbol
[ERROR]  class CrudController
[ERROR]/pathto/CrudController.java:[44,48] error: cannot find symbol
[ERROR]  class CrudController
Run Code Online (Sandbox Code Playgroud)

位置编号(29,31和48在'=='的开头是正确的

java testing null compilation

1
推荐指数
1
解决办法
793
查看次数

标签 统计

compilation ×1

java ×1

null ×1

testing ×1