Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes 2972: Weakens visibility constraint what breaks spying on encap…
…sulated objects where a super type in a different package declares only a protected constructor.
- Loading branch information
Showing
3 changed files
with
47 additions
and
4 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
17 changes: 17 additions & 0 deletions
17
src/test/java/org/mockito/internal/creation/bytebuddy/sample/DifferentPackage.java
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,17 @@ | ||
/* | ||
* Copyright (c) 2017 Mockito contributors | ||
* This program is made available under the terms of the MIT License. | ||
*/ | ||
package org.mockito.internal.creation.bytebuddy.sample; | ||
|
||
import org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMakerTest; | ||
|
||
public class DifferentPackage extends InlineDelegateByteBuddyMockMakerTest.SamePackage { | ||
|
||
public final Object p2; | ||
|
||
public DifferentPackage(Object p1, Object p2) { | ||
super(p1); | ||
this.p2 = p2; | ||
} | ||
} |