Skip to content

Misleading error message for inaccessible class #7727

@scabug

Description

@scabug

depends on "com.typesafe" % "config" % "1.0.2"

package com.zcompany.mirror

import com.typesafe.config.Config
import com.typesafe.config.impl.SimpleConfig

abstract class ConfigWithFallback(val config:Config) extends SimpleConfig {

}

error message is missleading:

[error] C:\mirror\src\main\scala\ConfigWithFallback.scala:6: class SimpleConfig in package impl cannot be accessed in package com.typesafe.config.impl
[error] abstract class ConfigWithFallback(val config:Config) extends SimpleConfig {
[error] ^
[error] one error found

  1. package listed in can not be accessed in package is wrong it should be com.*

  2. in package impl - full package name should be used there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions