-
Notifications
You must be signed in to change notification settings - Fork 868
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
Add support for GlassFish 7.0.7, 7.0.8, and 7.0.9 #6542
Conversation
enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java
Outdated
Show resolved
Hide resolved
enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java
Outdated
Show resolved
Hide resolved
...assfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/JavaSEPlatform.java
Outdated
Show resolved
Hide resolved
....tooling/src/org/netbeans/modules/glassfish/tooling/server/config/ConfigBuilderProvider.java
Outdated
Show resolved
Hide resolved
CLSS public abstract interface java.util.Map<%0 extends java.lang.Object, %1 extends java.lang.Object> | ||
innr public abstract interface static Entry | ||
meth public !varargs static <%0 extends java.lang.Object, %1 extends java.lang.Object> java.util.Map<{%%0},{%%1}> ofEntries(java.util.Map$Entry<? extends {%%0},? extends {%%1}>[]) | ||
anno 0 java.lang.SafeVarargs() | ||
meth public abstract boolean containsKey(java.lang.Object) |
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.
@ebarboni @matthiasblaesing why are there JDK classes in the sig file of this module?
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.
the sig generator is probably not filtering out JDK classes, which means if the public API uses JDK classes in declarations, the sig changes when JDK level changes.
@pepness can you squash so that it is ready for merge? |
- Add new ConfigBuilderProvider for GlassFish 7.0.9 and newer with support for Java 21 - Add support for JavaSE constants up to version 22 - Bump `javac.source` and `javac.target` to version 11 for all 4 GlassFish modules `common`,`eecommon`,`javaee`, and `tooling` - Refactor creation of `ServerWizardIterator` with one private array - Use ConcurrentMap for `builders`, set initial capacity, use atomic operations `computeIfPresent` and `computeIfAbsent`, and remove some synchronized blocks because the ConcurrentHashMap implementation already use synchronized at a Node level - Generate sigtest because `check-sigtests-release` failed - Add a new method that return a numeric representation of the server version - Refactor the String representation of the Enums with a single method. Thanks to @mbien - Integrate `GlassFishVersion` enum to `ServerDetails` constructor and replace instance field `versionInt` with it - Use `GlassfishInstanceProvider` instances when creating a new `ServerDetails` enum - Refactor switch statement with single method `version.toFullInteger()` from the new `GlassFishVersion` instance - Refactor serverDetails array to one call to `ServerDetails.values()` - The `getBuilder` method can return a ConfigBuilder instance with just one atomic and non-blocking operation `computeIfAbsent`. Thanks to @mbien - Refactor long switch statement to one `if if-else else` statement - Remove unnecessary imports - Make final some instances
4e53fd4
to
12031d7
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.
good cleanup! Should make future updates easier I think.
Library Notes:
NetBeans GlassFish module notes:
javac.source
andjavac.target
to version 11 for all 4 GlassFish modulescommon
,eecommon
,javaee
, andtooling
ServerWizardIterator
with one private arrayif if-else else
statementbuilders
, set initial capacity, use atomic operationscomputeIfPresent
andcomputeIfAbsent
, and remove some synchronized blocks because the ConcurrentHashMap implementation already use synchronized at a field levelNetBeans Testing:
ant -Dcluster.config=release commit-validation
glassfish.common
,glassfish.javaee
,glassfish.tooling
, andglassfish.eecommon
Release Notes