Я продолжаю получать эту ошибку после клонирования репозитория из проекта AndEngine.
Тип Enum не является универсальным; его нельзя параметризовать аргументами ‹BoundsSplit›
Вот класс, в котором ошибка сохраняется.
package org.andengine.util.spatial.adt.bounds; //The error points at the beginning of this line.
import org.andengine.util.exception.AndEngineException;
/**
* (c) Zynga 2011
*
* @author Nicolas Gramlich <[email protected]>
* @since 21:13:32 - 11.10.2011
*/
public enum BoundsSplit {
// ===========================================================
// Elements
// ===========================================================
TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT;
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
public static class BoundsSplitException extends AndEngineException {
// ===========================================================
// Constants
// ===========================================================
private static final long serialVersionUID = 7970869239897412727L;
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}
}
РЕДАКТИРОВАТЬ:
Вот еще о чем говорит ошибка
Multiple markers at this line
- The type java.lang.Enum cannot be resolved. It is indirectly referenced from
required .class files
- The type Enum is not generic; it cannot be parameterized with arguments
<BoundsSplit>
- The type java.lang.Object cannot be resolved. It is indirectly referenced from
required .class files
- The type java.lang.Enum cannot be resolved. It is indirectly referenced from
required .class files
enum
в Java, объявление соответствующего конструктора внутри этогоenum
является обязательным, что являетсяalways
private
независимо от того, объявляете ли вы его явноprivate
или нет. Вы предоставили соответствующий конструктор в своемenum
? - person Lion   schedule 01.01.2012