Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix JavaReflectionClass bug with no-argument bridge methods.

When a class overrides a generic method, the compiler generates

a bridge method (see https://docs.oracle.com/javase/tutorial/java/generics/bridgeMethods.html).

Bridge methods are returned by Class.getDeclaredMethods().

This commit ensures that bridge methods are not returned by

JavaReflectionClass.getMethods(), which avoids codegen issues

when a bridge method differs from the actual method only by

return type.

    • -7
    • +7
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +29
    ./test/model/HasBinding.java
    • -0
    • +26
    ./test/model/HasValue.java
    • -0
    • +79
    ./test/model/PortableIntegerParameterDefinition.java
    • -0
    • +60
    ./test/model/PortableParameterDefinition.java
  1. … 1 more file in changeset.
Added nullsafe foreach loop support to codegen

  1. … 4 more files in changeset.
Fixed generic array handling in GWTParameterizedType.getTypeParameters.

GWTParameterizedType.getTypeParameters throw IllegalArgumentException

for generic array type parameter.

    • -0
    • +10
    ./test/model/GenericArrayCollectionTestModel.java
  1. … 2 more files in changeset.
Added scope, modifiers and super type hash to class content hash

  1. … 3 more files in changeset.
Added scope, modifiers and super type hash to class content hash

  1. … 3 more files in changeset.
Added content-based hash to MetaClass

  1. … 5 more files in changeset.
Added content-based hash to MetaClass

  1. … 5 more files in changeset.
Diable @Alias implementation for performance gain.

  1. … 4 more files in changeset.
Fixed code gen assertions to reflect shorter representation of empty classes

Added support for declaring inner classes to ClassStructureBuilder

  1. … 2 more files in changeset.
Added classComment() to ClassBuilder

Fixes https://issues.jboss.org/browse/ERRAI-654

  1. … 2 more files in changeset.
Updated ProxyMakerTests to reflect ERRAI-277 changes.

Ensured same behavior of MetaClass#get*Fields() implementations.

* GWTClass.#get*Fields() and BuildMetaClass.#get*Fields() now behave

the same like JavaReflectionClass.#get[Declared]Fields()

* Added a test case for building a class with access to inherited fields

Fixes https://issues.jboss.org/browse/ERRAI-640

    • -0
    • +37
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +81
    ./test/meta/build/BuildMetaClassTest.java
  1. … 2 more files in changeset.
Ensured getMethods() returns same result for Gwt and Reflection implementations

    • -0
    • +37
    ./test/meta/AbstractMetaClassTest.java
  1. … 2 more files in changeset.
Ensured getMethods() returns same result for Gwt and Reflection implementations

    • -0
    • +37
    ./test/meta/AbstractMetaClassTest.java
  1. … 2 more files in changeset.
Fixed incorrect initialization of annotation attributes.

Annotations with Array attributes of char, long, enum and Class

Annotations with Annotation attributes

    • -0
    • +637
    ./test/AnnotationTest.java
  1. … 1 more file in changeset.
strange

It's now possible to create aliases for a group of annotations for example create @UiProperty that means the same as @Inject @Bound @DataField

  1. … 17 more files in changeset.
It's now possible to create aliases for a group of annotations on classes

    • -0
    • +76
    ./test/AnnotationAliasTest.java
  1. … 5 more files in changeset.
fix to last commit: do not use regular expression matching to massage path.

load inputstream directly from classloader for looked up file resource instead of calculating path.

use File.pathSeparator instead of "/"

fix to test harness for reachability analysis -- did not work on windows due to improper path handling.

  1. … 1 more file in changeset.
merge

  1. … 3 more files in changeset.
fix to ERRAI-536

    • -112
    • +123
    ./test/InvocationBuilderTest.java
  1. … 6 more files in changeset.
code cleanup

  1. … 4 more files in changeset.
code cleanup of codegen and additional unit tests

    • -267
    • +295
    ./test/ClassBuilderTest.java
  1. … 16 more files in changeset.
Added tests for getBounds() in MetaTypeVariable implementations

    • -0
    • +30
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +9
    ./test/model/ClassWithGenericCollections.java
- code cleanup - fix to ProxyMaker: all overridden methods should use erased parameter types.

    • -0
    • +37
    ./test/model/ToProxyBean2.java
  1. … 5 more files in changeset.
Marking proxied methods as @Override in the hopes of making Navigation properly proxyable

Also added a log statement to an empty catch block that was suspected to be eating an exception

(it wasn't, in this instance)

  1. … 2 more files in changeset.