-
Notifications
You must be signed in to change notification settings - Fork 874
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
j2ee: Centralize {Java, Jakarta} EE specification #6061
base: master
Are you sure you want to change the base?
Conversation
I like what I see so far. Unfortunately some of the enterprise tests can't run on JDK 11 yet #4904, so using JDK 11 API is blocked for now. You would also have to set source/target to 11 and add Getting rid of the if/else chains by improving the data structures a bit is much appreciated. |
Thanks for your response. I'm aware that it does not work out for now. Just wanted to fetch some feedback before putting more time into to sort things out you mentioned. |
5b0bf16
to
af9cb13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently we could not merge this due to 4904
yes I am a bit worried about that one. Would be good to add the JDK 11 requirement to the module manifest like:
https://github.com/search?q=repo%3Aapache%2Fnetbeans+%22OpenIDE-Module-Java-Dependencies%3A+Java+%3E+11%22&type=code
Then we can do a test run with all tests enabled. I am curious what else will fail outside of the enterprise job.
enterprise/j2ee.core/src/org/netbeans/api/j2ee/core/DeploymentDescriptors.java
Outdated
Show resolved
Hide resolved
enterprise/j2ee.common/src/org/netbeans/modules/j2ee/common/dd/DDHelper.java
Outdated
Show resolved
Hide resolved
enterprise/j2ee.common/test/unit/src/org/netbeans/modules/j2ee/common/ClasspathUtilTest.java
Outdated
Show resolved
Hide resolved
29b411c
to
3ec15c6
Compare
Are you talking about |
1c644fc
to
c4e6a6c
Compare
As discussed on Slack: Reverted back to Java Source Target 8 as #4904 most likely take some more time. |
enterprise/j2ee.core/nbproject/org-netbeans-modules-j2ee-core.sig
Outdated
Show resolved
Hide resolved
enterprise/j2ee.common/test/unit/src/org/netbeans/modules/j2ee/common/dd/DDHelperTest.java
Outdated
Show resolved
Hide resolved
4f41882
to
99f925d
Compare
|
lets move this to NB20 so that we don't have to rush it in before freeze. Cleanups are better applied early in the cycle anyway. |
9cb25a3
to
58321c1
Compare
hmm. whats up with that latte test lol. |
It's weird. Especially only windows build is failing. |
58321c1
to
662d320
Compare
…s not break anything
…ore module This allows removal of `if/else` statements in `DDHelper` and allows easier extension by new Jakarta EE releases.
662d320
to
3eb9af2
Compare
Yesterday I managed to get this reprocuded somehow (which I failed today). Yesterday it seemed that the classpath argument which was constructed when launching the tests was too long because of the new classpath entries:
I just wonder why mockito is passed as classpath requirement to run the php tests... |
Ok this can be reproduced when putting the NetBeans sources into |
I guess I'm a little bit stuck: So from my understanding a workaround could be to generate a jar with the classpath in `manifest.mf`` and pass that jar instead of all module dependencies, but I failed to write a task accomplishing that... |
possibly because it is now a dependency of nbunit? see
it should be possible to put arguments into "argfiles" for most if not all java tools by now, e.g: But maybe this can be also solved by reducing the dependencies..., a huge cp could be a red flag in itself. If this is too much work I would investigate if this can be solved without mockito. I wouldn't put too much time into the ant build. |
Removed milestone as now work was done after last milestone move. |
Today we have a {Java, Jakarta} EE
Profile
which contains information about the release version and the profile (web, full). As NetBeans is able to create certain files likeweb.xml
we need to have a template which contain schema information based on the {Java, Jakarta} EE specification.Since prior to #5970 the profiles were
String
based most of the classes relying on that information introduced if/else statements which are extended on every {Java, Jakarta} EE release.So basically my idea is to put more information about a {Java, Jakarta} EE profile into the
Profile
class itself. So the idea is to provide the {Java, Jakarta} EE specification in code so that the modules can access these information.My goal is to:
To get a better idea what I'm talking about I already implemented a poc.
@mbien What do you think: Should I proceed with the other deployment descriptors or do you dislike the idea?