Generics fixes require change in code generated for JSPs
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 27 Nov 2008 00:08:32 +0000 (00:08 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 27 Nov 2008 00:08:32 +0000 (00:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@721041 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/Generator.java

index 20b1481..483feeb 100644 (file)
@@ -485,14 +485,14 @@ class Generator {
         out.println();
 
         // Static data for getDependants()
-        out.printil("private static java.util.List _jspx_dependants;");
+        out.printil("private static java.util.List<String> _jspx_dependants;");
         out.println();
         List<String> dependants = pageInfo.getDependants();
         Iterator<String> iter = dependants.iterator();
         if (!dependants.isEmpty()) {
             out.printil("static {");
             out.pushIndent();
-            out.printin("_jspx_dependants = new java.util.ArrayList(");
+            out.printin("_jspx_dependants = new java.util.ArrayList<String>(");
             out.print("" + dependants.size());
             out.println(");");
             while (iter.hasNext()) {
@@ -537,7 +537,7 @@ class Generator {
      */
     private void genPreambleMethods() throws JasperException {
         // Method used to get compile time file dependencies
-        out.printil("public Object getDependants() {");
+        out.printil("public java.util.List<String> getDependants() {");
         out.pushIndent();
         out.printil("return _jspx_dependants;");
         out.popIndent();