Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for parseClass (0.51 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ScalarTypesInManagedModelTest.groovy

        def classLoader = new GroovyClassLoader(this.class.classLoader)
    
        def "cannot have read only property of scalar type #someType.simpleName"() {
    
            when:
            def clazz = classLoader.parseClass """
                import org.gradle.api.artifacts.Configuration.State
                import org.gradle.model.Managed
    
                @Managed
                interface ManagedType {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleSourceDetectorTest.groovy

        }
    
        private void addClass(GroovyClassLoader cl, String impl) {
            def type = cl.parseClass(impl)
            detector.getDeclaredSources(type)
            type = null
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaStoreTest.groovy

            then:
            store.cache.size() == 6
        }
    
        private ModelSchema addClass(GroovyClassLoader cl, String impl) {
            def type = cl.parseClass(impl)
            store.getSchema(ModelType.of(type))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy

            result[2].method == method1
            result[2].arguments == [4, 5] as Object[]
        }
    
        def "uses provided ClassLoader to locate incoming method invocation"() {
            Class cl = classLoader.parseClass('package org.gradle.test; class TestObj { void doStuff() { } }')
            def method = cl.getMethod("doStuff")
            def invocation = new MethodInvocation(method, [] as Object[])
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. 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)
  9. 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