[ 
https://issues.apache.org/jira/browse/ARIES-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Philippe CLEMENT updated ARIES-1607:
-----------------------------------------
    Description: 
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!

  was:
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!


> Blueprint injection checking goes far beyond OSGi spec
> ------------------------------------------------------
>
>                 Key: ARIES-1607
>                 URL: https://issues.apache.org/jira/browse/ARIES-1607
>             Project: Aries
>          Issue Type: Bug
>    Affects Versions: blueprint-core-1.6.2
>            Reporter: Jean-Philippe CLEMENT
>            Priority: Critical
>
> 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
(v6.3.4#6332)

Reply via email to