Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lowpair opened this issue Feb 20, 2018 · 2 comments

Comments

@lowpair
Copy link

lowpair commented Feb 20, 2018

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

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

@lowpair
Copy link
Author

lowpair commented Feb 20, 2018

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

@moontide
Copy link
Owner

moontide commented Feb 20, 2018

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants