-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow 24 alpha does not work on payara-micro due to ASM incompatibility #15625
Comments
Payara issue: payara/Payara#6127 |
How about changing the enum to something like this to remove the need of the kinda fancy stuff ;) public enum SortDirection {
/**
* Ascending (e.g. A-Z, 1..9) sort order
*/
ASCENDING(Constants.ASCENDING_OPPOSITE),
/**
* Descending (e.g. Z-A, 9..1) sort order
*/
DESCENDING(Constants.DESCENDING_OPPOSITE);
private final SortDirection opposite;
SortDirection(SortDirection opposite) {
this.opposite = opposite;
}
/**
* Get the sort direction that is the direct opposite to this one.
*
* @return a sort direction value
*/
public SortDirection getOpposite() {
return opposite;
}
private static class Constants {
public static final SortDirection ASCENDING_OPPOSITE = DESCENDING;
public static final SortDirection DESCENDING_OPPOSITE = ASCENDING;
}
} |
Same issue for |
Also
|
Is there anything for us to do here or should we close this issue and wait for Payara to fix their deps? |
I suggest first to try change the Flow codes for SortDirection, ComponentTracker$Location and Grid$SelectionMode and see if there Payara would start then. Example to reproduce https://github.com/vaadin/skeleton-starter-flow-cdi/tree/v24-payara : |
Tested the above starter with patched Flow https://github.com/vaadin/flow/tree/flow-payara and Flow Grid https://github.com/vaadin/flow-components/tree/grid-payara
No errors in the browser console or network tab. |
The problem seems to be that |
The same happens with wildfly 27 (alpha), so the problem is with Jakarta EE 10 and CDI 4, that changed the default bean discovery mode to |
Solution for #15625, until payara/Payara#6127 is fixed.
* fix: Make Flow compatible with ASM framework Solution for #15625, until payara/Payara#6127 is fixed. * Simplifications * Change getter names and add final * fix formatting
Just tested against latest Flow and grid modules and the ASM issues seems to be resolved. |
Description of the bug
From StackOverflow:
Expected behavior
Should work
Minimal reproducible example
we should add payara-micro example to one of skeleton starter modules
Versions
The text was updated successfully, but these errors were encountered: