Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 DAVTreeModel.java cvs 1.31 wont compile

closed-rejected
None
5
2001-08-06
2001-03-14
Mudit Goel
No

I get the following error when I try to compile it
with the sun javac (from jdk1.2.2) on win2000.

org\skunk\dav\client\gui\DAVTreeModel.java:305:
Attempt to assign to a variable
retNode in a different method. From enclosing blocks,
only final local variables
are available.
retNode=newNode;

Thanks,
Mudit

Discussion

  • Jacob Smullyan
    Jacob Smullyan
    2001-03-15

    • assigned_to: nobody --> smulloni
     
  • Jacob Smullyan
    Jacob Smullyan
    2001-08-06

    Logged In: YES
    user_id=108556

    As noted in documentation, the org.skunk.dav.client.gui
    package does not compile with javac; you have to use jikes.

     
  • Jacob Smullyan
    Jacob Smullyan
    2001-08-06

    • status: open --> closed-rejected
     
  • Logged In: YES
    user_id=215991

    The compilation problem is due to the fact that a final
    variable (retNode) is being reassigned. retNode has to be
    final because it's referenced in an inner class. As a fix
    on my own machine to compile in JDK1.3, I declared the
    retNode as private to the class, and reassigned it to null
    as in the beginning of the new Thread run. Kind of kludgy,
    but...