- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for parseClass (0.14 sec)
-
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/DefaultSerializerTest.groovy
GroovyClassLoader classLoader = new GroovyClassLoader(getClass().classLoader) DefaultSerializer serializer = new DefaultSerializer(classLoader) Class cl = classLoader.parseClass('package org.gradle.cache; class TestObj implements Serializable { }') Object o = cl.newInstance(new Object[0]) when: def r = serialize(o, serializer) then: cl.isInstance(r)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/ClassLoaderObjectInputStreamTest.groovy
class ClassLoaderObjectInputStreamTest extends Specification { def "should handle array types"() { setup: GroovyClassLoader gcl = new GroovyClassLoader() def myClass = gcl.parseClass("class MyClass {}") def arrayObject = Array.newInstance(myClass, 10) def output = new ByteArrayOutputStream() def oos = new ObjectOutputStream(output) oos.writeObject(arrayObject)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 1.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/BuildOperationNotificationsFixtureTest.groovy
} BuildOperationNotificationListener listener() { GroovyClassLoader groovyClassLoader = new GroovyClassLoader(BuildOperationNotificationsFixture.getClassLoader()) Class theParsedClass = groovyClassLoader.parseClass(BuildOperationNotificationsFixture.EVALUATION_LISTENER_SOURCE) return JavaReflectionUtil.newInstance(theParsedClass) as BuildOperationNotificationListener }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/process/internal/AbstractWorkerProcessIntegrationSpec.groovy
File gradleUserHome() { return tmpDir.file("gradleUserHome") } Class<?> compileWithoutClasspath(String className, String classText) { return new GroovyClassLoader(getClass().classLoader).parseClass(classText, className) } Class<?> compileToDirectoryAndLoad(String className, String classText) { def classesDir = tmpDir.createDir("classes/$className")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 7.5K bytes - Viewed (0) -
src/internal/platform/supported.go
// linux/ppc64 not supported because it does // not support external linking mode yet. return true default: // Other targets do not support -shared, // per ParseFlags in // cmd/compile/internal/base/flag.go. // For c-archive the Go tool passes -shared, // so that the result is suitable for inclusion // in a PIE or shared library. return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 07:50:22 UTC 2024 - 7.6K bytes - Viewed (0)