[ https://issues.apache.org/jira/browse/LANG-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306025#comment-15306025 ]
ASF GitHub Bot commented on LANG-1190: -------------------------------------- Github user coveralls commented on the pull request: https://github.com/apache/commons-lang/pull/158#issuecomment-222375773 [![Coverage Status](https://coveralls.io/builds/6379480/badge)](https://coveralls.io/builds/6379480) Coverage increased (+0.03%) to 93.391% when pulling **b1ed6725807382608ed45d9803f80b129a79c5a8 on PascalSchumacher:lang_1190** into **afedbae8aca69a092d65766640361801bf2b5d9b on apache:master**. > TypeUtils.isAssignable throws NullPointerException when fromType has type > variables and toType generic superclass specifies type variable > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: LANG-1190 > URL: https://issues.apache.org/jira/browse/LANG-1190 > Project: Commons Lang > Issue Type: Bug > Components: lang.reflect.* > Affects Versions: 3.4 > Reporter: Yuhau Lin > > {code:java} > import static org.apache.commons.lang3.reflect.TypeUtils.*; > import java.lang.reflect.InvocationTargetException; > import java.lang.reflect.Type; > import java.util.ArrayList; > public class Demonstration { > public static <U> Iterable<U> someMethod() { return null; } > > public static class WorkingClass extends ArrayList { } > public static class FailingClass extends ArrayList<Object> { } > > > public static void main(String[] args) throws NoSuchMethodException, > SecurityException, IllegalAccessException, IllegalArgumentException, > InvocationTargetException { > Type fromType = > Demonstration.class.getDeclaredMethod("someMethod").getGenericReturnType(); > Type workingToType = > wildcardType().withLowerBounds(WorkingClass.class).build(); > Type failingToType = > wildcardType().withLowerBounds(FailingClass.class).build(); > > System.out.println(fromType); > System.out.println(workingToType); > System.out.println(failingToType); > > System.out.println(isAssignable(fromType, workingToType)); > System.out.println(isAssignable(fromType, failingToType)); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)