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

Close

#1 Static members for inner classes

closed
nobody
None
5
2003-02-13
2002-05-28
No

Current version 1.0g, release date 1-October-2001, does
not support static members for inner classes, printing
the message like:

E:\JBuilder\Pizza\compileIt.java:14: inner classes
cannot have static members

private static final long serialVersionUID = 1;
^
1 error

This would not be a problem in the most cases, but java
serialization mechanism sometimes requires to define
the serialVersionUID that must be "private static final
long ", otherwise it will not be recognised.

Static members for inner classes are supported by the
current Java standard. We think, it would not be a large
problem to include this in Pizza.

Discussion

  • Enno Runne
    Enno Runne
    2002-07-25

    Logged In: YES
    user_id=278541

    Hi Audrius,
    you might have reported this as a bug instead.

    Anyway, I made Pizza allow final static variables in inner
    classes.

    /Enno.

     
  • Nick Fortescue
    Nick Fortescue
    2003-02-13

    • status: open --> closed