-
Notifications
You must be signed in to change notification settings - Fork 134
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
Sort filename (if given) by name for consistent output #1922
Sort filename (if given) by name for consistent output #1922
Conversation
Yes the test seem to expect a certain order but I can't judge if/how test to be adjusted. I applied a workaround to Tycho to simulate what this patch does and all tests (including aggregator build) succeed and order was always random so I'm quite confident it should be a valid one... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is "per output destination" feature, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=146554
Main.filenames
& Main.destinationPaths
should be in-sync, so change must be done not here but in configure()
I would keep that in Tycho, as the patch here is incomplete and needs to be fixed. |
d69ce19
to
d411905
Compare
You are right, I also noticed that there are even |
This now seems to pass the testsuite and already shows some classes that are different in JDT, I have createad a PR here: so get a better overview what would happen in the large (requires snapshot Tycho).
I leave the decisions to you (or JDT team) if this change is useful so it can benefit everyone not only latest Tycho users... |
Currently the generation of lamdas can change depending on when the source file is processed. This sorts the array of files (if given) to always have a predictable order independent of order given on the commandline / arguments. Relates to eclipse-jdt#1921
d411905
to
cf4727f
Compare
What I've meant is: as long as patch here is incomplete and breaks ecj functionality, Tycho workaround has to be used. |
If I where to fix it on the compiler level it seems worth to sort the CUs by name in the method |
This is done on the Compiler /CU level |
Looking at the build results this has not produced any baseline problem eve though it would be expected it seems the change has had not the same effect as desired... |
This change is needed to see new compiler used for SDK: eclipse-platform/eclipse.platform.releng.aggregator#1760 |
Currently the generation of lamdas can change depending on when the source file is processed.
What it does
This sorts the array of files (if given) to always have a predictable order independent of order given on the commandline / arguments.
Relates to #1921
How to test
Use this project:
See #1921 for detailed compiler arguments, logs and example class files showing the difference.
Author checklist