嵌套类命名

class CopyOfDDDD implements IServiceTaskProcessor {

	@Override
	public Serializable process(IItemInstance data) throws TaskException {
		return null;
	}
	
	/*static*/ class CopyOfDDDD implements IServiceTaskProcessor {
		@Override
		public Serializable process(IItemInstance data) throws TaskException {
			return null;
		}
	}

}

 

The nested type CopyOfDDDD cannot hide an enclosing type CopyOfDDDD.java /com.test/src/com/test line 16 Java Problem

 

嵌套类的类名不能与其容器(被嵌套)的类同名~~~囧囧~~


你可能感兴趣的:(嵌套类)