You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/03/31 02:57:52 UTC

[GitHub] [lucene] zacharymorn opened a new pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

zacharymorn opened a new pull request #56:
URL: https://github.com/apache/lucene/pull/56


   # Description / Solution
   Turn on ecj missingEnumCaseDespiteDefault setting
   
   Please provide a short description of the approach taken to implement your solution.
   
   # Tests
   
   passed existing tests
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [x] I have reviewed the guidelines for [How to Contribute](https://wiki.apache.org/lucene/HowToContribute) and my code conforms to the standards described there to the best of my ability.
   - [x] I have created a Jira issue and added the issue ID to my pull request title.
   - [x] I have given Lucene maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended)
   - [x] I have developed this patch against the `main` branch.
   - [x] I have run `./gradlew check`.
   - [ ] I have added tests for my changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta merged pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta merged pull request #56:
URL: https://github.com/apache/lucene/pull/56


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-811294290


   I've just tried to backport this to branch_8x, but found it was much harder than I thought.
   Cherry-picking is not very helpful here, also quite a lot of Solr parts needs to be modified to adopt the linter.
   
   As there is already a large gap between main and branch_8x, I wouldn't recommend to backport large patches to 8x if it is really needed, honestly...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-810734268


   +1, thanks @zacharymorn!
   (I think we can replace all switch statements by switch expression that makes sure that all enum values are covered without human effort, when minimum supported JDK version is bumped.)
   Could you add a CHANGES entry?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] zacharymorn commented on a change in pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
zacharymorn commented on a change in pull request #56:
URL: https://github.com/apache/lucene/pull/56#discussion_r604623805



##########
File path: lucene/CHANGES.txt
##########
@@ -1062,6 +1062,8 @@ Build
 
 * LUCENE-9041: Upgrade ecj to 3.19.0 to fix sporadic precommit javadoc issues (Kevin Risden)
 
+* LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting. (Zach Chen)

Review comment:
       Ops sorry. Forgot to check version earlier. I've updated it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-811097939


   > I just left a comment wondering why we are not backporting this to 8.x too.
   
   @mikemccand I'll take care this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on a change in pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta commented on a change in pull request #56:
URL: https://github.com/apache/lucene/pull/56#discussion_r604590998



##########
File path: lucene/CHANGES.txt
##########
@@ -1062,6 +1062,8 @@ Build
 
 * LUCENE-9041: Upgrade ecj to 3.19.0 to fix sporadic precommit javadoc issues (Kevin Risden)
 
+* LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting. (Zach Chen)

Review comment:
       Can you move this to "Other" section for Lucene 9.0.0 (that is the next major release)?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta edited a comment on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta edited a comment on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-811294290


   I've just tried to backport this to branch_8x, but found it was much harder than I thought.
   Cherry-picking is not very helpful here, also quite a lot of Solr parts needs to be modified to adopt the linter.
   
   As there is already a large gap between main and branch_8x, I wouldn't recommend to backport large patches to 8x unless it is really needed, honestly...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mocobeta commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-811843729


   OK, it doesn't seem to be a fun job anyway;  let's leave it as it is and please turn your efforts towards things you feel more enjoyable or beneficial, @zacharymorn  :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] zacharymorn commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
zacharymorn commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-810744127


   Thanks for the review @mocobeta ! I just pushed a commit to add CHANGES entry as well.
   
   > (I think we can replace all switch statements by switch expression that makes sure that all enum values are covered without human effort, when minimum supported JDK version is bumped.)
   
   +1 to this, and this PR makes it one step closer!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mikemccand commented on a change in pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mikemccand commented on a change in pull request #56:
URL: https://github.com/apache/lucene/pull/56#discussion_r604922071



##########
File path: lucene/CHANGES.txt
##########
@@ -280,6 +280,8 @@ Other
 
 * LUCENE-9822: Add assertion to PFOR exception encoding, documenting the BLOCK_SIZE assumption. (Greg Miller)
 
+* LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting. (Zach Chen)

Review comment:
       Could we backport this to 8.9 too?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] zacharymorn commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
zacharymorn commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-811562677


   Thanks Michael for the comment! Yes I have considered backporting, but didn't do it because of the potential large amount of missing enums that need to be added for solr as well like Tomoko already pointed out, but also since I feel this PR is more for lint-ing enforcement for future development (against `main` branch), and it doesn't change lucene performance and features in anyway. So I feel the benefit of backporting might be limited?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mikemccand commented on pull request #56: LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting

Posted by GitBox <gi...@apache.org>.
mikemccand commented on pull request #56:
URL: https://github.com/apache/lucene/pull/56#issuecomment-813397017


   Thank you for looking into backporting!  I think it's fine to leave this as 9.x / Lucene only.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org