RFR(s): 8169055: [TESTBUG] : java/io/Serializable/serialFilter/ tests have undeclared dependency on jdk.jdeps module
Sergei Kovalev
sergei.kovalev at oracle.com
Wed Nov 2 12:31:17 UTC 2016
Hi Daniel,
Thank you for looking this.
We have six java files: CheckInputOrderTest.java,
FilterWithSecurityManagerTest.java, GlobalFilterTest.java,
MixedFiltersTest.java, SerialFilterTest.java.
Last one has declared import:
import javax.lang.model.SourceVersion;
that is a part of jdk.jdeps module. All other java files has a line
like: "@build FilterWithSecurityManagerTest SerialFilterTest" that means
that the test requires the SerialFilterTest.java being compiled and
therefore it depends on jdeps module too.
Could you please point me which particular imports belong to
jdk.compiler module?
For execution I've use the command line
jtreg -jdk:/home/skovalev/TRASH/jdk9_latest -verbose:all
-javaoptions:"--limit-modules java.base,jdk.jdeps"
-javacoptions:"--limit-modules java.base,jdk.jdeps"
/home/skovalev/repos/jdk9-dev/jdk/test/java/io/Serializable/serialFilter
and the tests compiled successfully without jdk.compiler. What should I
change in my environment to highlight dependency from the module?
02.11.16 14:45, Daniel Fuchs wrote:
> Hi Sergey,
>
> I do not see any dependency on jdk.jdeps in the test sources.
> What I do see is a dependency on java.compiler though.
>
> So why @modules jdk.jdeps and not @modules java.compiler?
>
> best regards,
>
> -- daniel
>
>
> On 02/11/16 11:22, Sergei Kovalev wrote:
>> Hi team,
>>
>> Please review a very small fix for tests related to java/io/Serializable
>> pack.
>>
>> BugID: https://bugs.openjdk.java.net/browse/JDK-8169055
>> WebRev: http://cr.openjdk.java.net/~skovalev/8169055/webrev.00/
>>
>> Issue: Several tests failing in case usage of "--limit-modules" command
>> line option.
>> Solution: add missed declaration into test jtreg header.
>>
>
--
With best regards,
Sergei
More information about the core-libs-dev
mailing list