Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
GRADLEREV-51 - Remove last of Groovy based ReflectionUtil.

  1. … 7 more files in changeset.
GRADLEREV-51 - replace some usages of Groovy based reflection with Java based.

  1. … 1 more file in changeset.
Merge 1.7-rc-2 release.

Conflicts:

subprojects/core-impl/src/main/groovy/org/gradle/api/internal/artifacts/repositories/DefaultBaseRepositoryFactory.java

subprojects/core-impl/src/test/groovy/org/gradle/api/internal/artifacts/repositories/DefaultBaseRepositoryFactoryTest.groovy

subprojects/core/src/main/groovy/org/gradle/process/internal/ExecAction.java

subprojects/core/src/main/groovy/org/gradle/process/internal/JavaExecAction.java

subprojects/docs/src/docs/release/notes.md

  1. … 10 more files in changeset.
Find annotations implemented by super classes.

  1. … 1 more file in changeset.
Merge remote-tracking branch 'remotes/origin/release'

  1. … 11 more files in changeset.
Make copy specs and file copy details not extensible (in DSL terms).

This is not the most elegant change. The changes to the class generator were made in such a way to change as little is possible due to the timing of this change in the release cycle.

The way we are achieving this functionality (i.e. disabling generating extensibility support) will change in the next release, therefore I am not going to document it in the release notes.

  1. … 7 more files in changeset.
Replace unnecessarily Groovy enabled method dispatch with plain Java.

  1. … 1 more file in changeset.
Fix method searching to always ignore methods overridden by subclasses.

Previously, they were only being ignored if they were 'found' as part of the search.

Add method for finding a single method in an inheritance sensitive fashion.

  1. … 1 more file in changeset.
Revert "Revert "Support calling single arg enum methods (incl. setters) of DSL objects with strings.""

This reverts commit a960c2ad0c80ee6fdb87d2249fbf990eebc209c5.

  1. … 8 more files in changeset.
Revert "Support calling single arg enum methods (incl. setters) of DSL objects with strings."

This reverts commit ce7677465d660edef01c4905743d3d58455c8e4f.

This breaks calling private methods on enhanced objects from Groovy.

  1. … 8 more files in changeset.
Support calling single arg enum methods (incl. setters) of DSL objects with strings.

String values are coerced by using the first enum value whose name is case insensitive equivalent.

There's a big change in here that now all methods called on enhanced objects go through our dynamic object protocol. This wasn't happening previously.

The coercing "infrastructure" is very naive and hardcoded to support this one case atm.

  1. … 8 more files in changeset.
Remove invokeMethod* methods part of JavaReflectionUtil in favour of JavaMethod.

  1. … 4 more files in changeset.
Move the factory methods for JavaMethod to JavaReflectionUtil.

Had to open up the constructors on JavaMethod to do this as these guys are in different packages. We probably should move JavaReflectionUtil.

  1. … 6 more files in changeset.
Use UncheckedException.throwAsUncheckedException() and unpack InvocationTargetExceptions.

Missing import.

Use getMethod() instead of getDeclaredMethod().

It was a mistake that it was committed using getDeclaredMethod().

Replace use of unnecessary Groovy based reflective invocation with Java based.

  1. … 4 more files in changeset.
Don't use Groovy reflection in the TestNG listening infrastructure.

Going through Groovy reflection incurs the cost of going through Groovy's MOP for no benefit in this case.

There are other cases where Groovy is being used to do reflective method invocations that should be audited.

  1. … 3 more files in changeset.
Some changes to generics to make IBM jdk 5 happy.

  1. … 4 more files in changeset.
Changed contract of Instantiator.newInstance() so that it throws wrapper ObjectInstantiationException.

    • -0
    • +23
    ./ObjectInstantiationException.java
  1. … 6 more files in changeset.
javadoc fix

Moved Instantiator and DirectInstantiator from core to baseServices.

    • -0
    • +68
    ./DirectInstantiator.java
  1. … 93 more files in changeset.
Moved getWrapperTypeForPrimitiveType() from ReflectionUtil to JavaReflectionUtil.

  1. … 3 more files in changeset.
Moved JavaReflectionUtil from core to baseServices.

    • -0
    • +64
    ./JavaReflectionUtil.java
  1. … 4 more files in changeset.