Community
Participate
Working Groups
package p1; public sealed interface IShape permits Circle, IRectangle { // [1] } public interface IRectangle { } public class Circle { } At [1], we get these two errors: - Permitted type Circle does not declare p1.IShape as direct super interface - Permitted type IRectangle does not declare p1.IShape as direct super interface We should have a quick fix to declare the sealed interface as the super interface of permitted types.
We can release it in master branch first with preview feature checks and it can be merged to the beta 17 branch after that.
I think the intention was to set to 4.21 M1.
(In reply to Sarika Sinha from comment #2) > I think the intention was to set to 4.21 M1. Yes, thanks for fixing the TM.
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182108
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182108 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=783990a5d1836b3ba32fad5e13bdfa6f781a860b
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182390
(In reply to Eclipse Genie from comment #6) > New Gerrit change created: > https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182390 We should not provide the quick fix if the permitted type is not present in a compilation unit (e.g. is binary / non-editable).
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182390 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=11a52d88777f364e70e7fce5d575ef61ddf38bae
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182746
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/182747
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/182747 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=9eae03fcdbca6977c692159ee633102fa212ef4b
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182746 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=4ac38ca1c376ce6f276450473c397d07e4808426
Verified in I20210704-1800.
(In reply to Noopur Gupta from comment #7) > (In reply to Eclipse Genie from comment #6) > > New Gerrit change created: > > https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/182390 > > We should not provide the quick fix if the permitted type is not > present in a compilation unit (e.g. is binary / non-editable). This got reverted by bug 574526. To be fixed again via bug 574703.