Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ERRAI-1075: Changes necessary to run uberfire-showcase (#321)

* Create mechanism to include/exclude packages/types from an @ErraiModule

* Allow exported elements to have a different annotation than that which exported it

* Fixes in module exporting rules

* Temporary fix in attempt to run Uberfire Showcase

* First time uberfire-showcase worked

* Improved code a little bit

* Improved code a bit

* Minor changes

* Fix public elements verification for primitive types

* Removed errai-generators-apt. Code generation now runs in the last round of exporters.

* Refactors and fixes

* Fix build

* Refactors and deleted handwritten export files for exporting strategies

* Create toggle for generating code with apt generators

* Fix tests and improve code a bit

* Add log message

* Fix erraiModules and erraiApps discovery

* ExportFile with inner classes wip

* Finish shrinking export files to one per exporter

* Fix server marshalling apt generation

* Allow server code to use generated ServerMarshallerFactoryImpl to check if a type is serializable

* Fix exporting primitive types

* Revert property configuration in errai-security-demo

* Create ErraiApp targets and configure errai-bus to run tests using SERVER target too.

* Configured errai server apps in tests

* Fix ResourceFilesFinder issue for ClassLoaderResources

* Fix GWTMetaClassTest failing test

* Fix errai-cdi-server test exclusions

* Remove Guava dependency from errai-common-apt

* Add KNOWN_PROBLEMS.md file

* Fix typo on test class name in the KWNON_PROBLEMS.md file

  1. … 178 more files in changeset.
ERRAI-1075: Integration tests using APT generators (#316)

* Allow multiple @ErraiApps in same jar

* Generating code for multiple @ErraiApp annotations. With problems.

* Fixed many errors in errai-ui tests APT codegen

* Partially fix errai-bus tests code generation

* Fix ErraiAptExportedTypes tests

* Fix multidimensional arrays marshaller factory generation

* Configured APT generators for errai-ioc. There are error still.

* Configure APT generators for errai-ioc-bus-support. There are still errors.

* Configure APT generators for errai-cdi-server. Fix export file exported public types

* Fix exporting only public elements in Export Files for good

* Fix exporting parameters of methods/constructors annotated with @Inject

* Fix exporting primitive values

* Configure APT generators for errai-data-binding.

* Configure APT generators for errai-jaxrs-client

* Configure APT generators for errai-navigation and errai-validation. Still broken.

* Fix random error caused by local exportable types not being erased

* Make generators be exported as part of their ErraiModule

* Remove test

* Removed unused parameter

* Reorganize tests in errai-security and configure APT generators

* Fix stylesheet files discovery

* Fix stylesheet load for reals

* Fix class name of generated files for local @ErraiApps

* Revert some undesired changes

* Prepared for running tests with apt-generated code

* Create GWT Module file generator to override rebinding rules for APT-generated code

* GWT modules being adapted to apt-generated classes in demos as well

* Place gwtModuleName in @ErraiApp

* Moved GWT module generation to ErraiAppAptGenerator

* Added additionalClassElement configuration to errai-ui

* Improve switch between generating code using APT or GWT generators

* General improvements

* Add testResources configuration to errai-ui

* Configure remaining test @ErraiApps in errai-cdi-server

* More tests configuration

* Remove comments on ErraiGenerators

* Fix errai-security-client IT tests code generation error

* General fixes

* Fixed some tests and add MetaMethodTest for all MetaMethod impls

* Add asyncBeanManager property to async tests @ErraiApp

* Add scope to un-annotated implementations of interface

* Make APTClass be the first option in MetaClassFactory

* Fix error in MetaClassFactory.get

* Resolved primitive issues in MetaClassFactory.loadClass

* Resolved primitive issues in MetaClassFactory.loadClass

* Make sure APTClassUtil is not initialized before codegen tests

* Fix broken test

* Make errai-codegen tests use APTClass before using JavaReflectionClass

* PR general pass

* Rollbcak unneeded change

* Create errai-ioc-extension-tests

* Add log4j.properties to errai-navigation tests

* CDI IOCExtensions now stay in another module and are pre-compiled

* Created mechanism to define exporting strategies depending on the annotation

* Replaced ExportedAnnotations for ExportingStrategies configuration class

* Fixed tests

* Small refactors

* Minor fixes/refactorings

* Fixed errai-navigation tests. Attemp to fix errai-validation but not complete yet

* Fix errai-jaxrs-client tests by configuring mappingAliases correctly

* Fixed one of the broken tests in errai-ioc

* Fix errai-ioc test by configuring @ErraiModule properly

* Improved exporting strategies for errai-ioc and errai-jaxrs-client

* Created jsInteropSupportEnabled configuration property

* Create dynamic validation property in @ErraiApp

* Fix almost every test in errai-data-binding

* Fix StyleBindingDecorator

* Fix errai-ioc test by dealing correctly with generic arrays as parameters in constructors/methods

* Fixed some of the server/client code generation problems

* Server code generation and CDI test fixes

* Moved Funject out of errai-cdi-server, so that it is pre-compiled

* Fix RpcIntegrationTest

* Fix SpecializationIntegrationTest

* Attempt to fix Stereotypes test

* Reset definitions factory before generating code for an @ErraiApp

* Fix JsTypeInjectionTest by changing from List to Set in WindowInjectionContextImpl providers

* General refactorings

* Fix DisconnectedEventIntegrationTest

* Fix BeanManagerIntegrationTest.testNormalScopeOverridesDependent

* Fix BeanManagerIntegrationTest.testBeanManagerLookupInheritedScopeBean by returning inherited annotations on APTClass as well

* Created tests for inherited annotations in APTClass

* Ignore tests of unsupported features in APT environment

* Fix MetaClassFinder extending/restriction methods

* Make ValidatorFactoryGenerator async and ignore dynamic validation tests for now.

* Fix configuration to ignore tests of unsupported features in APT environment

* Remove local flag from '@ErraiApp'. An app is local when the modules property is not empty

* PR final pass

* PR fixes

    • -0
    • +13
    ./config/ErraiSeparateAppConfiguration.java
    • -0
    • +12
    ./config/propertiesfile/ErraiAppPropertiesErraiAppConfiguration.java
  1. … 676 more files in changeset.
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

    • -58
    • +0
    ./config/ErraiAppPropertiesErraiAppConfiguration.java
    • -259
    • +0
    ./config/ErraiAppPropertiesErraiModulesConfiguration.java
    • -4
    • +4
    ./config/ErraiModulesConfiguration.java
    • -0
    • +11
    ./config/ErraiSeparateAppConfiguration.java
    • -3
    • +5
    ./config/ErraiSeparateModuleConfiguration.java
    • -0
    • +200
    ./config/marshalling/MarshallingConfiguration.java
    • -0
    • +46
    ./config/propertiesfile/EnvironmentConfig.java
    • -0
    • +135
    ./config/propertiesfile/ErraiAppPropertiesConfigurationUtil.java
    • -0
    • +152
    ./config/propertiesfile/ErraiAppPropertiesErraiAppConfiguration.java
    • -0
    • +395
    ./config/propertiesfile/ErraiAppPropertiesErraiModulesConfiguration.java
  1. … 144 more files in changeset.
Create nonBindableTypes in ErraiConfiguration interface

    • -19
    • +71
    ./config/ErraiAppPropertiesErraiModulesConfiguration.java
    • -0
    • +2
    ./config/ErraiModulesConfiguration.java
    • -0
    • +3
    ./config/ErraiSeparateModuleConfiguration.java
  1. … 23 more files in changeset.
Merge branch 'master' into errai-codegen-apt

  1. … 27 more files in changeset.
ERRAI-1072: Add parameter errai.ui.nonbindableTypes to ErraiApp.properties (#294)

* ERRAI-1072: Add parameter errai.ui.nonbindableTypes to ErraiApp.properties

* ERRAI-1072: Improvements

* ERRAI-1072: minor

* ERRAI-1072: minor

  1. … 6 more files in changeset.
Create APT generators for errai-ioc module

    • -0
    • +41
    ./config/ErraiAppPropertiesConfiguration.java
    • -0
    • +58
    ./config/ErraiAppPropertiesErraiAppConfiguration.java
    • -0
    • +207
    ./config/ErraiAppPropertiesErraiModulesConfiguration.java
    • -6
    • +3
    ./config/ErraiModulesConfiguration.java
    • -0
    • +40
    ./config/ErraiSeparateAppConfiguration.java
    • -0
    • +48
    ./config/ErraiSeparateModuleConfiguration.java
    • -7
    • +0
    ./config/rebind/EnvironmentConfig.java
  1. … 246 more files in changeset.
Skip execution of AsyncGenerators if they've already ran via APT generators

    • -1
    • +5
    ./config/rebind/AsyncCodeGenerator.java
  1. … 3 more files in changeset.
Add Errai APT Generators mechanism

  1. … 268 more files in changeset.
Fix userCache proxy & avoid adding interfaces/abstracts as serializable types. (#274)

* Fix an issue with userCache proxy & avoid adding interfaces/abstracts as a serializable type.

This catch is for wildcard serialization definitions (*).

* Mark BasicUserCacheImpl as @Singleton & log wildcard filters.

* Changes as per requested.

  1. … 2 more files in changeset.
Fix userCache proxy & avoid adding interfaces/abstracts as serializable types. (#274)

* Fix an issue with userCache proxy & avoid adding interfaces/abstracts as a serializable type.

This catch is for wildcard serialization definitions (*).

* Mark BasicUserCacheImpl as @Singleton & log wildcard filters.

* Changes as per requested.

  1. … 2 more files in changeset.
Support ErraiApp.properties in META-INF dir

  1. … 123 more files in changeset.
Support ErraiApp.properties in META-INF dir

  1. … 123 more files in changeset.
weird error, that basically i couldn't build anything... now all working as expected. I know this code is old and supposed stable... but just got the `could not find class defined in ErraiApp.properties for serialization:` without any type info... the `singleValue` was empty

weird error, that basically i couldn't build anything... now all working as expected. I know this code is old and supposed stable... but just got the `could not find class defined in ErraiApp.properties for serialization:` without any type info... the `singleValue` was empty

ERRAI-992: Allow package wildcard usage for filterting marshalling classes

  1. … 7 more files in changeset.
ERRAI-969: Remove WARN message "The property errai.marshalling.serializableTypes has been set multiple times"

    • -101
    • +132
    ./config/rebind/EnvUtil.java
  1. … 1 more file 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.
Write generated source to correct package folders in .errai dir.

  1. … 6 more files in changeset.
Allow IOCExtensionConfigurators to register callbacks for processed types.

    • -4
    • +0
    ./config/rebind/MetaClassBridgeUtil.java
  1. … 6 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -2
    • +2
    ./config/rebind/AsyncCodeGenerator.java
    • -2
    • +2
    ./config/rebind/AsyncGenerationJob.java
    • -0
    • +16
    ./config/rebind/CommonConfigAttribs.java
    • -0
    • +16
    ./config/rebind/EnvironmentConfig.java
    • -2
    • +2
    ./config/rebind/EnvironmentConfigExtension.java
    • -2
    • +2
    ./config/rebind/ExposedTypesProvider.java
    • -2
    • +2
    ./config/rebind/MetaClassBridgeUtil.java
    • -6
    • +6
    ./config/rebind/WidgetSubtypeCache.java
  1. … 3043 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
    ./config/rebind/AsyncCodeGenerator.java
    • -3
    • +3
    ./config/rebind/AsyncGenerationJob.java
    • -16
    • +0
    ./config/rebind/CommonConfigAttribs.java
    • -16
    • +0
    ./config/rebind/EnvironmentConfig.java
    • -3
    • +3
    ./config/rebind/EnvironmentConfigExtension.java
    • -3
    • +3
    ./config/rebind/ExposedTypesProvider.java
    • -3
    • +3
    ./config/rebind/MetaClassBridgeUtil.java
    • -5
    • +5
    ./config/rebind/WidgetSubtypeCache.java
  1. … 3069 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -3
    • +3
    ./config/rebind/AsyncCodeGenerator.java
    • -3
    • +3
    ./config/rebind/AsyncGenerationJob.java
    • -0
    • +16
    ./config/rebind/CommonConfigAttribs.java
    • -0
    • +16
    ./config/rebind/EnvironmentConfig.java
    • -3
    • +3
    ./config/rebind/EnvironmentConfigExtension.java
    • -3
    • +3
    ./config/rebind/ExposedTypesProvider.java
    • -3
    • +3
    ./config/rebind/MetaClassBridgeUtil.java
    • -5
    • +5
    ./config/rebind/WidgetSubtypeCache.java
  1. … 3151 more files in changeset.
Fix async generator caching corner-case and add more logging (description below).

Call isRelevant for updated class so that classes can become

relevant to a generator after creation. Previously if

@Bindable was added to a type that already existed, the

BindableProxyLoaderGenerator would not run until some

other bindable type was changed.

    • -10
    • +22
    ./config/rebind/AbstractAsyncGenerator.java
  1. … 5 more files in changeset.
Fix async generator caching corner-case and add more logging (description below).

Call isRelevant for updated class so that classes can become

relevant to a generator after creation. Previously if

@Bindable was added to a type that already existed, the

BindableProxyLoaderGenerator would not run until some

other bindable type was changed.

    • -13
    • +25
    ./config/rebind/AbstractAsyncGenerator.java
  1. … 5 more files in changeset.
ERRAI-846: More cleanup for previous commit

Also fixes build error (missing import)

  1. … 4 more files in changeset.
Remove old/unused reachability analysis logic (ERRAI-846)

    • -133
    • +0
    ./config/rebind/ReachableTypes.java
  1. … 2 more files in changeset.
Remove async test modules.

Async tests for errai-cdi, errai-data-binding, and errai-ioc,

have been moved to those respective modules and the async test

modules have been deleted.

  1. … 368 more files in changeset.
Enhance WidgetIOCExtension and related fixes (description below).

Cache concrete subtypes of Widget in MetaClassBridgeUtil

to add provider extensions in WidgetIOCExtension.

Remove subtype matching feature and fixup exact type matching

feature.

    • -0
    • +4
    ./config/rebind/MetaClassBridgeUtil.java
    • -0
    • +45
    ./config/rebind/WidgetSubtypeCache.java
  1. … 10 more files in changeset.
Performance improvments and IOCExtensionConfigurator API change (details below).

* Don't pass in IOCProcessor to IOCExtentionsConfigurators. Allows caching

of scanned extensions, decorators, and tasks.

* Don't load class from class loader in JavaReflectionClass.

* Reduce usage of MetaClass.asClass for class literals in generated code.

* Overload some methods in EnvUtil to take MetaClasses (to avoid calling asClass).

* Never clear non-reloadable types from MetaClassCache.

    • -18
    • +20
    ./config/rebind/AbstractAsyncGenerator.java
    • -4
    • +6
    ./config/rebind/MetaClassBridgeUtil.java
  1. … 25 more files in changeset.