Class BinaryStubClasspathTest
.astub.bin.gz resources.
The binary stub files are produced by the generateBinaryStubFiles Gradle task and
wired into processResources/sourcesJar via explicit dependsOn hooks,
because the idiomatic sourceSets.main.resources.srcDir(taskProvider) wiring does not
register the producer dependency on this project's Gradle version: with that wiring,
processResources goes UP-TO-DATE without ever scheduling generateBinaryStubFiles, and
the built jars silently ship without any .astub.bin.gz resources. See commit 278a3e3b for
the revert and the evidence. If that dependsOn wiring ever rots the same way, the
binaries vanish from the classpath again, and BinaryStubReader/AnnotationFileElementTypes silently fall back to text parsing with no diagnostic. This test
makes that failure loud by asserting that a known binary stub is present on the classpath, at the
exact resource path the private parseOneStubFile helper of AnnotationFileElementTypes.parseStubFiles() looks up.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAsserts that the binary form of the framework's built-injdk11.astub(parsed viaparseOneStubFile(this.getClass(), ...)inAnnotationFileElementTypes.parseStubFiles(), i.e.
-
Constructor Details
-
BinaryStubClasspathTest
public BinaryStubClasspathTest()
-
-
Method Details
-
frameworkBuiltinStubBinaryIsOnClasspath
public void frameworkBuiltinStubBinaryIsOnClasspath()Asserts that the binary form of the framework's built-injdk11.astub(parsed viaparseOneStubFile(this.getClass(), ...)inAnnotationFileElementTypes.parseStubFiles(), i.e. relative toAnnotationFileElementTypes's own package) is present on the classpath.
-