You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JDT produces IProblem.PackageIsNotExpectedPackage when the folder doesn't match the package declaration. Javac doesn't provide that.
An extra check should probably be added to create this problem in the JavacCompilationUnitResolver or/and in JavacProblemConverter.
The text was updated successfully, but these errors were encountered:
that's actually one of javac's particular differences compared to ECJ. ECJ's pretty anal about package names matching the underlying folder, when javac compiles fine. I vaguely remember we've had users complaining about it in the past. So I think we might need a preference to toggle this particular diagnostic
If this behavior is not required by VSCode-Java or JDT-LS, then I would recommend that we remove the associated test cases so we can evolve more freely. What do you think?
JDT produces IProblem.PackageIsNotExpectedPackage when the folder doesn't match the package declaration. Javac doesn't provide that.
An extra check should probably be added to create this problem in the JavacCompilationUnitResolver or/and in JavacProblemConverter.
The text was updated successfully, but these errors were encountered: