At 01:00 30/8/00 -0400, you wrote: >Greetings... > >I just grabbed the new JavaDoc changes from CVS and found problems >when using Jikes (version 1.12) to compiler the javadoc task. > >The problem arises from the used of the "dir" parameter to the accept >method in the anonymous FileFilter on line 893 of Javadoc.java. I'm >not sure what the spec is (I typically use the behavior of javac), but >javac is okay and jikes is not. > >Jikes complains that "dir" is defined a second time (in the definition >of the method). It looks like jikes does not like overriding a local >variable with a parameter to a method in an anonymous inner class. By >simply changing the name of the second "dir" (to "dir1"), both jikes >and javac compile and seem to run fine. > >I don't know if this is a problem with jikes or javac. Does anyone >understand the inner class spec well enough to say? I suspect that it >is a problem with jikes, but I don't want to submit a bug (or see if >one has already been submitted) until I know.
I *believe* it is a bug in Javac - one of those non-compliancies it exhibits ;P. Inner classes are meant to not shadow all variables in the context it is created - but they can only access final versions IIRC Cheers, Pete *------------------------------------------------------* | "Nearly all men can stand adversity, but if you want | | to test a man's character, give him power." | | -Abraham Lincoln | *------------------------------------------------------*
