[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Classpathx-discuss] GNUMail Flag problem
From: |
Székelyi Szabolcs |
Subject: |
Re: [Classpathx-discuss] GNUMail Flag problem |
Date: |
Sun, 29 Jan 2006 15:11:38 +0100 |
User-agent: |
Debian Thunderbird 1.0.7 (X11/20051017) |
-----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-----