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

    • -10
    • +0
    ./org/jboss/errai/security/SecurityTest.gwt.xml
  1. … 666 more files in changeset.
Merge branch 'master' into errai-codegen-apt

  1. … 140 more files in changeset.
[ERRAI-1084] upgrade mockito, gwtmockito and powermock to versions compatible with JDK9

  1. … 18 more files in changeset.
Support custom security exception handling (#311)

Move security redirection logic to security handler that can be replaced via IOC alternatives.

  1. … 20 more files in changeset.
Upgrade GWT to 2.8.2

GWT 2.8.2 is the first release that should support bulding with Java 9

(it does not support Java 9 features; just the legacy classpath mode)

    • -0
    • +2
    ./org/jboss/errai/security/SecurityTest.gwt.xml
  1. … 16 more files in changeset.
Remove random string from ExportFile names

    • -0
    • +26
    ./org/jboss/errai/security/ErraiSecurityClientTestModule.java
  1. … 26 more files in changeset.
Remove deprecated user cookie + fix todo list demo.

  1. … 12 more files in changeset.
ERRAI-982: navigateBackOrToPage should keep page state

  1. … 4 more files in changeset.
ERRAI-981: Convert @UncaughtException to work with all uncaught exceptions (not just those in the client message bus)

  1. … 20 more files in changeset.
[ERRAI-960] upgrade IP BOM to 7.0.0.CR4 + general POM clean-up (#180)

* removing depMgmt for artifacts which are already

coming from IP BOM

* better alignment with IP BOM

* using plugin version from IP BOM/JBoss Parent

* fixes related to JEE Spec upgrades

* Use version 2.8.0-beta1 of gwt-maven-plugin

    • -0
    • +39
    ./org/jboss/errai/security/server/TestApplication.java
  1. … 50 more files in changeset.
Don't process error twice if sent with CLIENT_ERROR_SUBJECT as subject and errorTo fields.

  1. … 1 more file in changeset.
ERRAI-884: ClientMessageBusImpl catches exceptions in MessageCallbacks, preventing @UncaughtException Handing

Additionally this commit also changes client-side error handling as follows.

* noErrorHandling suppresses sending errors to CLIENT_ERROR_SUBJECT.

* Handle case where GWT.uncaughtExceptionHandler is null.

* Invoke error callback when error occurs in ClientMessageBus.send

instead of throwing exception.

* Test new behaviour in ErrorHandlingTest.

* Send RPC errors to CLIENT_ERROR_SUBJECT a supplied error handler

returns true.

  1. … 16 more files in changeset.
Add regression test for ERRAI-913.

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

  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.

  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

  1. … 3150 more files in changeset.
Don't assume void return type in caller when no callback passed in.

  1. … 3 more files in changeset.
Fix several minor issues (descriptions below).

* Add error messages for public fields in normal scoped beans (except @EntryPoint).

* Remove "Concrete" and "Abstract" from toString of Injectables.

* Add tests that lazily-loaded @Page and @Templated beans are in time.

* Don't use universal qualifier for Providers (only for ContextualTypeProvider).

* Add @IOCProducer annotation (for projects that don't depend on CDI @Produces).

* Make provider of ErraiEntityManager to producer so that it also matches EntityManager.

  1. … 16 more files in changeset.
Fix for ERRAI-876.

Fire LoggedOutEvent when the user is set to User.ANONYMOUS

    • -0
    • +3
    ./org/jboss/errai/security/test/event/EventTest.gwt.xml
  1. … 1 more file in changeset.
ERRAI-590, ERRAI-850, ERRAI-851: Implement new IOC container (more description below).

The new container uses code genererated in multiple files instead

of a single monolithic file. At compile time an implementation of

org.jboss.errai.ioc.client.container.Factory is generated for each bean.

The factory is responsible for requesting dependencies from other

factories to wire the bean, running code generated by decorators,

and cleaning up when the bean is destroyed.

The GWT.create calls for the factories are generated in the

BootstrapperImpl. The BootstrapperImpl now only registers

factories with their respective contexts.

This container has the following differences from behaviour

in the 3.x version of errai-ioc:

* Normal scoped beans must be proxiable.

* The @New qualifier is not supported.

* Normal scoped beans (except @Entrypoint or with @Startup) are lazily instatiated.

* @Alternative beans must be explicitly enabled (even if no other beans match).

* Resolution of types behaves like CDI. Some cases that worked in 3.x may now be ambiguous.

** Injecting a common supertype of multiple concrete classes is ambiguous.

* Different API for programmtically adding beans to bean manager.

  1. … 378 more files in changeset.
Initializing marshalling from UserCookieStorageHandler now

This should help apps that @Inject User into singletons and application-scoped beans.

  1. … 1 more file in changeset.
Initializing marshalling from UserCookieStorageHandler now

This should help apps that @Inject User into singletons and application-scoped beans.

  1. … 1 more file in changeset.
Made errai security user injectable

  1. … 1 more file in changeset.
Made errai security user injectable

  1. … 1 more file in changeset.
Switch all GWT tests to maven-failsafe-plugin.

    • -5
    • +10
    ./org/jboss/errai/mocksafe/test/UserCacheTest.java
  1. … 37 more files in changeset.
Add missing license headers to java source files in errai-security.

  1. … 41 more files in changeset.
Fix compilation problem in errai security tests

In server-side security interceptor, only use roles from annotations of concrete type and interface that the invoked method is from.

Conflicts:

errai-security/errai-security-client/src/test/java/org/jboss/errai/security/client/local/BusSecurityInterceptorTest.java

errai-security/errai-security-server/src/main/java/org/jboss/errai/security/server/ServerSecurityRoleInterceptor.java

    • -0
    • +18
    ./org/jboss/errai/security/server/MethodSharedImpl.java
    • -0
    • +18
    ./org/jboss/errai/security/server/TypeSharedImpl.java
  1. … 2 more files in changeset.
In server-side security interceptor, only use roles from annotations of concrete type and interface that the invoked method is from.

    • -0
    • +18
    ./org/jboss/errai/security/server/MethodSharedImpl.java
    • -0
    • +18
    ./org/jboss/errai/security/server/TypeSharedImpl.java
  1. … 1 more file in changeset.