title: Nashorn: How to select constructor to invoke
body: <p>I know from <a href="https://stackoverflow.com/questions/25603191/nashorn-bug-when-calling-overloaded-method-with-varargs-parameter">this page</a> that I can select a method like this:</p>
  
  <pre><code>API["test(Integer[])"](1);
  </code></pre>
  
  <p>How do I do this for constructors? In particular, I'm trying to instantiate a <code>java.awt.Color</code> from Nashorn:</p>
  
  <pre><code>var highlightColor = new java.awt.Color(1, 1, 128/255, 1);
  </code></pre>
  
  <p>I get the following error: Can't unambiguously select between fixed arity signatures [(float, float, float, float), (int, int, int, int)] of the method java.awt.Color. for argument types [java.lang.Integer, java.lang.Integer, java.lang.Double, java.lang.Integer]</p>
  
  <p>I've tried this:</p>
  
  <pre><code>var highlightColor = new java.awt.Color["(float,float,float,float)"](1, 1, 128/255, 1);
  </code></pre>
  
  <p>But that gives me this error: Caused by: :52 TypeError: null is not a function</p>