Adjust J2K to latest protected visibility fixes

This commit is contained in:
Denis Zharkov
2016-03-30 11:55:22 +03:00
parent 92be4aee9c
commit 1bc45fb9cf
8 changed files with 58 additions and 42 deletions
@@ -3,9 +3,9 @@ package test2;
import test.*;
public class DerivedOtherPackage extends BaseOtherPackage {
public void usage1() {
BaseOtherPackage base = new BaseOtherPackage();
base.foo();
int i = base.i;
protected DerivedOtherPackage() {
super();
foo();
int i = this.i;
}
}
@@ -2,10 +2,9 @@ package test2
import test.*
class DerivedOtherPackage : BaseOtherPackage() {
fun usage1() {
val base = BaseOtherPackage()
base.foo()
val i = base.i
class DerivedOtherPackage protected constructor() : BaseOtherPackage() {
init {
foo()
val i = this.i
}
}
@@ -3,9 +3,8 @@ package test3
import test.*
class DerivedOtherPackageKotlin : BaseOtherPackage() {
fun usage1() {
val base = BaseOtherPackage()
base.foo()
val i = base.i
init {
foo()
val i = this.i
}
}
@@ -3,9 +3,8 @@ package test3
import test.*
class DerivedOtherPackageKotlin : BaseOtherPackage() {
fun usage1() {
val base = BaseOtherPackage()
base.foo()
val i = base.i
init {
foo()
val i = this.i
}
}