Skip to content

Commit

Permalink
ClassInfo.addIndexes() now uses MetaDataClassLoader.loadClass() to fi…
Browse files Browse the repository at this point in the history
…x issue in Play 2.5. Resolves #314.
  • Loading branch information
mangrish committed Jan 6, 2017
1 parent 3eca63d commit f1e23d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/neo4j/ogm/metadata/ClassInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ private Map<String, FieldInfo> addIndexes() {
// No way to get declared fields from current byte code impl. Using reflection instead.
Field[] declaredFields;
try {
declaredFields = Class.forName(className).getDeclaredFields();
declaredFields = MetaDataClassLoader.loadClass(className).getDeclaredFields();
} catch (ClassNotFoundException e) {
throw new RuntimeException("Could not reflectively read declared fields", e);
}
Expand Down

0 comments on commit f1e23d5

Please sign in to comment.