On 03/27/2010 01:30 AM, Daniel Cheng wrote: > Do you remember the "library cannot compile in eclipse" bug? > In case if you don't remember it: The library use a set of function > and class ($1, $2 ...) for closure-like behavior. Eclipse have problem > when it see this code: > > import static xxx.$1.$1; > import xxx.$1; // this "import" shadow static symbol $1 > > This was filed as eclipse bug 302865 (see > https://bugs.eclipse.org/bugs/show_bug.cgi?id=302865). > > It turns out this is NOT a eclipse bug, but a Sun javac bug (see > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862569). > > I am sending this email just in case if you want to fix it in > library's code. This can be fixed by simply renaming the classes (or > functiones, but not both).
It seems that as well as it being a javac bug, it's also a bug in Library. The bug report mentions[1] which states that the correct behaviour is to fail the compile; neither sun javac nor openjdk does this. It fails in eclipse because it looks like they add their own checks. I'll make a note to fix this. cheers, X http://java.sun.com/docs/books/jls/third_edition/html/packages.html#7.5
