-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Burdess wrote: > Székelyi Szabolcs wrote: > >> I have problems using message flags in GNUMail. I get >> IllegalAccessException in all methods of the Flags class which contain >> (direct) access to Flag.flag. I guess it's because of Flag.flag is >> declared private. Tell me if I'm wrong. > > > That's odd, I haven't seen this. What JVM are you using?
It's sun's JVM, version 1.5.0_05. [I know classpathx is designed primarily for free vm's, but I had no choice.] However, I don't really understand how this could be compiled. [However, the classpathx classes are compiled usig gcj while the application is compiled with sun's javac.] > >> Should Flag.flag be declared public (providing read-write access, which >> is not we want since Flag sould contain a single flag, not a set) or >> create a new method, say Flag.getFlag() which simply returns Flag.flag >> (not a part of the JavaMail specification, but may be OK) and replace >> all accesses of Flag.flag with Flag.getFlag()? > > > It looks like it should be made package private instead. Works fine. I'll send patches containing the fix for this among others. Thanks for your help. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD3M0aGJRwVVqzMkMRAtk3AJ9srocnskSyDS/p38YJRlhwPnLgYwCfb9AF KW6uIZ8buIkvDep6Wcj9WHE= =TZHd -----END PGP SIGNATURE----- _______________________________________________ Classpathx-discuss mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpathx-discuss
