contrib/jwrapper: improve `JavaType::==`
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 23 Jul 2015 15:10:42 +0000 (11:10 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 24 Jul 2015 16:34:34 +0000 (12:34 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/src/model.nit

index 86d0176..7c49790 100644 (file)
@@ -121,9 +121,10 @@ class JavaType
                end
        end
 
-       # Comparison based on fully qualified named and generic params
-       # Ignores primitive array so `a.b.c[][] == a.b.c`
-       redef fun ==(other) do return other isa JavaType and self.full_id == other.full_id
+       # Comparison based on fully qualified named
+       redef fun ==(other) do return other isa JavaType and
+               self.full_id == other.full_id and
+               self.is_primitive_array == other.is_primitive_array
 
        redef fun hash do return self.full_id.hash
 end