Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix 'shared restricted' constructors not working on the JVM #7237
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Sep 2, 2017
1 parent 96b1fa3 commit 4212a71
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3730,13 +3730,14 @@ public long classFlags(ClassOrInterface cdecl) {
public long constructor(ClassOrInterface cdecl) {
return declarationSharedFlags(cdecl);
}

public int constructor(Constructor ctor) {
return ctor.isShared()
&& !Decl.isAncestorLocal(ctor)
&& !ctor.isPackageVisibility()
&& !ctor.isAbstract()
&& !ModelUtil.isEnumeratedConstructor(ctor)
? PUBLIC : PRIVATE;
? (!ctor.isPackageVisibility() ? PUBLIC : 0)
: PRIVATE;
}

public long typeAlias(TypeAlias decl) {
Expand Down

0 comments on commit 4212a71

Please sign in to comment.