Skip to content

在写一个测试类ClassA时,随便把A放到了顶级包层次,也就是没有包声明,结果发现其他包下的类是无法引用到这个类的,只有另建一个同样的顶级类ClassB,才能正常引用 #14

Open

Description

@lowpair

在写一个测试类ClassA时,随便把A放到了顶级包层次,也就是没有包声明,结果发现其他包下的类是无法引用到这个类的,只有另建一个同样的顶级类ClassB,才能正常引用。

建议还是按正常的结构目录,否则,不易于使用也不易于更广泛的使用。

Activity

  1. lowpair commented on Feb 20, 2018

    @lowpair
    Author

    不易于使用也不易于更广泛的传播改进。

  2. moontide commented on Feb 20, 2018

    @moontide
    Owner

    我这里用的是 Eclipse 和/或 IntelliJ IDEA,编译、调试都没问题。

    你是手工编译? 还是用 IDE 编译?
    如果用 IDE,把 src、bots、bots-industrial 文件夹都加入到编译路径的 source 中,输出文件输出到同一个文件夹下,比如 bin 文件夹下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions