-
Notifications
You must be signed in to change notification settings - Fork 917
Upgrade Commons-IO from 2.6.0 to 2.11.0 #3794
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
Conversation
ba25a58 to
d68d06c
Compare
|
Since version 2.7 commons-io change it's Bundle-SymbolicName in the MANIFEST.MF from org.apache.commons.io to org.apache.commons.commons-io, this newly added hyphen breaks the Ant target commit-validation with the 2 respective GitHub Tasks Commit-validation (on macOS) and Commit-validation (on Linux). This should be fixed by adding a hyphen - to a regular expression in platform/openide.modules/Dependency.java line 180 but I could not make it work. I did add a two new tests to validate codename values with a hyphen and underscore. According to the spec this is a valid name. JARManifest Spec |
|
@dbalek @matthiasblaesing any thoughts? |
|
My gut feeling is, that it should be save to relax the naming rules for code name bases. The dash is the only character that can't be used in code name base, but the NetBeans module name. This needs further checks though. Update - the last big change in that area is most probably this: https://bz.apache.org/netbeans/show_bug.cgi?id=212364 So the code-name base is already not a package anymore - further supporting my feeling |
|
@pepness sorry for the late reply. I had a look at this and this needs a documented API change, that will need a review, we should also rename the NetBeans module (yes commons-io broke compatibilty). This is my suggestion how to fix it: https://github.com/matthiasblaesing/netbeans/tree/pr-3794 (this should be rebased onto master and most probably squashed). Please have a look. |
81743e6 to
0d54be9
Compare
|
restarting CI with all tests enabled |
|
moved this to NB18. If anyone things this would be a candidate for NB17, feel free to move it back |
50dfdc1 to
1ad4c1e
Compare
is the only module that requires org.apache.commons.io
…I specification The production for an osgi Bundle-Symbolic-Name is: digit ::= [0..9] alpha ::= [a..zA..Z] alphanum ::= alpha | digit token ::= ( alphanum | '_' | '-' )+ symbolic-name ::= token ( '.' token )* While the current definition of module name supports a wide range of unicode symbols it currently does not: - allow module names to start with numbers - allow dashes in module names
1ad4c1e to
c83a2d2
Compare
|
PR has conflicts |
|
moving to NB20 |
|
|
|
closing, since the other PR is now integrated |
Library Notes:
NetBeans Notes:
java.lsp.servermodule, this is the only module that requiresorg.apache.commons.ioBundle-SymbolicNamein the MANIFEST.MF fromorg.apache.commons.iotoorg.apache.commons.commons-io, this newly added hyphen breaks the Ant targetcommit-validationwith the 2 respective GitHub TasksCommit-validation (on macOS)andCommit-validation (on Linux). This should be fixed by adding a hyphen-to a regular expression inplatform/openide.modules/Dependency.java line 180but I could not make it work. I did add a two new tests to validate codename values with a hyphen and underscore. According to the spec this is a valid name:Testing:
java/java.lsp.server(the one that use this library){nb_all}/platform/modules/org-apache-commons-io.jarWeb Page
Release Notes
JARManifest Spec