Index: test/java/org/apache/ivy/conflict/LatestConflictManagerTest.java
===================================================================
--- test/java/org/apache/ivy/conflict/LatestConflictManagerTest.java	(revision 0)
+++ test/java/org/apache/ivy/conflict/LatestConflictManagerTest.java	(revision 0)
@@ -0,0 +1,67 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+package org.apache.ivy.conflict;
+
+/**
+ * @author Anders janmyr
+ */
+
+import java.util.Date;
+import java.util.Iterator;
+
+import org.apache.ivy.Ivy;
+import org.apache.ivy.ModuleRevisionId;
+import org.apache.ivy.conflict.StrictConflictException;
+import org.apache.ivy.report.ConfigurationResolveReport;
+import org.apache.ivy.report.ResolveReport;
+
+import junit.framework.*;
+
+
+public class LatestConflictManagerTest extends TestCase
+{
+    private Ivy ivy;
+
+    protected void setUp() throws Exception
+    {
+        ivy = new Ivy();
+        ivy.configure( LatestConflictManagerTest.class
+                .getResource( "ivyconf-latest.xml" ) );
+    }
+
+    // Test case for issue IVY-383
+    public void testIvy383() throws Exception
+    {
+        ResolveReport report =
+            ivy.resolve( LatestConflictManagerTest.class
+                         .getResource( "ivy-383.xml" ), null,
+                         new String[] { "*" }, null, new Date(), false );
+        ConfigurationResolveReport defaultReport =
+            report.getConfigurationReport("default");
+        Iterator iter = defaultReport.getModuleRevisionIds().iterator();
+        while (iter.hasNext()) {
+            ModuleRevisionId mrid = (ModuleRevisionId)iter.next();
+            if (mrid.getName().equals("mod1.1")) {
+                assertEquals("1.0", mrid.getRevision());
+            }
+            else if (mrid.getName().equals("mod1.2")) {
+                assertEquals("2.2", mrid.getRevision());
+            }
+        }
+    }
+}
\ No newline at end of file
Index: test/java/org/apache/ivy/conflict/ivyconf-latest.xml
===================================================================
--- test/java/org/apache/ivy/conflict/ivyconf-latest.xml	(revision 0)
+++ test/java/org/apache/ivy/conflict/ivyconf-latest.xml	(revision 0)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ivyconf>
+
+    <conf defaultResolver="test"/>
+
+    <resolvers>
+        <filesystem name="test">
+            <artifact
+                    pattern="test/repositories/1/[organisation]/[module]/[type]s/[artifact]-[revision].[type]"/>
+            <ivy pattern="test/repositories/1/[organisation]/[module]/ivys/ivy-[revision].xml"/>
+        </filesystem>
+    </resolvers>
+</ivyconf>
Index: test/java/org/apache/ivy/conflict/ivy-383.xml
===================================================================
--- test/java/org/apache/ivy/conflict/ivy-383.xml	(revision 0)
+++ test/java/org/apache/ivy/conflict/ivy-383.xml	(revision 0)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ivy-module version="1.0"> 
+        <info organisation="apache" module="resolve-latest-conflict" revision="1.0" status="release"/>
+        <dependencies>
+            <!-- mod1.1-1.0 depends on mod1.2-2.0 -->
+            <dependency org="org1" name="mod1.1" rev="1.0"/>
+
+            <!-- This should find revision 2.2, but it doesn't
+                 because LatestConflictManager compares "2.0" with
+                 "[2,)" instead of "2.2"! -->
+            <dependency org="org1" name="mod1.2" rev="[2,)"/>
+        </dependencies>
+</ivy-module>
\ No newline at end of file
Index: build.xml
===================================================================
--- build.xml	(revision 494984)
+++ build.xml	(working copy)
@@ -153,7 +153,7 @@
          ================================================================= -->
 	<target name="init-tests-offline" if="offline">
  		    <fileset id="test.fileset" dir="${test.dir}">
- 		    	<include name="**/*Test.java"/>
+ 		    	<include name="**/${test.class.pattern}.java"/>
  		    	<exclude name="**/Abstract*Test.java"/>
  		    	<contains text="junit"/>
  		    	<not><contains text="remote.test"/></not>
Index: build.properties
===================================================================
--- build.properties	(revision 494984)
+++ build.properties	(working copy)
@@ -17,3 +17,5 @@
 ivy.minimum.javaversion=1.4
 debug.mode=on
 ivy.install.version=1.4.1
+
+test.class.pattern = *Test
\ No newline at end of file
