JDK-4253402 : no limit to number of errors printed by javac
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.2.2,1.3.0,1.4.0
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_98,windows_2000
  • CPU: generic,x86
  • Submitted: 1999-07-12
  • Updated: 2017-05-16
  • Resolved: 2002-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
1.4.2 mantisFixed
Related Reports
Duplicate :  

Name: skT88420			Date: 07/12/99

there is no way I can tell to make javac print more than 100
error messages.  This is dumb.  What if I want to compile *.java
and pipe all the errors to a file?  What if I want to compile
an old AWT application I'm converting to Swing and it has more
than 100 deprecated uses of AWT components.  Please make the 100
limit an option.
(Review ID: 85483) 

Name: krC82822			Date: 06/05/2001

java version "1.3.0_01"
Java(TM) 2 Runtime Environmeht, Standard Edition
(build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

I would like to be able to specify a maximum number
of error messages from the compiler, so I can read
them all in my terminal window.
(Review ID: 125795)

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis mantis-b02 FIXED IN: mantis mantis-b02 INTEGRATED IN: mantis mantis-b02

WORK AROUND Name: skT88420 Date: 07/12/99 compiler in small chunks ======================================================================

PUBLIC COMMENTS The new options -Xmaxerrors <em>number</em> and -Xmaxwarns <em>number</em> can be used to change the number of errors or warnings printed by the compiler before further diagnostics are suppressed. The default is, as before, 100.

EVALUATION Seems like a reasonable suggestion. william.maddox@Eng 1999-07-13 This will be addressed in mantis (1.4.2). For jonesw2 and others wondering how to redirect the output of the compiler, use option -Xstdout <filename> which was introduced in 1.4.0. ###@###.### 2002-06-13