This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reported on behalf of jiri.kovalsky@netbeans.com: If the user or some part of the IDE moves java sources into web-inf directory created for purposes of EJB (or similar module), the java module will update package statements to match the folder name even if that does not form a valid Java idenifier.
The current (and maybe desired) behaviour is that the module will *not* update the source (package declaration) if the source is in an invalid directory. The package declaration remains as it was at the original place. Note: Templates instantiated into a directories like "web-inf" will have their original package name Templates.Whatever.
In such a case this can be verified as designed. But on the other hand it is not too much transparent announcement for the user that he has made a mistake.
Resolved for 3.4.x or earlier, no new info since then -> closing.