bundles/org.apache.jasper.glassfish/src/org/apache/jasper/compiler/DefaultErrorHandler.java
public void javacError(JavacErrorDetail[] details) throws JasperException {

        if (details == null) {
            return;
        }

	Object[] args = null;
        StringBuilder buf = new StringBuilder();

        for (int i=0; i < details.length; i++) {
            if (details[i].getJspBeginLineNumber() >= 0) {
                args = new Object[] {
                        Integer.valueOf(details[i].getJspBeginLineNumber()), 
                        details[i].getJspFileName() };
                buf.append(Localizer.getMessage("jsp.error.single.line.number",
                                                args));
                buf.append("\n"); 
            }

            buf.append(
                Localizer.getMessage("jsp.error.corresponding.servlet"));
            buf.append(details[i].getErrorMessage());
            buf.append("\n\n");
        }

        if (buf.length() == 0) {
            throw new JasperException(Localizer.getMessage("jsp.error.nojdk"));
        }
	throw new JasperException(
            Localizer.getMessage("jsp.error.unable.compile") + "\n\n" + buf);
    }
public void javacError(JavacErrorDetail[] details) throws JasperException {

        if (details == null) {
            return;
        }

	Object[] args = null;
        StringBuilder buf = new StringBuilder();

        for (int i=0; i < details.length; i++) {
            if (details[i].getJspBeginLineNumber() >= 0) {
                args = new Object[] {
                        Integer.valueOf(details[i].getJspBeginLineNumber()), 
                        details[i].getJspFileName() };
                buf.append(Localizer.getMessage("jsp.error.single.line.number",
                                                args));
                buf.append("\n"); 
            }

            buf.append(
                Localizer.getMessage("jsp.error.corresponding.servlet"));
            buf.append(details[i].getErrorMessage());
            buf.append("\n\n");
        }

        if (buf.length() == 0) {
            throw new JasperException(Localizer.getMessage("jsp.error.nojdk"));
        }
	throw new JasperException(
            Localizer.getMessage("jsp.error.unable.compile") + "\n\n" + buf);
    }
public void javacError ( JavacErrorDetail [ ] details ) throws JasperException { if ( details == null ) { return ; } Object [ ] args = null ; StringBuilder buf = new StringBuilder ( ) ; for ( int i = 0 ; i < details . length ; i ++ ) { if ( details [ i ] . getJspBeginLineNumber ( ) >= 0 ) { args = new Object [ ] { Integer . valueOf ( details [ i ] . getJspBeginLineNumber ( ) ) , details [ i ] . getJspFileName ( ) } ; buf . append ( Localizer . getMessage ( "jsp.error.single.line.number" , args ) ) ; buf . append ( "\n" ) ; } buf . append ( Localizer . getMessage ( "jsp.error.corresponding.servlet" ) ) ; buf . append ( details [ i ] . getErrorMessage ( ) ) ; buf . append ( "\n\n" ) ; } if ( buf . length ( ) == 0 ) { throw new JasperException ( Localizer . getMessage ( "jsp.error.nojdk" ) ) ; } throw new JasperException ( Localizer . getMessage ( "jsp.error.unable.compile" ) + "\n\n" + buf ) ; }
/*
Processes the given javac compilation errors.

@param details Array of JavacErrorDetail instances corresponding to the
compilation errors
/ * Processes the given javac compilation errors .