Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethodParser.java @ 8278:a219e2a5a92f
Fixed element ordering of methods which were inconsistent from javac to ecj.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 14 Mar 2013 13:11:14 +0100 |
parents | 0905d796944a |
children | 89006c76f737 |
comparison
equal
deleted
inserted
replaced
8277:97ee911c4c74 | 8278:a219e2a5a92f |
---|---|
108 parsedMethods.add(parsedMethod); | 108 parsedMethods.add(parsedMethod); |
109 } else { | 109 } else { |
110 valid = false; | 110 valid = false; |
111 } | 111 } |
112 } | 112 } |
113 Collections.sort(parsedMethods, new Comparator<TemplateMethod>() { | |
114 | |
115 @Override | |
116 public int compare(TemplateMethod o1, TemplateMethod o2) { | |
117 return o1.getMethodName().compareTo(o2.getMethodName()); | |
118 } | |
119 }); | |
120 | |
113 if (!valid && parseNullOnError) { | 121 if (!valid && parseNullOnError) { |
114 return null; | 122 return null; |
115 } | 123 } |
116 return parsedMethods; | 124 return parsedMethods; |
117 } | 125 } |