aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Philippe CLEMENT (JIRA)" <>
Subject [jira] [Created] (ARIES-1607) Blueprint injection checking goes far beyond OSGi spec
Date Wed, 07 Sep 2016 08:07:20 GMT
Jean-Philippe CLEMENT created ARIES-1607:

             Summary: Blueprint injection checking goes far beyond OSGi spec
                 Key: ARIES-1607
             Project: Aries
          Issue Type: Bug
    Affects Versions: blueprint-core-1.6.2
            Reporter: Jean-Philippe CLEMENT
            Priority: Critical

Blueprint should only inject objects depending on their class the way the JVM works at runtime.

At runtime there is no difference between:
 List getSomething();
 List<String> getSomething();

Furthermore Java prevents having both methods above declared in the same class. Same 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 at least add a flag to enforce or not the generic type checking!

This message was sent by Atlassian JIRA

View raw message