JDK-8014021 : TreeMaker.Params behaves inconsistently when the owning method has the same number of parameters as the number of parameter types requested
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2013-05-06
  • Updated: 2017-11-09
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.
Other
tbd_minorUnresolved
Related Reports
Relates :  
Description
Normally TreeMaker.Params creates parameters of the types passed in.  However, if the owner is a method, and the method happens to have the same number of parameters as the number of parameters requested, the types of the owner method's parameters are used.  

I believe this is a poorly designed dual use.  It caused unexpected failures in code that used it when the parameter lengths happened to match.

Comments
Robert, can you help with this one and look at it. Thanks.
12-07-2013