0

I am trying to implement an abstract Java class in Scala and in the eclipse IDE it is not showing errors but, when I try to compile it is throwing an error

The abstract Java class is defined as

package de.hybris.platform.webservices;

import de.hybris.platform.core.model.ItemModel;


public abstract class AbstractCommand<RESOURCE> extends AbstractYResponseBuilder<RESOURCE, Object, Object> implements
        Command<RESOURCE, Object, Object>
{
    ...
}

Code for Scala class is

package com.test.scala.poc.ws

import de.hybris.platform.webservices.AbstractCommand
import de.hybris.platform.core.model.product.ProductModel

class ProductCommand extends AbstractCommand[ProductModel] {

  override def execute(resourceModel: ProductModel, requestDTO: Object): ProductModel = null


}

And finally, the damn error message is

object webservices is not a member of package de.hybris.platform

Help resolving this is much appreciated!

4

2 回答 2

3

这是由于保存了先前失败的构建的构建日志而发生的。清理构建,关闭并重新启动 IDE。应该没问题。

于 2014-12-05T00:26:39.340 回答
0

在我的情况下, IntelliJInvalidated Caches and Restart还不够,但是在丢弃文件夹.bloop/并在 Intellij 中target/重新导入bsp项目(build.sbt然后再次被消耗并已经崩溃)之后,一切都很好。

于 2020-05-16T09:52:02.920 回答