Package contains object and package with same name

前端 未结 2 1703
花落未央
花落未央 2021-01-05 00:32

I am having problems compiling some Scala with Maven or Eclipse where I try to import a class from a Java jar which contains both a namespace and class of the same name.

2条回答
  •  温柔的废话
    2021-01-05 00:56

    The actual compiler option is "-Yresolve-term-conflict:strategy" where strategy is either package, object, error.

提交回复
热议问题