Clone Tools
  • last updated a few minutes 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

  1. … 158 more files in changeset.
ERRAI-1063: Add support for Optional fields in portable classes

  1. … 2 more files in changeset.
ERRAI-1063: Add support for Optional fields in portable classes

  1. … 2 more files in changeset.
Return true for Marshalling.canHandle for all interfaces.

    • -0
    • +25
    ./res/SomeInterface.java
  1. … 1 more file in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -2
    • +2
    ./res/EntityWithAbstractFieldType.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
    ./res/EntityWithAbstractFieldType.java
  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -3
    • +3
    ./res/EntityWithAbstractFieldType.java
  1. … 3150 more files in changeset.
Fixed ERRAI-811: Marshalling a Map containg null keys creates invalid json

  1. … 3 more files in changeset.
Fixed ERRAI-811: Marshalling a Map containg null keys creates invalid json

  1. … 3 more files in changeset.
Fixed ERRAI-794: @MapsTo parameter order no longer affects back reference resolution

  1. … 13 more files in changeset.
Fixed ERRAI-794: @MapsTo parameter order no longer affects back reference resolution

  1. … 12 more files in changeset.
Made exception marshalling work with dynamic marshalling (was only working for static marshalling)

Clarified MappingContext.getMarshaller() API contract, added test, and fixed the dynamic impl.

  1. … 4 more files in changeset.
Made exception marshalling work with dynamic marshalling (was only working for static marshalling)

Clarified MappingContext.getMarshaller() API contract, added test, and fixed the dynamic impl.

  1. … 4 more files in changeset.
Moved PageReguest and MapsTo to common to avoid server side dep. on navigation

  1. … 55 more files in changeset.
Fixed ERRAI-506: Support for NaN, positive and negative infinity for Double and Float values

  1. … 7 more files in changeset.
Resolved ERRAI-460: Marshalling includes invalid generic declaration in ServerMarshallingFactoryImpl

    • -0
    • +73
    ./res/EntityWithInheritedTypeVariable.java
    • -0
    • +12
    ./res/InterfaceWithTypeVariable.java
  1. … 8 more files in changeset.
A bunch of new unit tests for MetaClass, MetaField, Meta* implementations.

This version of the fixes related to the new tests breaks the errai-bus integration tests.

Will investigate soon.

    • -0
    • +41
    ./MarshallingGenUtilTest.java
  1. … 32 more files in changeset.
Removed code to set errai.dev.force_reflections property that was never read

  1. … 2 more files in changeset.
merge in changes

  1. … 23 more files in changeset.
Fixed ERRAI-443: demarshalling of JSON array (in 'Jackson mode') fails when expected type is unkown

  1. … 4 more files in changeset.
Fix BigInteger and BigDecimal as Map key

  1. … 1 more file in changeset.
Fixed ERRAI-440: Portable entities with arrays of interface types fail marshaller generation at compile time

    • -0
    • +63
    ./res/EntityWithInterfaceArrayInPublicField.java
  1. … 5 more files in changeset.
kind of working... but not really!

  1. … 23 more files in changeset.
Fixed ERRAI-429: Demarshalling fails for immutable types with null enum fields

    • -0
    • +46
    ./res/ImmutableEnumContainer.java
  1. … 5 more files in changeset.
Fixed ERRAI-370: Marshalling of enum types with abstract methods

    • -12
    • +17
    ./res/EnumContainerContainer.java
    • -0
    • +38
    ./res/EnumWithAbstractMethod.java
  1. … 3 more files in changeset.
fixes to improve support for class model refreshing for portable classes

  1. … 5 more files in changeset.
Fixed ERRAI-403: NPE when marshalling maps with abstract K or V

  1. … 9 more files in changeset.
- add initial support for trimming bootstrappers and marshalling factory using code reachability analysis.

  1. … 32 more files in changeset.
Fixed ERRAI-330: generation failures for inherited fields

    • -0
    • +29
    ./res/EntityWithInheritedPublicFields.java
  1. … 3 more files in changeset.
Fixed ERRAI-350: Marshalling generator fails when portable type contains a field of type Map<String, String[]>

    • -0
    • +81
    ./res/EntityWithMapUsingArrayValues.java
  1. … 14 more files in changeset.