neilcsmith-net commented on issue #4766: URL: https://github.com/apache/netbeans/issues/4766#issuecomment-1346310514
> However the root cause seems to be a package-info.java file in the main source tree. This file, which javac and nb-javac do not complain about, is missing the package statement. That exception is literally javac/nb-javac complaining about it! It just happens to not affect compilation, although it doesn't work properly either. javac seems to be lenient about package-info files, and leave them out or even compile without errors to another package if the package-info is in the wrong location. I'm surprised javac doesn't complain with this - seems an issue in the compiler to me. Maybe @jlahoda has a thought on why, and best approach to not breaking indexing in this case / correctly report the error in the IDE? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
