Skip to content

Commit

Permalink
Merge pull request scala#24 from SethTisue/defaults
Browse files Browse the repository at this point in the history
fix regression in handling of Java-defined classes
  • Loading branch information
adriaanm committed Aug 7, 2015
2 parents af7f421 + 20d109b commit 08b1bbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ final class BCodeAsmCommon[G <: Global](val global: G) {
if (classSym.isPublic) ACC_PUBLIC else 0,
if (classSym.isFinal) ACC_FINAL else 0,
// see the link above. javac does the same: ACC_SUPER for all classes, but not interfaces.
if (classSym.isInterface && !classSym.isTrait) ACC_INTERFACE else ACC_SUPER,
if (classSym.isInterface) ACC_INTERFACE else ACC_SUPER,
// for Java enums, we cannot trust `hasAbstractFlag` (see comment in enumFlags)
if (!classSym.hasJavaEnumFlag && classSym.hasAbstractFlag) ACC_ABSTRACT else 0,
if (classSym.isArtifact) ACC_SYNTHETIC else 0,
Expand Down

0 comments on commit 08b1bbe

Please sign in to comment.