-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport "Fix extending protected nested java classes" to 3.6.2 (#21904)
Backports #21857 to the 3.6.2 branch. PR submitted by the release tooling. [skip ci]
- Loading branch information
Showing
7 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public abstract class AbstractChannel { | ||
protected AbstractChannel() {} | ||
protected abstract AbstractUnsafe newUnsafe(); | ||
protected abstract class AbstractUnsafe { | ||
public abstract void connect(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Channel extends AbstractChannel() { | ||
override def newUnsafe(): AbstractChannel#AbstractUnsafe = new AbstractUnsafe { | ||
override def connect(): Unit = ??? | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public abstract class AbstractChannel_1 { | ||
protected AbstractChannel_1() {} | ||
protected abstract AbstractUnsafe newUnsafe(); | ||
protected abstract class AbstractUnsafe { | ||
public abstract void connect(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Channel extends AbstractChannel_1() { | ||
override def newUnsafe(): AbstractChannel_1#AbstractUnsafe = new AbstractUnsafe { | ||
override def connect(): Unit = ??? | ||
} | ||
} |