JDK 10 RFR of 8028544 and 8028546

joe darcy joe.darcy at oracle.com
Fri Jan 27 02:05:50 UTC 2017


Minor revision up at:

     http://cr.openjdk.java.net/~darcy/8028546.3/

Changes to MultiReleaseJarTest.java were reverted; updating the test to 
more extensively cover 10 is left for future work. (I'm not familiar 
with the logistics of testng tests so it wasn't trivial for me to add 
support for testing 10 as well as 9; it may be trivial for someone 
familiar with testng.)

Small diff added to ProfileOptionTest:

--- a/test/tools/javac/profiles/ProfileOptionTest.java    Wed Jan 25 
22:32:52 2017 +0000
+++ b/test/tools/javac/profiles/ProfileOptionTest.java    Thu Jan 26 
18:04:56 2017 -0800
@@ -148,6 +148,7 @@
                              error("unexpected exception from compiler: 
" + ise);
                          break;
                      case JDK1_9:
+                    case JDK1_10:
                          if (p == Profile.DEFAULT)
                              break;
                          if (ise == null)

With these changes, all the langtools tests pass and I verified the 
java/util/jar tests pass too.

Thanks,

-Joe


On 1/26/2017 4:49 PM, joe darcy wrote:
>
> On 1/26/2017 4:41 PM, Jonathan Gibbons wrote:
>> Mostly OK.
>>
>> test/tools/javac/file/MultiReleaseJar/MultiReleaseJarTest.java
>> I wonder whether in this test you should be adding a test case, 
>> instead of changing 9 to 10.
>
> I just kicked off a fresh test run. I'll revisit this test once that 
> run completes.
>
> The support for --release may be a bit odd until 9 is truly separate 
> from 10, but we should make it as full as possible as soon as possible.
>
> Thanks,
>
> -Joe
>
>>
>> -- Jon
>>
>>
>> On 01/26/2017 04:23 PM, joe darcy wrote:
>>> Hello,
>>>
>>> All langtools tests should be passing now with the refined changes in
>>>
>>>     http://cr.openjdk.java.net/~darcy/8028546.2/
>>>
>>> Stuart, jdeprscan required some minor edits.
>>>
>>> As noted implicitly in the some of changes, some of the areas of the 
>>> code affected on this webrev will need revision once there is 
>>> distinct support for --release 9 and --release 10.
>>>
>>> Thanks,
>>>
>>> -Joe
>>>
>>>
>>> On 1/26/2017 12:37 PM, joe darcy wrote:
>>>> Hello,
>>>>
>>>> As part of JDK 10 ground breaking, I'm working on fixes to
>>>>
>>>>     JDK-8028544: Add SourceVersion.RELEASE_10
>>>>     JDK-8028546: Add -source 10 and -target 10 to javac
>>>>
>>>> Current webrev available at
>>>>
>>>>     http://cr.openjdk.java.net/~darcy/8028546.1/
>>>>
>>>> With a few exceptions, the langtools tests are all passing with 
>>>> these changes. I updated a few annotation processing tests from 
>>>> using the vanilla AbstractProcessor to the 
>>>> JavacTestingAbstractProcessor. The exceptions include the currently 
>>>> failing tests
>>>>
>>>> FAILED: 
>>>> tools/javac/T8009640/CheckRejectProfileBCPOptionsIfUsedTogetherTest.java 
>>>>
>>>> FAILED: tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java
>>>> FAILED: tools/javac/file/MultiReleaseJar/MultiReleaseJarTest.java
>>>>
>>>> The failures seem related to the --release option. At least until 
>>>> the Java SE 9 API is finalized, I think it is okay for --release 9 
>>>> and --release 10 to mean the same thing and refer to the in-forest 
>>>> state of the API. However, I haven't fully reverse-engineered how 
>>>> to do that.
>>>>
>>>> Thanks,
>>>>
>>>> -Joe
>>>>
>>>
>>
>



More information about the compiler-dev mailing list