-
Notifications
You must be signed in to change notification settings - Fork 136
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
Remove nolonger supported converterJclMin #3332
Remove nolonger supported converterJclMin #3332
Conversation
4f3ce60
to
006678d
Compare
@iloveeclipse @stephan-herrmann Do you see some fundamental reason to keep these? If not, I'll work on fixing the tests. |
I don't, as long as tests are green, but only because I have no idea how it was designed. It just happened to me to stumble over the various jclMinXYZ jars which someone somehow built and the parallel exisring jclConverterXYZ jars. |
c2e7771
to
9f68b58
Compare
Is removing old jars a prerequisite or otherwise related to fixing the test?
Nothing fundamental, I just suggest to look for a path that doesn't force changes in too many tests.
I cannot comment on the original motivation, but I can see that
building is no longer a mystery since #2727 is it? |
It is actually. As can be seen at
And trying to use this build.xml file doesn't complete successfully with:
which is the next thing I plan to look at after this one and continuation to it no longer commenting 1.8 rebuild. |
@akurtakov I very much appreciate your efforts to fix ASTConververt15JLS8Test! I just wonder how we can avoid this to expand into a large moving target effort with limited benefit. Regarding jclMin: the build has successfully run just recently (on my machine :) ). Have you seen https://www.eclipse.org/lists/jdt-dev/msg02453.html - not seeing any response there nor in #2727 I assumed everybody is happy with the status. If that is not the case please wait until next week when I will be able to help, to avoid unnecessary back and forth. When I worked on #2727 actually my goal was to facilitate working on new / recent Java versions. Once #2758 is resolved I hope we will NEVER have to build any of the old version JCLs again. Those are intended to provide stability. No further changes intended. So perhaps building all those jars always is actually a inappropriate approach. Possible steps:
And, yes, building classes in java.lang et al is always a tricky issue, as the compiler assumes that these classes already exist before compilation starts, and ecj and javac seem to make different such assumptions. That's why an ant build using javac can indeed fail, despite ecj having successfully compiled everything. |
If it makes maintenance clearer for someone not involved daily (like me) it's worth it and I consider it time well spend.
I have to admit I haven't paid much attention to these changes and having others deal with it.
Changes will have to happen when jdt min supported version moves up as tests on old versions will need updates.
I fully agree here, rebuilding when there is need should be possible though (like in this case). |
Once the current set of changes is done, all 1.8 jars should have reached their final state, as there will no longer be any tests at lower levels that will have to migrate to 1.8 😄 Additionally, I might do a general scan if any JCL X lacks feature present in JCL Y for Y<X, to avoid any such need to touch tests or JCL jars when any version goes EOL. |
That would be very nice and would definetely minimize the changes needed whenever jdt.core moves to e.g. Java 11 as a min version. |
Versions older than 1.8 are not supported and thus shouldn't be needed anymore.
9f68b58
to
25daea0
Compare
Is there a reason not to merge this one in? |
no :) |
* Remove nolonger support converterJclMin (#3332) Versions older than 1.8 are not supported and thus shouldn't be needed anymore. * Fix and enable Java50Tests#testMissingRequiredBinaries * Version bump(s) for 4.35 stream * Test failures in I-Builds due to less diagnostics being emitted (#3357) * Fixes #3356 * Textual problem indicator goes wild with lamda (#3358) * jclMin23: ignore missing serializable problem "The serializable class Long does not declare a static final serialVersionUID field of type" * Fix FieldLocator and MethodLocator to support local/anonymous classes (#3314) - Fix FieldLocator.reportDeclaration() and MethodLocator.reportDeclaration() to find the anonymous or local type for the declaration rather than to return - add new tests to JavaSearchBugsTests - fixes #3308 * Codegen Primitives in record comonent patterns to be enabled with null check before calling accessor(#3361) Before generating an invoke of accessor of a record component, do a null check if primitive conversions are involved. * java.lang.StackOverflowError during "Requesting Java AST from selection" (#3373) + resilience: avoid accepting a sourceType being completed already + better hiding of modules seen via the classpath Fixes #3273 * Add NoSuchFieldError to converterJclMin18 (#3368) Add NoSuchFieldError to converterJclMin18 + build the jar + avoid new warning Enable couple of tests fixed by this. --------- Co-authored-by: Stephan Herrmann <stephan.herrmann@berlin.de> * Incorrect control flow analysis causes statement subsequent to a switch statement to be flagged unreachable under some circumstances(#3377) * Fixes #3376 * Remove unused api problem filter * Update tycho build to 4.0.10 * Completion for unimported types doesn't work. - use MissingTypesGuesser to select all missing types and offer their completion - Fixes #1502 * [Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch (#3380) * Fixes #3379 --------- Co-authored-by: Александър Куртаков <akurtakov@gmail.com> Co-authored-by: Eclipse JDT Bot <jdt-bot@eclipse.org> Co-authored-by: Srikanth Sankaran <131454720+srikanth-sankaran@users.noreply.github.com> Co-authored-by: Jörg Kubitz <jkubitz-eclipse@gmx.de> Co-authored-by: Jeff Johnston <jjohnstn@redhat.com> Co-authored-by: Manoj N Palat <manoj.palat@in.ibm.com> Co-authored-by: Stephan Herrmann <stephan.herrmann@berlin.de> Co-authored-by: Snjeza <snjezana.peco@redhat.com>
Versions older than 1.8 are not supported and thus shouldn't be needed nor referenced anymore.