Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ERRAI-1075: Create APT generator for errai-marshalling (#296)

* Create APT generator for NavigationGraphGenerator

* Start to move errai-marshalling configuration out of EnvUtil clas

* Fixed exposed and nonExposed portable types

* Inline methods and add comment

* Fix NullPointerException

* Move Marshalling configuration out of EnvUtil

* Create MarshallersAptGenerator (not working)

* Prepare MarshallersGenerator to run in APT environment too

* Make errai-marshalling use completely interchangeable ErraiConfiguration implementations

* Fix ClassScanner parameters to use reflections while searching @Portable types

* Make MetaClassFinder available for DefinitionsFactoryImpl

* Add @MappingAlias annotation to ErraiConfiguration

* Make MarshallerAptGenerator work, but with errors

* Scan @ServerMarshallers with MetaClassFinder

* Fix tests and improve GWT environment MetaClassFinder

* Improve MarshallerAptGenerator. References not yet resolved in MarshallerFactoryImpl

* Make ErraiMarshalling.gwt.xml use APT generators and skip creation of abstract classes in generated marshallers

* MarshallerAptGenerator working with both GWT and APT generators

* MarshallerAptGenerator working and generating every Marshaller

* Fix logging in errai-demos

* Fix X marshaller not found (generics)

* Little refactors

* Remove static initialization of ErraiAppPropertiesConfiguration in MarshallingConfiguration

* Remove QualifyingMetaDataFactory property

* Remove unsafe call from errai-ioc decorators logic

* Add PageRequest in ErraiMarshallingModule's configuration

* Rollback parameter type to erased

* Revert "Remove unsafe call from errai-ioc decorators logic"

This reverts commit b496229be2f7ecaa50e9ea4c5951035772d10487.

* Fix issue with generic field/parameters. Add time logs to files generation in APT environment.

* Remove @Portable annotation added by mistake

* Remove unsafeIsAnnotationPresent from HasAnnotations

* Remove unsafe methods from HasAnnotations

* Remove AbstractHasAnnotations class

* Refactor configuration files

* Add tests to new properties in @ErraiApp

* Update comments

* PR final pass

* Remove even more unsafe calls from HasAnnotations implementation

* Removed annotation caches and unnecessary methods from subclasses of HasAnnotations

    • -13
    • +85
    ./meta/impl/apt/APTMethodTest.java
    • -0
    • +23
    ./meta/impl/apt/TestConcreteClass.java
    • -0
    • +2
    ./meta/impl/apt/TestGenericInterface.java
  1. … 156 more files in changeset.
Remove @Nonbinding filtering from MetaAnnotation implementations

    • -0
    • +379
    ./util/CDIAnnotationUtilsTest.java
  1. … 5 more files in changeset.
Rename classes and add clarifying comment

    • -4
    • +4
    ./meta/impl/apt/APTAnnotationTest.java
  1. … 14 more files in changeset.
Add tests to APTEnum

    • -0
    • +9
    ./meta/impl/apt/APTAnnotationTest.java
    • -0
    • +23
    ./meta/impl/apt/AnotherTestEnum.java
    • -0
    • +27
    ./meta/impl/apt/TestAnnotatedClass5.java
  1. … 5 more files in changeset.
Add tests for MetaParameter types and generic types

    • -0
    • +70
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +34
    ./test/model/ClassWithMethodsWithGenericParameters.java
Create APT generators for errai-ioc module

    • -0
    • +42
    ./meta/impl/apt/APTAnnotationEncoderTest.java
    • -0
    • +56
    ./meta/impl/apt/APTAnnotationTest.java
    • -0
    • +12
    ./meta/impl/apt/APTEnumTest.java
    • -1
    • +1
    ./meta/impl/apt/TestAnnotatedClass2.java
    • -0
    • +30
    ./meta/impl/apt/TestAnnotatedClass4.java
    • -0
    • +4
    ./meta/impl/apt/TestAnnotationWithArrayProperties.java
    • -2
    • +4
    ./meta/impl/apt/TestInnerAnnotation.java
  1. … 248 more files in changeset.
Rename some interfaces and create tests for ErraiModuleConfiguration

    • -0
    • +38
    ./meta/TestMetaClassFinder.java
  1. … 22 more files in changeset.
Merge HasMetaAnnotations into HasAnnotations

    • -6
    • +6
    ./test/meta/AbstractMetaClassTest.java
  1. … 8 more files in changeset.
Bring back APTMetaClassTest

    • -109
    • +113
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +86
    ./test/meta/apt/APTMetaClassTest.java
  1. … 4 more files in changeset.
Add missing header

Add Errai APT Generators mechanism

    • -0
    • +51
    ./apt/test/ErraiAptTest.java
    • -0
    • +104
    ./meta/impl/apt/APTAnnotationEncoderTest.java
    • -0
    • +85
    ./meta/impl/apt/APTAnnotationTest.java
    • -0
    • +38
    ./meta/impl/apt/APTMethodTest.java
    • -0
    • +24
    ./meta/impl/apt/TestAnnotatedClass1.java
    • -0
    • +24
    ./meta/impl/apt/TestAnnotatedClass2.java
    • -0
    • +24
    ./meta/impl/apt/TestAnnotatedClass3.java
    • -0
    • +25
    ./meta/impl/apt/TestAnnotation.java
    • -0
    • +27
    ./meta/impl/apt/TestAnnotationWithArrayProperties.java
    • -0
    • +27
    ./meta/impl/apt/TestConcreteClass.java
    • -0
    • +24
    ./meta/impl/apt/TestConcreteInterface.java
    • -0
    • +26
    ./meta/impl/apt/TestGenericInterface.java
    • -0
    • +24
    ./meta/impl/apt/TestUnusedAnnotation.java
    • -13
    • +13
    ./test/meta/AbstractMetaClassTest.java
  1. … 258 more files in changeset.
ERRAI-1044: Generic array type parameters cause error in GWT MetaClasses

    • -1
    • +22
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +27
    ./test/model/ClassWithArrayGenerics.java
    • -0
    • +25
    ./test/model/GenericArraySubclass.java
    • -0
    • +25
    ./test/model/GenericSuperClass.java
  1. … 3 more files in changeset.
Fix inconsistency in getConstructor methods of MetaClass between GWT and Reflection impls.

    • -94
    • +122
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +28
    ./test/model/HasManyConstructors.java
  1. … 10 more files in changeset.
Create APT MetaClass implementation + more MetaClass tests.

    • -6
    • +219
    ./test/meta/AbstractMetaClassTest.java
    • -0
    • +36
    ./test/model/ClassWithAnnotations.java
    • -0
    • +38
    ./test/model/MultipleValues.java
    • -0
    • +36
    ./test/model/Nested.java
    • -0
    • +36
    ./test/model/Plain.java
    • -0
    • +36
    ./test/model/SingleValue.java
  1. … 22 more files in changeset.
Update GWT to 2.8.0-rc1 (lots of details below).

Most of the items below were fixes for tests (which

are now production compiled by default) and dependency

issues (since gwt-user/gwt-dev now bring in transitive

dependencies instead of bundling them in fat jars).

* Upgrade jetty to version in ip-bom

* Fix errai-bus test issues.

* Remove GuardedBy and Nonnull annotations from errai-bus.

* Fix javadoc bug in errai-bus.

* Fix test failures caused by GWT type oracle behaviour change.

(This commit causes the type oracle to hide non-abstract methods

in interfaces:

https://github.com/gwtproject/gwt/commit/75382f1202bf3eaa399d60ebdba42bd7522da3bb)

* Fix AbstractErraiTest so it is usable in errai-ioc-bus-support production compiled tests.

* Fix data-binding tests (have to manually invoke event listeners because dispatchEvent does not work).

* Fixes for errai-cdi-server tests (description below).

* Upgrade Jetty version

* Add -devMode gwt.arg

* Add missing inherited modules

(This was to try and get the tests to run in prod mode,

but there appears to be a compiler bug that prevents this

-- interned value is used before being referenced)

* Use errai.devel.nocache property in Errai GWT generators.

* Fix jaxrs-client bug with Date params.

* Fix errai-ui tests (notes below).

** Fix event dispatching issue (same problem as with data-binding tests).

** Fix NPE when an empty input element fires a change event while bound

to a primitive property in a model.

* Fix errai-navigation native anchor test (same problem as data-binding tests).

* Fix Errai Security tests.

* Fix errai-jpa-client tests.

* Fix gwt-dev version in demos.

* Manage gson version in errai-bom to version required by gwt-dev.

  1. … 100 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -2
    • +2
    ./test/AnonymousClassStructureBuilderTest.java
  1. … 3042 more files in changeset.
Revert "Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header."

Changes from the reverted commit did not preserve original copyright dates.

This reverts commit d8e735dfe2f6ed25fe9e06b753ae2f6154d76b02.

    • -3
    • +3
    ./test/AnonymousClassStructureBuilderTest.java
  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -3
    • +3
    ./test/AnonymousClassStructureBuilderTest.java
  1. … 3150 more files in changeset.
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.
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.