|The type package-info is already defined [message #1753247]
||Thu, 02 February 2017 23:43
| Ahmed Ashour
Registered: July 2009
With a maven project, where we have /src/main and /src/test folders, putting package-info.java in the same package name in those two folders, makes JDT complains "The type package-info is already defined".
Testing this with javac, with two folders having the same package-info.java gives:
warning: a package-info.java file has already been seen for package unnamed package
But there is no compiler error.
As far as I understand, this special file is not compiled.
Also, as you know, maven javadoc generates two output, one for'main' and another for 'test' folders, and if JDT restricts to only one, then there is no way to define package javadoc except by going to package.html which is outdated.
I hesitated before posting a bug, since many people complain on the internet, and I don't know why don't JDT just ignores that file or even gives a warning, but not a compiler error.
Thanks for your input.
[Updated on: Thu, 02 February 2017 23:52]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01586 seconds