This is an automated email from the ASF dual-hosted git repository.
rmannibucau pushed a commit to tag 0.5
in repository https://gitbox.apache.org/repos/asf/bval.git
commit 8baf76f64860a1a9a70ebdfd520b0c1e9e12e4b6
Author: mbenson <mbenson@13f79535-47bb-0310-9956-ffa450edef68>
AuthorDate: Wed Jun 6 13:05:11 2012 +0000
[BVAL-106] Avoid compilation failures on Java 7 due to accessing private
members of generic types (even when the specific members belong to the
accessing class\!) by simply removing the generics from the method in question.
git-svn-id: http://svn.apache.org/repos/asf/bval/trunk@1346870
13f79535-47bb-0310-9956-ffa450edef68
---
bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java | 3 +--
bval-core/src/main/java/org/apache/bval/model/MetaBean.java | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java
b/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java
index d495dc1..b0d2dd0 100644
--- a/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java
+++ b/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java
@@ -141,10 +141,9 @@ public abstract class FeaturesCapable implements
Serializable {
* Copy this {@link FeaturesCapable} into another {@link FeaturesCapable}
* instance.
*
- * @param <T>
* @param target
*/
- protected <T extends FeaturesCapable> void copyInto(T target) {
+ protected void copyInto(FeaturesCapable target) {
target.features = target.createFeaturesMap();
target.features.putAll(features);
if (validations != null) {
diff --git a/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
b/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
index 05ce598..02b6530 100644
--- a/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
+++ b/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
@@ -212,7 +212,7 @@ public class MetaBean extends FeaturesCapable implements
Cloneable, Features.Bea
* {@inheritDoc}
*/
@Override
- protected <T extends FeaturesCapable> void copyInto(T target) {
+ protected void copyInto(FeaturesCapable target) {
super.copyInto(target);
final MetaBean copy = (MetaBean) target;
if (properties != null) {