[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-dev] "clean up" again
|
I agree with Alex and the position of the PMC. To attract new
contributors and potential committers, we encourage cleanup patches.
This strategy seems to work in JDT UI, lots of the bugs fixed in 4.16
were done by "new" contributors / committers.
See https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=RESOLVED&bug_status=VERIFIED&classification=Eclipse%20Project&component=UI&email1=Lars.Vogel%40vogella.com&emailtype1=substring&known_name=Eclipse%20Current%20Milestone&list_id=19563803&product=JDT&query_based_on=Eclipse%20Current%20Milestone&query_format=advanced&resolution=FIXED&target_milestone=4.16&target_milestone=4.16%20M1&target_milestone=4.16%20M3&target_milestone=4.16%20RC1&target_milestone=4.16%20RC2
As an end user of JDT I benefit from this rush of new functionality
and as a PMC member I'm very happy to see so many improvements in JDT
from existing and new committers and contributors.
Best regards, Lars
On Wed, May 27, 2020 at 1:10 PM <stephan.herrmann@xxxxxxxxx> wrote:
>
> In my post I mainly wanted to raise awareness that JDT code (even if x-internal) is potentially consumed outside JDT, and that even seemingly trivial changes can (and do) cause havoc downstream.
>
> Now that the discussion has been broadened to the general issue of clean ups, I would like to list three kinds of clean-ups that I do consider useful:
>
> 1. Refactorings that help fixing a bug. This could be (a) a refactoring as part of the process of understanding some old code section, or (b) a refactoring that prepares for the desired solution.
>
> 2. Changes that improve the ability to detect potential bugs using JDT's own analysis, like avoiding raw types, adding null annotations (careful when API is affected!).
>
> 3. Refactorings that are performed for the purpose of testing our own functionality in a dog-fooding like approach.
>
>
> I suggest that (1) and (2) are encouraged on our productive code base, and that branches are created for experiments in (3). These branches can be made available for voluntary field testing but should not be merged to master.
>
> Types (1) and (2) need a bugzilla for every change.
>
> If (3) is performed on a branch, perhaps one umbrella bug can cover several experiments.
>
> best,
> Stephan
>
>
> Am 2020-05-26 20:55, schrieb Stephan Herrmann:
>
> Hi,
>
> Another episode in the question whether clean up changes are worth the effort they cause.
>
> Today the Object Teams build got broken by https://git.eclipse.org/r/#/c/155226/ (which doesn't even have a bug that I could re-open).
>
> Object Teams has tons of tests for checking that we don't break JDT. In that context we have a subclass of org.eclipse.jdt.testplugin.JavaProjectHelper. This no longer compiles since the above change.
>
> Granted, the package is marked x-internal, so JDT has permission to change any way we want.
>
> OTOH note that every project that extends JDT is potentially interested in using also code from the JDT test suite. Here we speak of a fairly large number of projects.
>
> I would not complain if the change was necessary to implement new functionality or fix a bug, that's certainly covered by x-internal. But I strongly doubt that this "clean up" has a benefit that justifies the consequences.
>
> What problem is solved by adding private constructors? Are you doing it just because it is possible? The commit message doesn't indicate you even thought of the possibility that s.o. would subclass those classes.
>
> It's too late for changing the code, because I need to fix this today for M3.
>
> But please keep this in mind when doing further clean-up.
>
> Stephan
> _______________________________________________
> jdt-dev mailing list
> jdt-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev
>
>
> _______________________________________________
> jdt-dev mailing list
> jdt-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev
--
Eclipse Platform project co-lead
CEO vogella GmbH
Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com