JDK-6394614 : Please provide a way to validate newly-constructed parameterized types.
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2006-03-06
  • Updated: 2022-08-10
Related Reports
Relates :  
Relates :  
Description
Please provide a way to validate newly-constructed parameterized types.
Something along the lines of the type validation in Check.validate,
except operating on Type objects.  It should be easy to validate without
automatically emitting diagnostics.

This would be useful, for example, for making the getDeclaredType utility 
methods in javax.lang.model.util.Types more robust in the face of invalid
arguments.