-
Notifications
You must be signed in to change notification settings - Fork 321
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
JavaVersion: find a better way to keep up with Java SE release cadence #2578
Comments
We all gonna die ... |
places to look at
maybe others |
having an enum is bad as well. we would need to ship a new xtext version every 6 months |
Signed-off-by: Christian Dietrich <[email protected]>
…s/517 Signed-off-by: Christian Dietrich <[email protected]>
Signed-off-by: Christian Dietrich <[email protected]>
…s/517 Signed-off-by: Christian Dietrich <[email protected]>
Signed-off-by: Christian Dietrich <[email protected]>
…s/517 Signed-off-by: Christian Dietrich <[email protected]>
[#517] Move More Code to JavaVersion
will do it the manual way at least for 9+10 |
@szarnekow the main different for the places is the error treatment
vs
do you remember why it is done this way. and if there is no reason what is the preferred way to unify the behaviours |
Should be fine to do it without reflection. |
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
[eclipse/xtext-core#517] Moved Class File Constant Calculation to JavaVersion Enum
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
…aVersion Enum Signed-off-by: Christian Dietrich <[email protected]>
[eclipse/xtext-core#517] Moved Class File Constant Calculation to JavaVersion Enum
[eclipse/xtext-core#517] Moved Class File Constant Calculation to JavaVersion Enum
unified the code a bit more => fewer places that need adaption |
Hi Christian. I checked the code you referenced. For me it seems you have enhanced the solution as far as possible. Doing it better then with the enum seems not possible to me. Even some configuration file with constants for new java versions would need some update. On the other hand the values can not be reliable be computed as the format has been changed in the past and probably will change in the future as well. Is here anything left that we can do to improve the situation that I do not see? |
this ticket is to think about a non enum based solution or a enum based solution that works with feature patches |
we will support lts versions only. next likely 21 |
Adapting constants and switches at 50 places is bad. So we need a better way for that
see changes for eclipse/xtext-core#500
same for the consumption of asm
The text was updated successfully, but these errors were encountered: