More reliable services was: Jigsaw spec clarifications

Jaroslav Tulach jaroslav.tulach at oracle.com
Fri Jan 20 07:18:39 PST 2012


>## 20. 1. 2012 15:54:56 ##<
> > I don't think the current spec mandates that the the service
> > implementation have a public no-arg constructor. javac doesn't check for
> > this currently so it's possible to get a ServiceConfigurationError at
> > runtime for this case
> 
> Seems like a defect in the spec. If there is some problem with the
> signature of the service that can reliably be detected at compile time, it
> should be treated as an error.

+1 

btw. when at rewriting the spec, could you consider including support for 
static factory methods as proposed by 
http://bugs.sun.com/view_bug.do?bug_id=6766540
?
-jt



More information about the jigsaw-dev mailing list