Community
Participate
Working Groups
Build Identifier: ecj-3.8M1 The attached project fails to build. It fails with "The type package-info is already defined". I think it depends on the order that the files are listed, so you may have to try re-creating the files a few times until A.java gets listed before package-info.java. The problem seems to be related to what Jay describes on https://bugs.eclipse.org/bugs/show_bug.cgi?id=322789#c17. When checking if the inner class "demo.A.B" is deprecated, it is checked if the package "demo" is deprecated. This involves a call to INameEnvironment.findType(), which the maven plugin answers with an ICompilationUnit. It is unclear to me why findType() is only called when checking nested classes. If the INameEnvironment.findType() is in fact supposed to return null, it is unclear in which cases. Only for package-info that is already in the list of compilation units? Reproducible: Always Steps to Reproduce: 1. Extract the attached archive 2. Run "mvn clean install"
Created attachment 202025 [details] Maven project to reproduce problem
This might actually be fixed with the fix for bug 354536. Do you have a way to try today's I-build ?
Problem solved in ecj-N20110822-2000. Thanks! Sorry about the duplicate bug report.
Same as 354536 *** This bug has been marked as a duplicate of bug 354536 ***
Verified for 3.8M2.