我正在尝试编译导入我的程序包ledgement.java中的一个的serviceBean.java文件
在serviceBean.java中,我添加了以下一行,并且未编译它会抛出“找不到符号”
ledgement ack = new ledgement(false,
e);
Here is the folder structure:
C:\working\src\java\com\test\tools\abc\mgmt\facade\service
com/test/tools/abc/mgmt/facade/service/serviceBean.java
com/test/tools/abc/mgmt/util/ledgement.java
我的门窗课程包含
public class ledgement<T> extends Test {
public enum EntityType implements Serializable {
ART(1), ART1(2), RDER(3), LNE(4),
COUNT(5);
private int typeId;
EntityType(int id) {
this.typeId = id;
}
/**
* @return the entityClass
*/
public int getTypeId() {
return typeId;
}
/**
* @param entityClass
* the entityClass to set
*/
public void setTypeId(int id) {
this.typeId = id;
}
} // Enum EntityType.
public ledgement(boolean successFg) {
this(successFg , null, null, null, null);
}
public ledgement(boolean sucessFg, Exception exp) {
this(sucessFg, exp, null);
}
它抛出找不到符号 [javac]符号:构造函数框(boolean,java.lang.Exception )
Not sure what is the issue by invoke the ledgment java class.
Please help.Thanks in Advance
答案 0 :(得分:1)
此行代码中有一个额外的括号: this(successFg),null,null,null,null);