Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for parseClass (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top