Support for varargs is new in Java 5. See
http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html
The Consumer open() method has always had a variable length argument
list, and the javadoc explains that it is normally called with no arguments:
void open(Consumer.OpenFlag... flags) throws DTraceException
Opens this DTrace consumer. Optional flags indicate behaviors that can
only be set at the time of opening. Most optional behaviors are set using
setOption() after opening the consumer. In the great majority of cases, the
consumer is opened without specifying any flags:
consumer.open();
Currently, the only available flags are ILP32 and LP64, which correspond
to the -32 and -64 options of dtrace(1M).
Perhaps your version of eclipse doesn''t support Java 5?
Thanks,
Tom
--
This message posted from opensolaris.org