FILE *stream;
JCF_u2 flags;
{
- /* FIXME: Java's "protected" and "no access specifier" modes don't
- actually map to C++ "protected". That's how we map them for now,
- though. */
-
- if (! (flags & ACC_VISIBILITY))
- flags = ACC_PROTECTED;
-
if ((flags & ACC_VISIBILITY) == last_access)
return;
last_access = (flags & ACC_VISIBILITY);
switch (last_access)
{
+ case 0:
+ fputs ("public: // actually package-private\n", stream);
+ break;
case ACC_PUBLIC:
fputs ("public:\n", stream);
break;
fputs ("private:\n", stream);
break;
case ACC_PROTECTED:
- fputs ("protected:\n", stream);
+ fputs ("public: // actually protected\n", stream);
break;
default:
found_error = 1;
current_jcf = main_jcf = jcf;
- last_access = 0;
+ last_access = -1;
if (jcf_parse_preamble (jcf) != 0)
{