Re: GNUMail Flag problem
Székelyi Szabolcs <[email protected]> Sun, 29 Jan 2006 15:11:38 +0100
| Newsgroups | gmane.comp.java.classpath.extensions.discuss |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Burdess wrote: > Sz=C3=A9kelyi Szabolcs wrote: >=20 >> 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. >=20 >=20 > 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.= ] >=20 >> Should Flag.flag be declared public (providing read-write access, whi= ch >> 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()? >=20 >=20 > 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=3D =3DTZHd -----END PGP SIGNATURE-----