Skip to content

Commit

Permalink
Fix #1079
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 13, 2016
1 parent b8b3c74 commit a2f4308
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
6 changes: 5 additions & 1 deletion release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ Project: jackson-databind
=== Releases ===
------------------------------------------------------------------------

2.7.0 (not yet released)
2.7.1 (not yet released)

#1079: Add back `TypeFactory.constructType(Type, Class)` as "deprecated" in 2.7.1

2.7.0 (10-Jan-2016)

#76: Problem handling datatypes Recursive type parameters
(reported by Aram K)
Expand Down
16 changes: 10 additions & 6 deletions src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -594,17 +594,21 @@ public JavaType constructType(TypeReference<?> typeRef)
*/
}

/*
/**
* @deprecated Since 2.7 (accidentally removed in 2.7.0; added back in 2.7.1)
*/
@Deprecated
public JavaType constructType(Type type, Class<?> contextType) {
TypeBindings b = (contextType == null) ? null : new TypeBindings(this, null, contextType);
return _fromAny(null, type, b);
return _fromAny(null, type, EMPTY_BINDINGS);
}

/**
* @deprecated Since 2.7 (accidentally removed in 2.7.0; added back in 2.7.1)
*/
@Deprecated
public JavaType constructType(Type type, JavaType contextType) {
TypeBindings b = (contextType == null) ? null : new TypeBindings(this, null, contextType);
return _fromAny(null, type, b);
return _fromAny(null, type, contextType.getBindings());
}
*/

/*
/**********************************************************
Expand Down

0 comments on commit a2f4308

Please sign in to comment.