Hi Alan, Look here:
import javax.xml.bind.DatatypeConverter; public class Test { public static void main(String... args) throws Exception { DatatypeConverter.parseBoolean("true"); } } $ javac Test.java Test.java:1: error: package javax.xml.bind does not exist import javax.xml.bind.DatatypeConverter; ^ Test.java:5: error: cannot find symbol DatatypeConverter.parseBoolean("true"); ^ symbol: variable DatatypeConverter location: class Test 2 errors $ javac -source 8 -target 8 Test.java warning: [options] bootstrap class path not set in conjunction with -source 1.8 1 warning Of course it also passes with -release 8, but thats very clear, because it uses ct.sym of older version. Uwe ----- Uwe Schindler uschind...@apache.org ASF Member, Apache Lucene PMC / Committer Bremen, Germany http://lucene.apache.org/ > -----Original Message----- > From: jigsaw-dev [mailto:jigsaw-dev-boun...@openjdk.java.net] On Behalf > Of Uwe Schindler > Sent: Saturday, May 21, 2016 12:23 AM > To: 'Alan Bateman' <alan.bate...@oracle.com>; jigsaw- > d...@openjdk.java.net > Subject: RE: Compact profiles broken? > > Hi, > > > > FYI, this also explains why we did not see a compile failure about the > > java.xml.bind issue (see previous mails)! This only failed at runtime, > because > > with Jigsaw, the java.xml.bind is not exposed by the root modules. But > while > > compiling it seems to see all those classes, as its compiled against > > source/target 8 where the module system is ignored. So there is also room > > for improvement! Alan? > > > > > I think that's right as when compiling with -source/-target 8 they you > > are also specifying -bootclasspath (at least I assume you are) and so > > those types should be visible. > > No, we don't. But they were still visible to javac. But that’s fixed already > in > our build (we removed the class reference and we changed the build in Java > 9, see below)! > > Please note: I changed the Lucene/Solr build to now use "-release" if it > detects Java 9 (very easy with Apache Ant). Elasticsearch is still > investiagting > how to do this with Gradle... :( > > https://issues.apache.org/jira/browse/LUCENE-7292 > > Uwe