return;
getServletInfoGenerated = true;
- out.printil("public String getServletInfo() {");
+ out.printil("public java.lang.String getServletInfo() {");
out.pushIndent();
out.printin("return ");
out.print(quote(info));
private void generateInit() {
if (ctxt.isTagFile()) {
- out.printil("private void _jspInit(ServletConfig config) {");
+ out.printil("private void _jspInit(javax.servlet.ServletConfig config) {");
} else {
out.printil("public void _jspInit() {");
}
* preamble generation)
*/
private void genPreambleStaticInitializers() {
- out.printil("private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();");
+ out.printil("private static final javax.servlet.jsp.JspFactory _jspxFactory =");
+ out.printil(" javax.servlet.jsp.JspFactory.getDefaultFactory();");
out.println();
// Static data for getDependants()
- out.printil("private static java.util.List<String> _jspx_dependants;");
+ out.printil("private static java.util.List<java.lang.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<String>(");
+ out.printin("_jspx_dependants = new java.util.ArrayList<java.lang.String>(");
out.print("" + dependants.size());
out.println(");");
while (iter.hasNext()) {
*/
private void genPreambleMethods() {
// Method used to get compile time file dependencies
- out.printil("public java.util.List<String> getDependants() {");
+ out.printil("public java.util.List<java.lang.String> getDependants() {");
out.pushIndent();
out.printil("return _jspx_dependants;");
out.popIndent();
out.printin(" implements org.apache.jasper.runtime.JspSourceDependent");
if (!pageInfo.isThreadSafe()) {
out.println(",");
- out.printin(" SingleThreadModel");
+ out.printin(" javax.servlet.SingleThreadModel");
}
out.println(" {");
out.pushIndent();
// Now the service method
out.printin("public void ");
out.print(serviceMethodName);
- out.println("(final HttpServletRequest request, final HttpServletResponse response)");
- out.println(" throws java.io.IOException, ServletException {");
+ out.println("(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)");
+ out.println(" throws java.io.IOException, javax.servlet.ServletException {");
out.pushIndent();
out.println();
// Local variable declarations
- out.printil("final PageContext pageContext;");
+ out.printil("final javax.servlet.jsp.PageContext pageContext;");
if (pageInfo.isSession())
- out.printil("HttpSession session = null;");
+ out.printil("javax.servlet.http.HttpSession session = null;");
if (pageInfo.isErrorPage()) {
- out.printil("Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);");
+ out.printil("java.lang.Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);");
out.printil("if (exception != null) {");
out.pushIndent();
- out.printil("response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);");
+ out.printil("response.setStatus(javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR);");
out.popIndent();
out.printil("}");
}
- out.printil("final ServletContext application;");
- out.printil("final ServletConfig config;");
- out.printil("JspWriter out = null;");
- out.printil("final Object page = this;");
+ out.printil("final javax.servlet.ServletContext application;");
+ out.printil("final javax.servlet.ServletConfig config;");
+ out.printil("javax.servlet.jsp.JspWriter out = null;");
+ out.printil("final java.lang.Object page = this;");
- out.printil("JspWriter _jspx_out = null;");
- out.printil("PageContext _jspx_page_context = null;");
+ out.printil("javax.servlet.jsp.JspWriter _jspx_out = null;");
+ out.printil("javax.servlet.jsp.PageContext _jspx_page_context = null;");
out.println();
declareTemporaryScriptingVars(page);
printParams(n, pageParam, page.isLiteral());
out.println(");");
if (isTagFile || isFragment) {
- out.printil("throw new SkipPageException();");
+ out.printil("throw new javax.servlet.jsp.SkipPageException();");
} else {
out.printil((methodNesting > 0) ? "return true;" : "return;");
}
// JSP.5.1, Sematics, para 1 - lock not required for request or
// page scope
- String scopename = "PageContext.PAGE_SCOPE"; // Default to page
+ String scopename = "javax.servlet.jsp.PageContext.PAGE_SCOPE"; // Default to page
String lock = null;
if ("request".equals(scope)) {
- scopename = "PageContext.REQUEST_SCOPE";
+ scopename = "javax.servlet.jsp.PageContext.REQUEST_SCOPE";
} else if ("session".equals(scope)) {
- scopename = "PageContext.SESSION_SCOPE";
+ scopename = "javax.servlet.jsp.PageContext.SESSION_SCOPE";
lock = "session";
} else if ("application".equals(scope)) {
- scopename = "PageContext.APPLICATION_SCOPE";
+ scopename = "javax.servlet.jsp.PageContext.APPLICATION_SCOPE";
lock = "application";
}
* Note: Beans.instantiate throws ClassNotFoundException if
* the bean class is abstract.
*/
- out.printil("} catch (ClassNotFoundException exc) {");
+ out.printil("} catch (java.lang.ClassNotFoundException exc) {");
out.pushIndent();
out.printil("throw new InstantiationException(exc.getMessage());");
out.popIndent();
- out.printil("} catch (Exception exc) {");
+ out.printil("} catch (java.lang.Exception exc) {");
out.pushIndent();
- out.printin("throw new ServletException(");
+ out.printin("throw new javax.servlet.ServletException(");
out.print("\"Cannot create bean of class \" + ");
out.print(binaryName);
out.println(", exc);");
out.print(parent);
out.print(", ");
}
- out.print("PageContext _jspx_page_context");
+ out.print("javax.servlet.jsp.PageContext _jspx_page_context");
if (pushBodyCountVar != null) {
out.print(", int[] ");
out.print(pushBodyCountVar);
}
out.println(")");
- out.printil(" throws Throwable {");
+ out.printil(" throws java.lang.Throwable {");
out.pushIndent();
// Initialize local variables used in this method.
if (!isTagFile) {
- out.printil("PageContext pageContext = _jspx_page_context;");
+ out.printil("javax.servlet.jsp.PageContext pageContext = _jspx_page_context;");
}
- out.printil("JspWriter out = _jspx_page_context.getOut();");
+ out.printil("javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();");
generateLocalVariables(out, n);
}
nvp = " + \" " + attrs[i].getName() + "=\\\"\" + " +
value + " + \"\\\"\"";
} else {
- nvp = " + (Boolean.valueOf(" + omit + ")?\"\":\" " +
+ nvp = " + (java.lang.Boolean.valueOf(" + omit + ")?\"\":\" " +
attrs[i].getName() + "=\\\"\" + " + value +
" + \"\\\"\")";
}
}
// Restore EL context
- out.printil("jspContext.getELContext().putContext(JspContext.class,getJspContext());");
+ out.printil("jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,getJspContext());");
n.setEndJavaLine(out.getJavaLine());
}
}
// Restore EL context
- out.printil("jspContext.getELContext().putContext(JspContext.class,getJspContext());");
+ out.printil("jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,getJspContext());");
n.setEndJavaLine(out.getJavaLine());
}
}
}
if (isTagFile || isFragment) {
- out.printil("throw new SkipPageException();");
+ out.printil("throw new javax.servlet.jsp.SkipPageException();");
} else {
out.printil((methodNesting > 0) ? "return true;" : "return;");
}
// TryCatchFinally
if (n.implementsTryCatchFinally()) {
out.popIndent(); // try
- out.printil("} catch (Throwable _jspx_exception) {");
+ out.printil("} catch (java.lang.Throwable _jspx_exception) {");
out.pushIndent();
out.printin("while (");
sb.append(',');
sb.append(JspUtil.toJavaSourceTypeFromTld(attr.getExpectedTypeName()));
sb.append(',');
- sb.append("new Class[] {");
+ sb.append("new java.lang.Class[] {");
String[] p = attr.getParameterTypeNames();
for (int i = 0; i < p.length; i++) {
* scope constant.
*/
private String getScopeConstant(String scope) {
- String scopeName = "PageContext.PAGE_SCOPE"; // Default to page
+ String scopeName = "javax.servlet.jsp.PageContext.PAGE_SCOPE"; // Default to page
if ("request".equals(scope)) {
- scopeName = "PageContext.REQUEST_SCOPE";
+ scopeName = "javax.servlet.jsp.PageContext.REQUEST_SCOPE";
} else if ("session".equals(scope)) {
- scopeName = "PageContext.SESSION_SCOPE";
+ scopeName = "javax.servlet.jsp.PageContext.SESSION_SCOPE";
} else if ("application".equals(scope)) {
- scopeName = "PageContext.APPLICATION_SCOPE";
+ scopeName = "javax.servlet.jsp.PageContext.APPLICATION_SCOPE";
}
return scopeName;
Node bodyElement = body.getNode(0);
if (bodyElement instanceof Node.TemplateText) {
templateTextOptimization = true;
- out.printil("String "
+ out.printil("java.lang.String "
+ varName
+ " = "
+ quote(((Node.TemplateText) bodyElement)
if (!templateTextOptimization) {
out.printil("out = _jspx_page_context.pushBody();");
visitBody(n);
- out.printil("String " + varName + " = "
+ out.printil("java.lang.String " + varName + " = "
+ "((javax.servlet.jsp.tagext.BodyContent)"
+ "out).getString();");
out.printil("out = _jspx_page_context.popBody();");
}
} else {
// Empty body must be treated as ""
- out.printil("String " + varName + " = \"\";");
+ out.printil("java.lang.String " + varName + " = \"\";");
}
return varName;
}
if (ci.hasUseBean()) {
- out.printil("HttpSession session = _jspx_page_context.getSession();");
- out.printil("ServletContext application = _jspx_page_context.getServletContext();");
+ out.printil("javax.servlet.http.HttpSession session = _jspx_page_context.getSession();");
+ out.printil("javax.servlet.ServletContext application = _jspx_page_context.getServletContext();");
}
if (ci.hasUseBean() || ci.hasIncludeAction() || ci.hasSetProperty()
|| ci.hasParamAction()) {
- out.printil("HttpServletRequest request = (HttpServletRequest)_jspx_page_context.getRequest();");
+ out.printil("javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest)_jspx_page_context.getRequest();");
}
if (ci.hasIncludeAction()) {
- out.printil("HttpServletResponse response = (HttpServletResponse)_jspx_page_context.getResponse();");
+ out.printil("javax.servlet.http.HttpServletResponse response = (javax.servlet.http.HttpServletResponse)_jspx_page_context.getResponse();");
}
}
*/
private void generatePostamble() {
out.popIndent();
- out.printil("} catch (Throwable t) {");
+ out.printil("} catch (java.lang.Throwable t) {");
out.pushIndent();
- out.printil("if (!(t instanceof SkipPageException)){");
+ out.printil("if (!(t instanceof javax.servlet.jsp.SkipPageException)){");
out.pushIndent();
out.printil("out = _jspx_out;");
out.printil("if (out != null && out.getBufferSize() != 0)");
// Static initializations here
genPreambleStaticInitializers();
- out.printil("private JspContext jspContext;");
+ out.printil("private javax.servlet.jsp.JspContext jspContext;");
// Declare writer used for storing result of fragment/body invocation
// if 'varReader' or 'var' attribute is specified
genPreambleMethods();
// Now the doTag() method
- out.printil("public void doTag() throws JspException, java.io.IOException {");
+ out.printil("public void doTag() throws javax.servlet.jsp.JspException, java.io.IOException {");
if (ctxt.isPrototypeMode()) {
out.printil("}");
* implicit object in tag files. Declare _jspx_page_context, so we can
* share the code generator with JSPs.
*/
- out.printil("PageContext _jspx_page_context = (PageContext)jspContext;");
+ out.printil("javax.servlet.jsp.PageContext _jspx_page_context = (javax.servlet.jsp.PageContext)jspContext;");
// Declare implicit objects.
- out.printil("HttpServletRequest request = "
- + "(HttpServletRequest) _jspx_page_context.getRequest();");
- out.printil("HttpServletResponse response = "
- + "(HttpServletResponse) _jspx_page_context.getResponse();");
- out.printil("HttpSession session = _jspx_page_context.getSession();");
- out.printil("ServletContext application = _jspx_page_context.getServletContext();");
- out.printil("ServletConfig config = _jspx_page_context.getServletConfig();");
- out.printil("JspWriter out = jspContext.getOut();");
+ out.printil("javax.servlet.http.HttpServletRequest request = "
+ + "(javax.servlet.http.HttpServletRequest) _jspx_page_context.getRequest();");
+ out.printil("javax.servlet.http.HttpServletResponse response = "
+ + "(javax.servlet.http.HttpServletResponse) _jspx_page_context.getResponse();");
+ out.printil("javax.servlet.http.HttpSession session = _jspx_page_context.getSession();");
+ out.printil("javax.servlet.ServletContext application = _jspx_page_context.getServletContext();");
+ out.printil("javax.servlet.ServletConfig config = _jspx_page_context.getServletConfig();");
+ out.printil("javax.servlet.jsp.JspWriter out = jspContext.getOut();");
out.printil("_jspInit(config);");
// set current JspContext on ELContext
- out.printil("jspContext.getELContext().putContext(JspContext.class,jspContext);");
+ out.printil("jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,jspContext);");
generatePageScopedVariables(tagInfo);
// Have to catch Throwable because a classic tag handler
// helper method is declared to throw Throwable.
- out.printil("} catch( Throwable t ) {");
+ out.printil("} catch( java.lang.Throwable t ) {");
out.pushIndent();
- out.printil("if( t instanceof SkipPageException )");
- out.printil(" throw (SkipPageException) t;");
+ out.printil("if( t instanceof javax.servlet.jsp.SkipPageException )");
+ out.printil(" throw (javax.servlet.jsp.SkipPageException) t;");
out.printil("if( t instanceof java.io.IOException )");
out.printil(" throw (java.io.IOException) t;");
- out.printil("if( t instanceof IllegalStateException )");
- out.printil(" throw (IllegalStateException) t;");
- out.printil("if( t instanceof JspException )");
- out.printil(" throw (JspException) t;");
- out.printil("throw new JspException(t);");
+ out.printil("if( t instanceof java.lang.IllegalStateException )");
+ out.printil(" throw (java.lang.IllegalStateException) t;");
+ out.printil("if( t instanceof javax.servlet.jsp.JspException )");
+ out.printil(" throw (javax.servlet.jsp.JspException) t;");
+ out.printil("throw new javax.servlet.jsp.JspException(t);");
out.popIndent();
out.printil("} finally {");
out.pushIndent();
}
// restore nested JspContext on ELContext
- out.printil("jspContext.getELContext().putContext(JspContext.class,super.getJspContext());");
+ out.printil("jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,super.getJspContext());");
out.printil("((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();");
if (isPoolingEnabled && !tagHandlerPoolNames.isEmpty()) {
}
if (aliasSeen) {
- out.printil("public void setJspContext(JspContext ctx, java.util.Map aliasMap) {");
+ out.printil("public void setJspContext(javax.servlet.jsp.JspContext ctx, java.util.Map aliasMap) {");
} else {
- out.printil("public void setJspContext(JspContext ctx) {");
+ out.printil("public void setJspContext(javax.servlet.jsp.JspContext ctx) {");
}
out.pushIndent();
out.printil("super.setJspContext(ctx);");
out.popIndent();
out.printil("}");
out.println();
- out.printil("public JspContext getJspContext() {");
+ out.printil("public javax.servlet.jsp.JspContext getJspContext() {");
out.pushIndent();
out.printil("return this.jspContext;");
out.popIndent();
* variable can later be created for it.
*/
public void generateSetDynamicAttribute() {
- out.printil("public void setDynamicAttribute(String uri, String localName, Object value) throws JspException {");
+ out.printil("public void setDynamicAttribute(java.lang.String uri, java.lang.String localName, java.lang.Object value) throws javax.servlet.jsp.JspException {");
out.pushIndent();
/*
* According to the spec, only dynamic attributes with no uri are to be
out.printil("private int[] _jspx_push_body_count;");
out.println();
out.printil("public " + className
- + "( int discriminator, JspContext jspContext, "
+ + "( int discriminator, javax.servlet.jsp.JspContext jspContext, "
+ "javax.servlet.jsp.tagext.JspTag _jspx_parent, "
+ "int[] _jspx_push_body_count ) {");
out.pushIndent();
} else {
out.printin("public void invoke");
}
- out.println(result.getId() + "( " + "JspWriter out ) ");
+ out.println(result.getId() + "( " + "javax.servlet.jsp.JspWriter out ) ");
out.pushIndent();
// Note: Throwable required because methods like _jspx_meth_*
// throw Throwable.
- out.printil("throws Throwable");
+ out.printil("throws java.lang.Throwable");
out.popIndent();
out.printil("{");
out.pushIndent();
// Generate postamble:
out.printil("public void invoke( java.io.Writer writer )");
out.pushIndent();
- out.printil("throws JspException");
+ out.printil("throws javax.servlet.jsp.JspException");
out.popIndent();
out.printil("{");
out.pushIndent();
- out.printil("JspWriter out = null;");
+ out.printil("javax.servlet.jsp.JspWriter out = null;");
out.printil("if( writer != null ) {");
out.pushIndent();
out.printil("out = this.jspContext.pushBody(writer);");
out.printil("}");
out.printil("try {");
out.pushIndent();
- out.printil("this.jspContext.getELContext().putContext(JspContext.class,this.jspContext);");
+ out.printil("this.jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,this.jspContext);");
out.printil("switch( this.discriminator ) {");
out.pushIndent();
for (int i = 0; i < fragments.size(); i++) {
out.printil("}"); // switch
out.popIndent();
out.printil("}"); // try
- out.printil("catch( Throwable e ) {");
+ out.printil("catch( java.lang.Throwable e ) {");
out.pushIndent();
- out.printil("if (e instanceof SkipPageException)");
- out.printil(" throw (SkipPageException) e;");
- out.printil("throw new JspException( e );");
+ out.printil("if (e instanceof javax.servlet.jsp.SkipPageException)");
+ out.printil(" throw (javax.servlet.jsp.SkipPageException) e;");
+ out.printil("throw new javax.servlet.jsp.JspException( e );");
out.popIndent();
out.printil("}"); // catch
out.printil("finally {");
+ ") "
+ "org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate"
+ "(" + Generator.quote(expression) + ", " + targetType
- + ".class, " + "(PageContext)" + jspCtxt + ", "
+ + ".class, " + "(javax.servlet.jsp.PageContext)" + jspCtxt + ", "
+ fnmapvar + ", " + XmlEscape + ")");
/*
public static String coerceToBoolean(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Boolean) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Boolean.class)";
+ return "(java.lang.Boolean) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Boolean.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Boolean(false)";
+ return "new java.lang.Boolean(false)";
} else {
// Detect format error at translation time
- return "new Boolean(" + Boolean.valueOf(s).toString() + ")";
+ return "new java.lang.Boolean(" + Boolean.valueOf(s).toString() + ")";
}
}
}
public static String coerceToByte(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Byte) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Byte.class)";
+ return "(java.lang.Byte) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Byte.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Byte((byte) 0)";
+ return "new java.lang.Byte((byte) 0)";
} else {
// Detect format error at translation time
- return "new Byte((byte)" + Byte.valueOf(s).toString() + ")";
+ return "new java.lang.Byte((byte)" + Byte.valueOf(s).toString() + ")";
}
}
}
public static String coerceToCharacter(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Character) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Character.class)";
+ return "(java.lang.Character) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Character.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Character((char) 0)";
+ return "new java.lang.Character((char) 0)";
} else {
char ch = s.charAt(0);
// this trick avoids escaping issues
- return "new Character((char) " + (int) ch + ")";
+ return "new java.lang.Character((char) " + (int) ch + ")";
}
}
}
public static String coerceToDouble(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Double) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ return "(java.lang.Double) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ s + ", Double.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Double(0)";
+ return "new java.lang.Double(0)";
} else {
// Detect format error at translation time
- return "new Double(" + Double.valueOf(s).toString() + ")";
+ return "new java.lang.Double(" + Double.valueOf(s).toString() + ")";
}
}
}
public static String coerceToFloat(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Float) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Float.class)";
+ return "(java.lang.Float) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Float.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Float(0)";
+ return "new java.lang.Float(0)";
} else {
// Detect format error at translation time
- return "new Float(" + Float.valueOf(s).toString() + "f)";
+ return "new java.lang.Float(" + Float.valueOf(s).toString() + "f)";
}
}
}
public static String coerceToInteger(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Integer) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Integer.class)";
+ return "(java.lang.Integer) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Integer.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Integer(0)";
+ return "new java.lang.Integer(0)";
} else {
// Detect format error at translation time
- return "new Integer(" + Integer.valueOf(s).toString() + ")";
+ return "new java.lang.Integer(" + Integer.valueOf(s).toString() + ")";
}
}
}
public static String coerceToShort(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Short) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Short.class)";
+ return "(java.lang.Short) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Short.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Short((short) 0)";
+ return "new java.lang.Short((short) 0)";
} else {
// Detect format error at translation time
- return "new Short(\"" + Short.valueOf(s).toString() + "\")";
+ return "new java.lang.Short(\"" + Short.valueOf(s).toString() + "\")";
}
}
}
public static String coerceToLong(String s, boolean isNamedAttribute) {
if (isNamedAttribute) {
- return "(Long) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
- + s + ", Long.class)";
+ return "(java.lang.Long) org.apache.jasper.runtime.JspRuntimeLibrary.coerce("
+ + s + ", java.lang.Long.class)";
} else {
if (s == null || s.length() == 0) {
- return "new Long(0)";
+ return "new java.lang.Long(0)";
} else {
// Detect format error at translation time
- return "new Long(" + Long.valueOf(s).toString() + "l)";
+ return "new java.lang.Long(" + Long.valueOf(s).toString() + "l)";
}
}
}
*/
public static String toJavaSourceTypeFromTld(String type) {
if (type == null || "void".equals(type)) {
- return "Void.TYPE";
+ return "java.lang.Void.TYPE";
}
return type + ".class";
}