Skip to content

Commit

Permalink
Update ByteBuddy do 1.7.6 and disable TypeValidation to fix spockfram…
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Oct 21, 2017
1 parent c01d54b commit d91bf78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ext {
jetbrainsAnnotations: "org.jetbrains:annotations:13.0",
ant: "org.apache.ant:ant:1.9.7",
asm: "org.ow2.asm:asm:5.2",
bytebuddy: "net.bytebuddy:byte-buddy:1.7.0",
bytebuddy: "net.bytebuddy:byte-buddy:1.7.6",
cglib: "cglib:cglib-nodep:3.2.5",
groovy: "org.codehaus.groovy:groovy-all:$groovyVersion",
h2database: "com.h2database:h2:1.3.176",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.bytebuddy.*;
import net.bytebuddy.description.modifier.*;
import net.bytebuddy.dynamic.Transformer;
import net.bytebuddy.dynamic.scaffold.TypeValidation;
import net.bytebuddy.implementation.*;
import net.bytebuddy.implementation.bind.annotation.Morph;
import net.sf.cglib.proxy.*;
Expand Down Expand Up @@ -103,6 +104,7 @@ static Object createMock(final Class<?> type,
public Class<?> call() throws Exception {
return new ByteBuddy()
.with(new NamingStrategy.SuffixingRandom("SpockMock"))
.with(TypeValidation.DISABLED) // https://github.com/spockframework/spock/issues/776
.ignore(none())
.subclass(type)
.implement(additionalInterfaces)
Expand Down

0 comments on commit d91bf78

Please sign in to comment.