groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulk-asert <...@git.apache.org>
Subject [GitHub] groovy pull request #837: GROOVY-8917: Failed to infer parameter type of som...
Date Mon, 10 Dec 2018 20:35:10 GMT
Github user paulk-asert commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/837#discussion_r240369943
  
    --- Diff: src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java ---
    @@ -213,4 +220,15 @@ private static String makeRefDescription(String name) {
             long.class, Long.class,
             short.class, Short.class
         );
    +
    +    private static final Map<ClassNode, ClassNode> PRIMITIVE_CLASSNODE_TO_WRAPPED_CLASSNODE_MAP
= Maps.of(
    +            ClassHelper.byte_TYPE, ClassHelper.Byte_TYPE,
    +            ClassHelper.boolean_TYPE, ClassHelper.Boolean_TYPE,
    +            ClassHelper.char_TYPE, ClassHelper.Character_TYPE,
    +            ClassHelper.double_TYPE, ClassHelper.Double_TYPE,
    +            ClassHelper.float_TYPE, ClassHelper.Float_TYPE,
    +            ClassHelper.int_TYPE, ClassHelper.Integer_TYPE,
    +            ClassHelper.long_TYPE, ClassHelper.Long_TYPE,
    +            ClassHelper.short_TYPE, ClassHelper.Short_TYPE
    +    );
    --- End diff --
    
    Isn't this already in ClassHelper#PRIMITIVE_TYPE_TO_WRAPPER_TYPE_MAP?


---

Mime
View raw message