вызов общего класса в методе класса Bean дает ошибку - PullRequest
0 голосов
/ 28 февраля 2019

Я пытаюсь скомпилировать файл serviceBean.java, который импортирует один из моих пакетов, ledgement.java

В serviceBean.java я добавил одну строку ниже, и она не компилируется, выдает Cannot Find Symbol

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] символ: конструктор выступ (логическое, java.lang.Exception)

Not sure what is the issue by invoke the ledgment java class.
Please help.Thanks in Advance

1 Ответ

0 голосов
/ 28 февраля 2019

у вас есть дополнительная скобка в этой строке кода: this (successFg), null, null, null, null);

...