Skip to content

Commit

Permalink
Issue #209: fixes EqualsVerifier test suite on Java 12 EA
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Dec 3, 2018
1 parent 92036d2 commit 9a3bbe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Removed direct dependency on ASM by re-writing the annotation processor to Byte-Buddy. ([Issue 208](https://github.com/jqno/equalsverifier/issues/208))

### Fixed
- EqualsVerifier's test suite now runs on Java 12 EA. ([Issue 209](https://github.com/jqno/equalsverifier/issues/209))


<a name="3.x"/>

Expand Down
Expand Up @@ -2,7 +2,6 @@

import net.bytebuddy.ByteBuddy;
import net.bytebuddy.description.modifier.Visibility;
import net.bytebuddy.dynamic.loading.ClassLoadingStrategy;
import net.bytebuddy.dynamic.scaffold.TypeValidation;
import nl.jqno.equalsverifier.internal.packageannotation.AnnotatedPackage;
import nl.jqno.equalsverifier.internal.reflection.Instantiator;
Expand Down Expand Up @@ -234,7 +233,7 @@ class Super {}
.subclass(Super.class)
.defineField("dynamicField", int.class, Visibility.PRIVATE)
.make()
.load(Super.class.getClassLoader(), ClassLoadingStrategy.Default.INJECTION)
.load(Super.class.getClassLoader(), Instantiator.getClassLoadingStrategy(Super.class))
.getLoaded();
build(sub);
}
Expand Down

0 comments on commit 9a3bbe4

Please sign in to comment.