From 0205e5146b50ab066d152fccda0fc8cef4eef852 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 3 Dec 2020 02:09:57 -0400 Subject: Detect duplicate files coming from dependencies. --- lux-jvm/source/luxc/lang/translation/jvm.lux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lux-jvm/source/luxc/lang') diff --git a/lux-jvm/source/luxc/lang/translation/jvm.lux b/lux-jvm/source/luxc/lang/translation/jvm.lux index dce3017f5..88dc6a96f 100644 --- a/lux-jvm/source/luxc/lang/translation/jvm.lux +++ b/lux-jvm/source/luxc/lang/translation/jvm.lux @@ -135,7 +135,8 @@ (-> Library java/lang/ClassLoader Definition (Try Any)) (io.run (do (try.with io.monad) [existing-class? (|> (atom.read library) - (\ io.monad map (dictionary.contains? class-name)) + (\ io.monad map (function (_ library) + (dictionary.key? library class-name))) (try.lift io.monad) (: (IO (Try Bit)))) _ (if existing-class? -- cgit v1.2.3