[kaffe] more kjc fun

Guilhem Lavaux guilhem@kaffe.org
Thu Apr 22 00:43:03 2004


Helmer Kr=E4mer wrote:

>Hi,
>
>I tried compiling CVS Head with kjc and it stopped with this
>error:
>
>java/awt/font/TextAttribute.java:44: error:Cannot find type "AttributedC=
haracterIterator/Attribute"
>
>I've checked the profile I'm using (allatonce) and it contains
>the required entry for java.text.AttributedCharacterIterator.
>
>However, the inner class "Attribute" kjc complains about does
>not have a public modifier. So I assume that kjc doesn't make
>inner classes of interfaces public by default?
> =20
>

Hi !

Aaaaargh ! ;) This was a bug I though to have fixed but obviously not.=20
"ACC_PROTECTED" inner classes should be tranformed into "ACC_PUBLIC"=20
inner classes because the spec does not allow protected inner classes.=20
This works with the default profile because the class files are already=20
generated when java/awt/font/TextAttribute.java is parsed and checked.

Cheers,

Guilhem.