~peter-kovac11/play/play-scala-console-improvements

« back to all changes in this revision

Viewing changes to framework/src/play/templates/TemplateCompiler.java

  • Committer: guillaume
  • Date: 2009-11-11 17:19:54 UTC
  • Revision ID: guillaume@macbook-pro-de-guillaume.local-20091111171954-1z761dqr0aw93747
yabe-with-scala

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
            List<String> names = new ArrayList();
85
85
            Map<String, String> originalNames = new HashMap<String, String>();
86
86
            for (Class clazz : Play.classloader.getAllClasses()) {
87
 
                names.add(clazz.getName().replace("$", "."));
88
 
                originalNames.put(clazz.getName().replace("$", "."), clazz.getName());
 
87
                if(clazz.getName().endsWith("$")) {
 
88
                    names.add(clazz.getName().substring(0, clazz.getName().length()-1).replace("$", ".")+"$");
 
89
                    originalNames.put(clazz.getName().substring(0, clazz.getName().length()-1).replace("$", ".")+"$", clazz.getName());
 
90
                } else {
 
91
                    names.add(clazz.getName().replace("$", "."));
 
92
                    originalNames.put(clazz.getName().replace("$", "."), clazz.getName());
 
93
                }
89
94
            }
90
95
            Collections.sort(names, new Comparator<String>() {
91
96