JDK-6460479 : check parser for possible hangs
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2006-08-15
  • Updated: 2015-12-02
  • Resolved: 2015-11-17
Related Reports
Relates :  
Description
Bug 6459421 revealed a potential for bugs in the javac parser caused by the slight change in semantics of reportSyntaxError (a call of skip() was removed).

We should audit the parser to make sure no other latent bugs remain.

Any such bugs could cause javac to hang, as did 6459421.

Comments
Restating the problem somewhat, a sufficient condition to avoid this class of hang is for all exit paths from a parser method must consume at least one token. Conversely, a parser has the kind of hang is there exist production loops were no input is consumed.
02-12-2015

Too ill-defined
17-11-2015