From: markt Date: Thu, 27 Nov 2008 00:08:32 +0000 (+0000) Subject: Generics fixes require change in code generated for JSPs X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fd39ce04c3a41031b8049515ea87cffafb4e7d9e;p=tomcat7.0 Generics fixes require change in code generated for JSPs git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@721041 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index 20b14817f..483feeb44 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -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 _jspx_dependants;"); out.println(); List dependants = pageInfo.getDependants(); Iterator 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("); 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 getDependants() {"); out.pushIndent(); out.printil("return _jspx_dependants;"); out.popIndent();