You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2018/01/30 22:08:00 UTC
[jira] [Resolved] (ARIES-1607) Add a flag to enable raw conversion
when using generics
[ https://issues.apache.org/jira/browse/ARIES-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved ARIES-1607.
------------------------------------
Resolution: Fixed
Assignee: Guillaume Nodet
Fix Version/s: blueprint-core-1.9.0
Committing to https://svn.apache.org/repos/asf/aries/trunk ...
M blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java
M blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java
M blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/di/AbstractRecipe.java
M blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ext/impl/ExtNamespaceHandler.java
M blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/WiringTest.java
M blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/container/BeanRecipeTest.java
M blueprint/blueprint-core/src/test/resources/test-generics-mix.xml
M blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/ExtendedBeanMetadata.java
M blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/mutable/MutableBeanMetadata.java
M blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/reflect/BeanMetadataImpl.java
Committed r1822707
> Add a flag to enable raw conversion when using generics
> -------------------------------------------------------
>
> Key: ARIES-1607
> URL: https://issues.apache.org/jira/browse/ARIES-1607
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Affects Versions: blueprint-core-1.6.2
> Reporter: Jean-Philippe CLEMENT
> Assignee: Guillaume Nodet
> Priority: Critical
> Fix For: blueprint-core-1.9.0
>
>
> Blueprint should only check constuctor and method arguments depending on their class the way the JVM works at runtime.
> At runtime there is no difference between:
> setSomething(List);
> and
> setSomething(List<String>);
> Furthermore Java prevents having both methods above declared in the same class (same applies if List were List<Object>). A List is a List no matter the generic type. The generic type checking is made at compilation time. Blueprint is not a compiler :)
> Please add a flag to enforce or not the generic type checking!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)