[DUBBO-78] Add options configuration mechanism for JdkCompiler.#7232
Conversation
|
Hi, @XenoAmess , you can customize a |
21ac1f5 to
6e3f8fb
Compare
Yep, now I copied the JdkCompiler and changed it to a Jdk8Compiler. I just think things can be easier... because that be just duplicated codes lol. |
Codecov Report
@@ Coverage Diff @@
## master #7232 +/- ##
============================================
+ Coverage 60.00% 60.02% +0.02%
+ Complexity 289 288 -1
============================================
Files 1004 1004
Lines 40015 40016 +1
Branches 5935 5935
============================================
+ Hits 24010 24021 +11
+ Misses 13304 13294 -10
Partials 2701 2701
Continue to review full report at Codecov.
|
37cfc08 to
6496fe3
Compare
dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JdkCompilerTest.java
Outdated
Show resolved
Hide resolved
de43f5f to
c93b596
Compare
|
@AlbumenJ |
|
Hi @XenoAmess Thank you for the contribution. We have reviewed and merged some of your pull requests recently. However, all the changes are code reformats which do not match the overall evolve plan of the community and will bring us a lot of conflicts and verifications. I think it will be better for us to focus on such refactoring when we arrive at a certain stage. We have labeled all PR as Please feel free to let us know if you have any questions. |
Not all of the prs are code reformats. for example, this one is not. I wonder, have you at least read them all? I will pin you to reopen the prs which be not reformat pr, and I hope you can at least find some time for them.
According to my former experience there will never be such a perfect stage. But if you wanna delay some of them, I have no problem, as this is not my lib to maintain.
Well, you have different ideas about this with people in alibaba/p3c. As you are both alibaba team, I'm actually confused. I thought you alibaba people will follow one same idea about code maintaining, and I heard every java repo in ali must pass p3c. Maybe I be wrong. |
|
@chickenlj this pr is a functional pr, should not be closed. |
|
In my opinion, this pr should be reopened. Why we temporarily close those reformatting PRs is because we are currently resolve most of previous PRs which created for servals months and if we merge those reformatting PRs may cause a lot of confilcts with the previous PRs . Code maintaining is important, and we will make code clean enough once after we resolve those previous PRs. We are sure that will reopen those reformatting PRs in the future, Also please feel free to notify us if we forget it. |
There are some file is in CRLF mode due to history problem. In our opinion, if we do a unify for those files in Also, we cannot find if the file is in CRLF mode only from Github Pull Request website and it is sure that the files in the future PR in CRLF mode is unavoidable. So, we choose we tolerate multi file formats and we have add Thanks for your understanding. |
This can be done using checkstyle plugin. We can fail the build when there be CRLF file. See example at commons-lang. https://github.com/apache/commons-lang/blob/master/pom.xml#L754 https://github.com/apache/commons-lang/blob/master/src/site/resources/checkstyle/checkstyle.xml#L28
Yeah, history problems are really awful things... |
dubbo-common/src/main/java/org/apache/dubbo/common/compiler/support/JdkCompiler.java
Outdated
Show resolved
Hide resolved
I personally need this mechanism in one of my repos, (I have to copy/change this whole class now because not having such mechanism, I need a JdkCompiler to deal with java 1.8 codes) and I think it helpful to other people too.
c93b596 to
8bae76e
Compare
Codecov Report
@@ Coverage Diff @@
## master #7232 +/- ##
=========================================
Coverage ? 59.05%
Complexity ? 529
=========================================
Files ? 1076
Lines ? 43418
Branches ? 6339
=========================================
Hits ? 25639
Misses ? 14933
Partials ? 2846
Continue to review full report at Codecov.
|
What is the purpose of the change
I personally need this mechanism in one of my repos, (I have to copy/change this whole class now because not having such mechanism, I need a JdkCompiler to deal with java 1.8 codes)
and I think it helpful to other people too.
Brief changelog
JdkCompiler
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false&mvn clean test-compile failsafe:integration-testto make sure unit-test and integration-test pass.