Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java @ 18811:d2ec5f50dcd0
Truffle-DSL: fixed name clashes were still possible on a OS with case insensitive file system.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 10 Jan 2015 13:44:47 +0100 |
parents | b9cf6f3150ea |
children | ae81dd154fb6 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java Sat Jan 10 13:46:02 2015 +0100 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java Sat Jan 10 13:44:47 2015 +0100 @@ -939,12 +939,12 @@ boolean changed = false; Map<String, Integer> counts = new HashMap<>(); for (String s1 : signatures) { - Integer count = counts.get(s1); + Integer count = counts.get(s1.toLowerCase()); if (count == null) { count = 0; } count++; - counts.put(s1, count); + counts.put(s1.toLowerCase(), count); } for (String s : counts.keySet()) { @@ -954,7 +954,7 @@ int number = 0; for (ListIterator<String> iterator = signatures.listIterator(); iterator.hasNext();) { String s2 = iterator.next(); - if (s.equals(s2)) { + if (s.equalsIgnoreCase(s2)) { iterator.set(s2 + number); number++; }