From 8202967960050f7d44e8d53df68a310086e37333 Mon Sep 17 00:00:00 2001 From: Laszlo Kishalmi Date: Wed, 27 Jul 2022 21:18:50 -0700 Subject: [PATCH 1/5] Make sure, that Java, Groovy and Truffle breakpoints are not clashing --- .../GroovyBreakpointAnnotationListener.java | 16 +++++++++++----- .../groovy/debug/GroovyBreakpointStratifier.java | 3 ++- ...ggleBreakpointsInLanguagesActionProvider.java | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java b/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java index d6c70601dd86..d413e9e9bc28 100644 --- a/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java +++ b/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java @@ -42,7 +42,7 @@ @DebuggerServiceRegistration(types=LazyDebuggerManagerListener.class) public class GroovyBreakpointAnnotationListener extends DebuggerManagerAdapter { - private HashMap breakpointToAnnotation = new HashMap<>(); + private final HashMap breakpointToAnnotation = new HashMap<>(); private boolean listen = true; @Override @@ -71,16 +71,22 @@ public void propertyChange (PropertyChangeEvent e) { @Override public void breakpointAdded (Breakpoint b) { if (b instanceof LineBreakpoint) { - ((LineBreakpoint) b).addPropertyChangeListener (this); - annotate ((LineBreakpoint) b); + LineBreakpoint lb = (LineBreakpoint) b; + if (GroovyBreakpointStratifier.GROOVY_STRATUM.equals(lb.getStratum())) { + lb.addPropertyChangeListener (this); + annotate(lb); + } } } @Override public void breakpointRemoved (Breakpoint b) { if (b instanceof LineBreakpoint) { - ((LineBreakpoint) b).removePropertyChangeListener (this); - removeAnnotation ((LineBreakpoint) b); + LineBreakpoint lb = (LineBreakpoint) b; + if (GroovyBreakpointStratifier.GROOVY_STRATUM.equals(lb.getStratum())) { + lb.removePropertyChangeListener (this); + removeAnnotation(lb); + } } } diff --git a/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointStratifier.java b/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointStratifier.java index f73b0a8110a5..232693ec5932 100644 --- a/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointStratifier.java +++ b/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointStratifier.java @@ -52,6 +52,7 @@ @ServiceProvider(service = BreakpointStratifier.class) public final class GroovyBreakpointStratifier implements BreakpointStratifier { + public final static String GROOVY_STRATUM = "Groovy"; //NOI18N private static final Logger LOGGER = Logger.getLogger(GroovyBreakpointStratifier.class.getName()); public GroovyBreakpointStratifier() { @@ -78,7 +79,7 @@ public void stratify(JPDABreakpoint breakpoint) { String printText = pt.replace("{groovyName}", (groovyName != null) ? groovyName : "?"); // NOI18N String groovyPath = getGroovyPath(url, fo); - lb.setStratum("Groovy"); // NOI18N + lb.setStratum(GROOVY_STRATUM); lb.setSourceName(groovyName); lb.setSourcePath(groovyPath); lb.setPreferredClassName(findGroovyClassName(groovyPath, fo, lineNumber)); diff --git a/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/actions/ToggleBreakpointsInLanguagesActionProvider.java b/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/actions/ToggleBreakpointsInLanguagesActionProvider.java index f01c7287966b..6994cd5ff424 100644 --- a/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/actions/ToggleBreakpointsInLanguagesActionProvider.java +++ b/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/actions/ToggleBreakpointsInLanguagesActionProvider.java @@ -47,7 +47,7 @@ public class ToggleBreakpointsInLanguagesActionProvider extends ActionsProviderS private static final Set IGNORED_MIME_TYPES = new HashSet<>( // We have JSLineBreakpoint in JavaScript - Arrays.asList("text/javascript", "text/x-java")); // NOI18N + Arrays.asList("text/javascript", "text/x-java", "text/x-groovy")); // NOI18N private volatile Line postedLine; From c6166f56bdefe2dee663b5bb26de86219e4c04ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bl=C3=A4sing?= Date: Thu, 28 Jul 2022 20:58:13 +0200 Subject: [PATCH 2/5] Update JNA and JNA-platform to 5.12.1 Closes: #4441 --- .../libs.jna.platform/external/binaries-list | 2 +- ...se.txt => jna-platform-5.12.1-license.txt} | 2 +- platform/libs.jna.platform/manifest.mf | 2 +- .../nbproject/project.properties | 2 +- .../libs.jna.platform/nbproject/project.xml | 6 +++--- platform/libs.jna/external/binaries-list | 2 +- ...9.0-license.txt => jna-5.12.1-license.txt} | 2 +- platform/libs.jna/manifest.mf | 2 +- .../libs.jna/nbproject/project.properties | 20 ++++++++++--------- platform/libs.jna/nbproject/project.xml | 4 ++-- 10 files changed, 23 insertions(+), 21 deletions(-) rename platform/libs.jna.platform/external/{jna-platform-5.9.0-license.txt => jna-platform-5.12.1-license.txt} (99%) rename platform/libs.jna/external/{jna-5.9.0-license.txt => jna-5.12.1-license.txt} (99%) diff --git a/platform/libs.jna.platform/external/binaries-list b/platform/libs.jna.platform/external/binaries-list index 9acffb010f5c..c40aa998c917 100644 --- a/platform/libs.jna.platform/external/binaries-list +++ b/platform/libs.jna.platform/external/binaries-list @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -C535A5BDA553D7D7690356C825010DA74B2671B5 net.java.dev.jna:jna-platform:5.9.0 +097406A297C852F4A41E688A176EC675F72E8329 net.java.dev.jna:jna-platform:5.12.1 diff --git a/platform/libs.jna.platform/external/jna-platform-5.9.0-license.txt b/platform/libs.jna.platform/external/jna-platform-5.12.1-license.txt similarity index 99% rename from platform/libs.jna.platform/external/jna-platform-5.9.0-license.txt rename to platform/libs.jna.platform/external/jna-platform-5.12.1-license.txt index 7ab5d5838b87..087700f8635d 100644 --- a/platform/libs.jna.platform/external/jna-platform-5.9.0-license.txt +++ b/platform/libs.jna.platform/external/jna-platform-5.12.1-license.txt @@ -1,5 +1,5 @@ Name: Java Native Access -Version: 5.9.0 +Version: 5.12.1 License: Apache-2.0 Description: Dynamically access native libraries from Java without JNI. Origin: Java Native Access diff --git a/platform/libs.jna.platform/manifest.mf b/platform/libs.jna.platform/manifest.mf index 04047bfa2f66..a31c12dc7a29 100644 --- a/platform/libs.jna.platform/manifest.mf +++ b/platform/libs.jna.platform/manifest.mf @@ -1,4 +1,4 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.libs.jna.platform/2 OpenIDE-Module-Localizing-Bundle: org/netbeans/libs/jna/platform/Bundle.properties -OpenIDE-Module-Specification-Version: 2.12 +OpenIDE-Module-Specification-Version: 2.13 diff --git a/platform/libs.jna.platform/nbproject/project.properties b/platform/libs.jna.platform/nbproject/project.properties index b86335082c7d..98355e24d6a2 100644 --- a/platform/libs.jna.platform/nbproject/project.properties +++ b/platform/libs.jna.platform/nbproject/project.properties @@ -17,5 +17,5 @@ is.autoload=true javac.source=1.6 -release.external/jna-platform-5.9.0.jar=modules/ext/jna-platform-5.9.0.jar +release.external/jna-platform-5.12.1.jar=modules/ext/jna-platform-5.12.1.jar sigtest.gen.fail.on.error=false diff --git a/platform/libs.jna.platform/nbproject/project.xml b/platform/libs.jna.platform/nbproject/project.xml index c7fc274277dc..260c6dc35c15 100644 --- a/platform/libs.jna.platform/nbproject/project.xml +++ b/platform/libs.jna.platform/nbproject/project.xml @@ -29,7 +29,7 @@ org.netbeans.libs.jna 2 - 2.9 + 2.13 @@ -47,8 +47,8 @@ com.sun.jna.platform.wince - ext/jna-platform-5.9.0.jar - external/jna-platform-5.9.0.jar + ext/jna-platform-5.12.1.jar + external/jna-platform-5.12.1.jar diff --git a/platform/libs.jna/external/binaries-list b/platform/libs.jna/external/binaries-list index ab565afa1b78..1a354b242ebf 100644 --- a/platform/libs.jna/external/binaries-list +++ b/platform/libs.jna/external/binaries-list @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -8F503E6D9B500CEFF299052D6BE75B38C7257758 net.java.dev.jna:jna:5.9.0 +B1E93A735CAEA94F503E95E6FE79BF9CDC1E985D net.java.dev.jna:jna:5.12.1 diff --git a/platform/libs.jna/external/jna-5.9.0-license.txt b/platform/libs.jna/external/jna-5.12.1-license.txt similarity index 99% rename from platform/libs.jna/external/jna-5.9.0-license.txt rename to platform/libs.jna/external/jna-5.12.1-license.txt index 7ab5d5838b87..087700f8635d 100644 --- a/platform/libs.jna/external/jna-5.9.0-license.txt +++ b/platform/libs.jna/external/jna-5.12.1-license.txt @@ -1,5 +1,5 @@ Name: Java Native Access -Version: 5.9.0 +Version: 5.12.1 License: Apache-2.0 Description: Dynamically access native libraries from Java without JNI. Origin: Java Native Access diff --git a/platform/libs.jna/manifest.mf b/platform/libs.jna/manifest.mf index f56bc84de239..8ddea7072cc1 100644 --- a/platform/libs.jna/manifest.mf +++ b/platform/libs.jna/manifest.mf @@ -4,4 +4,4 @@ OpenIDE-Module: org.netbeans.libs.jna/2 OpenIDE-Module-Install: org/netbeans/libs/jna/Installer.class OpenIDE-Module-Localizing-Bundle: org/netbeans/libs/jna/Bundle.properties AutoUpdate-Essential-Module: true -OpenIDE-Module-Specification-Version: 2.12 +OpenIDE-Module-Specification-Version: 2.13 diff --git a/platform/libs.jna/nbproject/project.properties b/platform/libs.jna/nbproject/project.properties index a7efb245d5c5..84644e4a8a29 100644 --- a/platform/libs.jna/nbproject/project.properties +++ b/platform/libs.jna/nbproject/project.properties @@ -16,22 +16,24 @@ # under the License. javac.source=1.6 -release.external/jna-5.9.0.jar=modules/ext/jna-5.9.0.jar +release.external/jna-5.12.1.jar=modules/ext/jna-5.12.1.jar # Do not forget to rename native libs being extracted from the JAR when upgrading the JNA library, and patch org.netbeans.libs.jna.Installer as well. -release.external/jna-5.9.0.jar!/com/sun/jna/darwin-x86-64/libjnidispatch.jnilib=modules/lib/x86_64/libjnidispatch-nb.jnilib -release.external/jna-5.9.0.jar!/com/sun/jna/darwin-aarch64/libjnidispatch.jnilib=modules/lib/aarch64/libjnidispatch-nb.jnilib -release.external/jna-5.9.0.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so=modules/lib/amd64/linux/libjnidispatch-nb.so -release.external/jna-5.9.0.jar!/com/sun/jna/linux-x86/libjnidispatch.so=modules/lib/i386/linux/libjnidispatch-nb.so -release.external/jna-5.9.0.jar!/com/sun/jna/linux-aarch64/libjnidispatch.so=modules/lib/aarch64/linux/libjnidispatch-nb.so -release.external/jna-5.9.0.jar!/com/sun/jna/win32-x86-64/jnidispatch.dll=modules/lib/amd64/jnidispatch-nb.dll -release.external/jna-5.9.0.jar!/com/sun/jna/win32-x86/jnidispatch.dll=modules/lib/x86/jnidispatch-nb.dll -release.external/jna-5.9.0.jar!/com/sun/jna/win32-aarch64/jnidispatch.dll=modules/lib/aarch64/jnidispatch-nb.dll +release.external/jna-5.12.1.jar!/com/sun/jna/darwin-x86-64/libjnidispatch.jnilib=modules/lib/x86_64/libjnidispatch-nb.jnilib +release.external/jna-5.12.1.jar!/com/sun/jna/darwin-aarch64/libjnidispatch.jnilib=modules/lib/aarch64/libjnidispatch-nb.jnilib +release.external/jna-5.12.1.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so=modules/lib/amd64/linux/libjnidispatch-nb.so +release.external/jna-5.12.1.jar!/com/sun/jna/linux-x86/libjnidispatch.so=modules/lib/i386/linux/libjnidispatch-nb.so +release.external/jna-5.12.1.jar!/com/sun/jna/linux-aarch64/libjnidispatch.so=modules/lib/aarch64/linux/libjnidispatch-nb.so +release.external/jna-5.12.1.jar!/com/sun/jna/linux-riscv64/libjnidispatch.so=modules/lib/riscv64/linux/libjnidispatch-nb.so +release.external/jna-5.12.1.jar!/com/sun/jna/win32-x86-64/jnidispatch.dll=modules/lib/amd64/jnidispatch-nb.dll +release.external/jna-5.12.1.jar!/com/sun/jna/win32-x86/jnidispatch.dll=modules/lib/x86/jnidispatch-nb.dll +release.external/jna-5.12.1.jar!/com/sun/jna/win32-aarch64/jnidispatch.dll=modules/lib/aarch64/jnidispatch-nb.dll jnlp.verify.excludes=\ modules/lib/amd64/jnidispatch-nb.dll,\ modules/lib/x86/jnidispatch-nb.dll,\ modules/lib/aarch64/jnidispatch-nb.dll,\ modules/lib/amd64/linux/libjnidispatch-nb.so,\ modules/lib/i386/linux/libjnidispatch-nb.so,\ + modules/lib/riscv64/linux/libjnidispatch-nb.so,\ modules/lib/aarch64/linux/libjnidispatch-nb.so,\ modules/lib/x86_64/libjnidispatch-nb.jnilib,\ modules/lib/aarch64/libjnidispatch-nb.jnilib diff --git a/platform/libs.jna/nbproject/project.xml b/platform/libs.jna/nbproject/project.xml index b72dff6ae4eb..8de9c2acb7a1 100644 --- a/platform/libs.jna/nbproject/project.xml +++ b/platform/libs.jna/nbproject/project.xml @@ -48,8 +48,8 @@ com.sun.jna.win32 - ext/jna-5.9.0.jar - external/jna-5.9.0.jar + ext/jna-5.12.1.jar + external/jna-5.12.1.jar From f32cb6ef603f29a3e2fc1a7672b9ab6fa5fa0395 Mon Sep 17 00:00:00 2001 From: Laszlo Kishalmi Date: Sun, 31 Jul 2022 18:30:08 -0700 Subject: [PATCH 3/5] Treat Gradle disk cache at least as evaluated. --- .../modules/gradle/loaders/DiskCacheProjectLoader.java | 10 +++++++--- .../gradle/loaders/GradleProjectLoaderImpl.java | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/extide/gradle/src/org/netbeans/modules/gradle/loaders/DiskCacheProjectLoader.java b/extide/gradle/src/org/netbeans/modules/gradle/loaders/DiskCacheProjectLoader.java index add7217dccfb..95b94943b8c9 100644 --- a/extide/gradle/src/org/netbeans/modules/gradle/loaders/DiskCacheProjectLoader.java +++ b/extide/gradle/src/org/netbeans/modules/gradle/loaders/DiskCacheProjectLoader.java @@ -43,9 +43,13 @@ public GradleProject load() { if (cache.isCompatible()) { GradleProject prev = createGradleProject(ctx.project.getGradleFiles(), cache.loadData()); LOG.log(Level.FINER, "Loaded from cache: {0}, valid: {1}", new Object[] { prev, cache.isValid() }); - if (cache.isValid() && GradleArtifactStore.getDefault().sanityCheckCachedProject(prev)) { - updateSubDirectoryCache(prev); - return prev; + if (GradleArtifactStore.getDefault().sanityCheckCachedProject(prev)) { + if (cache.isValid()) { + updateSubDirectoryCache(prev); + return prev; + } else { + return prev.invalidate("Disk cache data is invalid."); + } } } return null; diff --git a/extide/gradle/src/org/netbeans/modules/gradle/loaders/GradleProjectLoaderImpl.java b/extide/gradle/src/org/netbeans/modules/gradle/loaders/GradleProjectLoaderImpl.java index 833ee1cd7f83..dc28b10f72ff 100644 --- a/extide/gradle/src/org/netbeans/modules/gradle/loaders/GradleProjectLoaderImpl.java +++ b/extide/gradle/src/org/netbeans/modules/gradle/loaders/GradleProjectLoaderImpl.java @@ -88,7 +88,8 @@ public GradleProject loadProject(NbGradleProject.Quality aim, String description ret = loader.load(); LOGGER.log(Level.FINER, "Loaded with loader {0} -> {1}", new Object[] { loader, ret }); } - if (ret != null) { + if ((ret != null) && ret.getQuality().atLeast(aim)) { + // We have the quality we are looking for, let's be happy with that break; } } else { From 4ccfe44d7ff54c789b3ad8f7833edd091ff32cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bl=C3=A4sing?= Date: Tue, 2 Aug 2022 19:37:31 +0200 Subject: [PATCH 4/5] Update junixsocket 2.4.0 -> 2.5.1 (API incompatible\!) --- ide/c.jcraft.jsch/nbproject/project.xml | 4 +- ide/docker.api/nbproject/project.xml | 4 +- .../modules/docker/api/DockerAction.java | 2 +- ide/libs.c.kohlschutter.junixsocket/build.xml | 19 + .../external/binaries-list | 4 +- ...ense.txt => junixsocket-2.5.1-license.txt} | 4 +- ...otice.txt => junixsocket-2.5.1-notice.txt} | 0 .../manifest.mf | 4 +- .../libs-c-kohlschutter-junixsocket.sig | 701 ++++++++++++------ .../nbproject/project.properties | 30 +- .../nbproject/project.xml | 8 +- 11 files changed, 523 insertions(+), 257 deletions(-) rename ide/libs.c.kohlschutter.junixsocket/external/{junixsocket-2.4.0-license.txt => junixsocket-2.5.1-license.txt} (99%) rename ide/libs.c.kohlschutter.junixsocket/external/{junixsocket-2.4.0-notice.txt => junixsocket-2.5.1-notice.txt} (100%) diff --git a/ide/c.jcraft.jsch/nbproject/project.xml b/ide/c.jcraft.jsch/nbproject/project.xml index 99298cbcb47f..7c428df503d3 100644 --- a/ide/c.jcraft.jsch/nbproject/project.xml +++ b/ide/c.jcraft.jsch/nbproject/project.xml @@ -38,8 +38,8 @@ libs.c.kohlschutter.junixsocket - 1 - 2.32 + 2 + 3.0 diff --git a/ide/docker.api/nbproject/project.xml b/ide/docker.api/nbproject/project.xml index cd3bdc763659..726131abc7d7 100644 --- a/ide/docker.api/nbproject/project.xml +++ b/ide/docker.api/nbproject/project.xml @@ -30,8 +30,8 @@ - 1 - 2.20 + 2 + 3.0 diff --git a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java index 4259d9fa18dd..38f3dac88ba9 100644 --- a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java +++ b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java @@ -1270,7 +1270,7 @@ private Endpoint createEndpoint() throws IOException { return Endpoint.forSocket(s); } else if ("file".equals(realUrl.getProtocol())) { AFUNIXSocket s = AFUNIXSocket.newInstance(); - AFUNIXSocketAddress sockAdd = new AFUNIXSocketAddress(new File(realUrl.getFile())); + AFUNIXSocketAddress sockAdd = AFUNIXSocketAddress.of(new File(realUrl.getFile())); s.connect(sockAdd); return Endpoint.forSocket(s); } else { diff --git a/ide/libs.c.kohlschutter.junixsocket/build.xml b/ide/libs.c.kohlschutter.junixsocket/build.xml index da329a2b3250..2446925755b6 100644 --- a/ide/libs.c.kohlschutter.junixsocket/build.xml +++ b/ide/libs.c.kohlschutter.junixsocket/build.xml @@ -21,4 +21,23 @@ --> + + + + + + + diff --git a/ide/libs.c.kohlschutter.junixsocket/external/binaries-list b/ide/libs.c.kohlschutter.junixsocket/external/binaries-list index 63ddd6ef4602..aa132f045771 100644 --- a/ide/libs.c.kohlschutter.junixsocket/external/binaries-list +++ b/ide/libs.c.kohlschutter.junixsocket/external/binaries-list @@ -14,5 +14,5 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -2D8230CF81242FF4103A9D673F36CD71E9F7D7E2 com.kohlschutter.junixsocket:junixsocket-native-common:2.4.0 -F1D5E97DB0AB7AD37E2F3C3DE49BB355D4A2ADD4 com.kohlschutter.junixsocket:junixsocket-common:2.4.0 +4A19CA3071BFAA7CB30AAD62D6F93FAA080EA9E8 com.kohlschutter.junixsocket:junixsocket-native-common:2.5.1 +87515D51236AFD95693FDC6F2233A98F9C1429B1 com.kohlschutter.junixsocket:junixsocket-common:2.5.1 diff --git a/ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.4.0-license.txt b/ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.5.1-license.txt similarity index 99% rename from ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.4.0-license.txt rename to ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.5.1-license.txt index 684913baa1f5..c2c4ff301c8a 100644 --- a/ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.4.0-license.txt +++ b/ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.5.1-license.txt @@ -2,8 +2,8 @@ Name: junixsocket License: Apache-2.0 Description: junixsocket is a Java/JNI library that allows the use of Unix Domain Sockets (AF_UNIX sockets) from Java. Origin: https://github.com/kohlschutter/junixsocket/ -Version: 2.4.0 -Files: junixsocket-common-2.4.0.jar, junixsocket-native-common-2.4.0.jar +Version: 2.5.1 +Files: junixsocket-common-2.5.1.jar, junixsocket-native-common-2.5.1.jar Apache License diff --git a/ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.4.0-notice.txt b/ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.5.1-notice.txt similarity index 100% rename from ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.4.0-notice.txt rename to ide/libs.c.kohlschutter.junixsocket/external/junixsocket-2.5.1-notice.txt diff --git a/ide/libs.c.kohlschutter.junixsocket/manifest.mf b/ide/libs.c.kohlschutter.junixsocket/manifest.mf index e4b9052e980b..5ffec043e72d 100644 --- a/ide/libs.c.kohlschutter.junixsocket/manifest.mf +++ b/ide/libs.c.kohlschutter.junixsocket/manifest.mf @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -OpenIDE-Module: libs.c.kohlschutter.junixsocket/1 +OpenIDE-Module: libs.c.kohlschutter.junixsocket/2 OpenIDE-Module-Localizing-Bundle: org/netbeans/libs/c/kohlschutter/junixsocket/Bundle.properties -OpenIDE-Module-Specification-Version: 2.33 +OpenIDE-Module-Specification-Version: 3.0 diff --git a/ide/libs.c.kohlschutter.junixsocket/nbproject/libs-c-kohlschutter-junixsocket.sig b/ide/libs.c.kohlschutter.junixsocket/nbproject/libs-c-kohlschutter-junixsocket.sig index 714eaabede08..b65e590b45d7 100644 --- a/ide/libs.c.kohlschutter.junixsocket/nbproject/libs-c-kohlschutter-junixsocket.sig +++ b/ide/libs.c.kohlschutter.junixsocket/nbproject/libs-c-kohlschutter-junixsocket.sig @@ -1,10 +1,38 @@ #Signature file v4.1 -#Version 2.32 +#Version 3.0 CLSS public abstract interface java.io.Closeable intf java.lang.AutoCloseable meth public abstract void close() throws java.io.IOException +CLSS public abstract interface java.io.Flushable +meth public abstract void flush() throws java.io.IOException + +CLSS public abstract java.io.InputStream +cons public init() +intf java.io.Closeable +meth public abstract int read() throws java.io.IOException +meth public boolean markSupported() +meth public int available() throws java.io.IOException +meth public int read(byte[]) throws java.io.IOException +meth public int read(byte[],int,int) throws java.io.IOException +meth public long skip(long) throws java.io.IOException +meth public void close() throws java.io.IOException +meth public void mark(int) +meth public void reset() throws java.io.IOException +supr java.lang.Object + +CLSS public abstract java.io.OutputStream +cons public init() +intf java.io.Closeable +intf java.io.Flushable +meth public abstract void write(int) throws java.io.IOException +meth public void close() throws java.io.IOException +meth public void flush() throws java.io.IOException +meth public void write(byte[]) throws java.io.IOException +meth public void write(byte[],int,int) throws java.io.IOException +supr java.lang.Object + CLSS public abstract interface java.io.Serializable CLSS public abstract interface java.lang.AutoCloseable @@ -13,6 +41,12 @@ meth public abstract void close() throws java.lang.Exception CLSS public abstract interface java.lang.Comparable<%0 extends java.lang.Object> meth public abstract int compareTo({java.lang.Comparable%0}) +CLSS public abstract interface !annotation java.lang.Deprecated + anno 0 java.lang.annotation.Documented() + anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) + anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE]) +intf java.lang.annotation.Annotation + CLSS public abstract java.lang.Enum<%0 extends java.lang.Enum<{java.lang.Enum%0}>> cons protected init(java.lang.String,int) intf java.io.Serializable @@ -29,6 +63,12 @@ meth public java.lang.String toString() meth public static <%0 extends java.lang.Enum<{%%0}>> {%%0} valueOf(java.lang.Class<{%%0}>,java.lang.String) supr java.lang.Object +CLSS public abstract interface !annotation java.lang.FunctionalInterface + anno 0 java.lang.annotation.Documented() + anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) + anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[TYPE]) +intf java.lang.annotation.Annotation + CLSS public java.lang.Object cons public init() meth protected java.lang.Object clone() throws java.lang.CloneNotSupportedException @@ -43,6 +83,32 @@ meth public final void wait(long,int) throws java.lang.InterruptedException meth public int hashCode() meth public java.lang.String toString() +CLSS public abstract interface java.lang.annotation.Annotation +meth public abstract boolean equals(java.lang.Object) +meth public abstract int hashCode() +meth public abstract java.lang.Class annotationType() +meth public abstract java.lang.String toString() + +CLSS public abstract interface !annotation java.lang.annotation.Documented + anno 0 java.lang.annotation.Documented() + anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) + anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[ANNOTATION_TYPE]) +intf java.lang.annotation.Annotation + +CLSS public abstract interface !annotation java.lang.annotation.Retention + anno 0 java.lang.annotation.Documented() + anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) + anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[ANNOTATION_TYPE]) +intf java.lang.annotation.Annotation +meth public abstract java.lang.annotation.RetentionPolicy value() + +CLSS public abstract interface !annotation java.lang.annotation.Target + anno 0 java.lang.annotation.Documented() + anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) + anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[ANNOTATION_TYPE]) +intf java.lang.annotation.Annotation +meth public abstract java.lang.annotation.ElementType[] value() + CLSS public java.net.DatagramSocket cons protected init(java.net.DatagramSocketImpl) cons public init() throws java.net.SocketException @@ -82,6 +148,34 @@ meth public void setSoTimeout(int) throws java.net.SocketException meth public void setTrafficClass(int) throws java.net.SocketException supr java.lang.Object +CLSS public abstract java.net.DatagramSocketImpl +cons public init() +fld protected int localPort +fld protected java.io.FileDescriptor fd +intf java.net.SocketOptions +meth protected abstract byte getTTL() throws java.io.IOException + anno 0 java.lang.Deprecated() +meth protected abstract int getTimeToLive() throws java.io.IOException +meth protected abstract int peek(java.net.InetAddress) throws java.io.IOException +meth protected abstract int peekData(java.net.DatagramPacket) throws java.io.IOException +meth protected abstract void bind(int,java.net.InetAddress) throws java.net.SocketException +meth protected abstract void close() +meth protected abstract void create() throws java.net.SocketException +meth protected abstract void join(java.net.InetAddress) throws java.io.IOException +meth protected abstract void joinGroup(java.net.SocketAddress,java.net.NetworkInterface) throws java.io.IOException +meth protected abstract void leave(java.net.InetAddress) throws java.io.IOException +meth protected abstract void leaveGroup(java.net.SocketAddress,java.net.NetworkInterface) throws java.io.IOException +meth protected abstract void receive(java.net.DatagramPacket) throws java.io.IOException +meth protected abstract void send(java.net.DatagramPacket) throws java.io.IOException +meth protected abstract void setTTL(byte) throws java.io.IOException + anno 0 java.lang.Deprecated() +meth protected abstract void setTimeToLive(int) throws java.io.IOException +meth protected int getLocalPort() +meth protected java.io.FileDescriptor getFileDescriptor() +meth protected void connect(java.net.InetAddress,int) throws java.net.SocketException +meth protected void disconnect() +supr java.lang.Object + CLSS public java.net.InetSocketAddress cons public init(int) cons public init(java.lang.String,int) @@ -190,6 +284,58 @@ cons public init() intf java.io.Serializable supr java.lang.Object +CLSS public abstract java.net.SocketImpl +cons public init() +fld protected int localport +fld protected int port +fld protected java.io.FileDescriptor fd +fld protected java.net.InetAddress address +intf java.net.SocketOptions +meth protected abstract int available() throws java.io.IOException +meth protected abstract java.io.InputStream getInputStream() throws java.io.IOException +meth protected abstract java.io.OutputStream getOutputStream() throws java.io.IOException +meth protected abstract void accept(java.net.SocketImpl) throws java.io.IOException +meth protected abstract void bind(java.net.InetAddress,int) throws java.io.IOException +meth protected abstract void close() throws java.io.IOException +meth protected abstract void connect(java.lang.String,int) throws java.io.IOException +meth protected abstract void connect(java.net.InetAddress,int) throws java.io.IOException +meth protected abstract void connect(java.net.SocketAddress,int) throws java.io.IOException +meth protected abstract void create(boolean) throws java.io.IOException +meth protected abstract void listen(int) throws java.io.IOException +meth protected abstract void sendUrgentData(int) throws java.io.IOException +meth protected boolean supportsUrgentData() +meth protected int getLocalPort() +meth protected int getPort() +meth protected java.io.FileDescriptor getFileDescriptor() +meth protected java.net.InetAddress getInetAddress() +meth protected void setPerformancePreferences(int,int,int) +meth protected void shutdownInput() throws java.io.IOException +meth protected void shutdownOutput() throws java.io.IOException +meth public java.lang.String toString() +supr java.lang.Object + +CLSS public abstract interface java.net.SocketOption<%0 extends java.lang.Object> +meth public abstract java.lang.Class<{java.net.SocketOption%0}> type() +meth public abstract java.lang.String name() + +CLSS public abstract interface java.net.SocketOptions +fld public final static int IP_MULTICAST_IF = 16 +fld public final static int IP_MULTICAST_IF2 = 31 +fld public final static int IP_MULTICAST_LOOP = 18 +fld public final static int IP_TOS = 3 +fld public final static int SO_BINDADDR = 15 +fld public final static int SO_BROADCAST = 32 +fld public final static int SO_KEEPALIVE = 8 +fld public final static int SO_LINGER = 128 +fld public final static int SO_OOBINLINE = 4099 +fld public final static int SO_RCVBUF = 4098 +fld public final static int SO_REUSEADDR = 4 +fld public final static int SO_SNDBUF = 4097 +fld public final static int SO_TIMEOUT = 4102 +fld public final static int TCP_NODELAY = 1 +meth public abstract java.lang.Object getOption(int) throws java.net.SocketException +meth public abstract void setOption(int,java.lang.Object) throws java.net.SocketException + CLSS public abstract interface java.nio.channels.ByteChannel intf java.nio.channels.ReadableByteChannel intf java.nio.channels.WritableByteChannel @@ -389,89 +535,68 @@ meth public java.net.Socket createSocket() throws java.io.IOException meth public static javax.net.SocketFactory getDefault() supr java.lang.Object -CLSS public final org.newsclub.net.unix.AFUNIXDatagramChannel -intf org.newsclub.net.unix.AFUNIXSocketExtensions -intf org.newsclub.net.unix.AFUNIXSomeSocket -meth protected void implCloseSelectableChannel() throws java.io.IOException -meth protected void implConfigureBlocking(boolean) throws java.io.IOException -meth public !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException -meth public <%0 extends java.lang.Object> org.newsclub.net.unix.AFUNIXDatagramChannel setOption(java.net.SocketOption<{%%0}>,{%%0}) throws java.io.IOException -meth public <%0 extends java.lang.Object> {%%0} getOption(java.net.SocketOption<{%%0}>) throws java.io.IOException -meth public boolean hasOutboundFileDescriptors() -meth public boolean isBound() -meth public boolean isConnected() -meth public boolean isDeleteOnClose() -meth public int getAncillaryReceiveBufferSize() -meth public int read(java.nio.ByteBuffer) throws java.io.IOException -meth public int send(java.nio.ByteBuffer,java.net.SocketAddress) throws java.io.IOException -meth public int write(java.nio.ByteBuffer) throws java.io.IOException -meth public java.io.FileDescriptor getFileDescriptor() throws java.io.IOException -meth public java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException -meth public java.nio.channels.MembershipKey join(java.net.InetAddress,java.net.NetworkInterface) throws java.io.IOException -meth public java.nio.channels.MembershipKey join(java.net.InetAddress,java.net.NetworkInterface,java.net.InetAddress) throws java.io.IOException -meth public java.util.Set> supportedOptions() -meth public long read(java.nio.ByteBuffer[],int,int) throws java.io.IOException -meth public long write(java.nio.ByteBuffer[],int,int) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramChannel bind(java.net.SocketAddress) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramChannel connect(java.net.SocketAddress) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramChannel disconnect() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramSocket socket() -meth public org.newsclub.net.unix.AFUNIXSocketAddress getLocalAddress() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketAddress getRemoteAddress() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketAddress receive(java.nio.ByteBuffer) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXDatagramChannel open() throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXDatagramChannel open(java.net.ProtocolFamily) throws java.io.IOException -meth public void clearReceivedFileDescriptors() -meth public void ensureAncillaryReceiveBufferSize(int) -meth public void setAncillaryReceiveBufferSize(int) -meth public void setDeleteOnClose(boolean) +CLSS public final org.newsclub.net.unix.AFAddressFamily +supr java.lang.Object + +CLSS public abstract org.newsclub.net.unix.AFAddressFamilyConfig<%0 extends org.newsclub.net.unix.AFSocketAddress> +cons protected init() +meth protected abstract java.lang.Class> datagramChannelClass() +meth protected abstract java.lang.Class> datagramSocketClass() +meth protected abstract java.lang.Class> serverSocketClass() +meth protected abstract java.lang.Class> serverSocketChannelClass() +meth protected abstract java.lang.Class> socketClass() +meth protected abstract java.lang.Class> socketChannelClass() +meth protected abstract org.newsclub.net.unix.AFDatagramSocket$Constructor<{org.newsclub.net.unix.AFAddressFamilyConfig%0}> datagramSocketConstructor() +meth protected abstract org.newsclub.net.unix.AFServerSocket$Constructor<{org.newsclub.net.unix.AFAddressFamilyConfig%0}> serverSocketConstructor() +meth protected abstract org.newsclub.net.unix.AFSocket$Constructor<{org.newsclub.net.unix.AFAddressFamilyConfig%0}> socketConstructor() +supr java.lang.Object + +CLSS public abstract org.newsclub.net.unix.AFDatagramChannel +intf org.newsclub.net.unix.AFSocketExtensions +intf org.newsclub.net.unix.AFSomeSocket supr java.nio.channels.DatagramChannel hfds afSocket -CLSS public final org.newsclub.net.unix.AFUNIXDatagramSocket -intf org.newsclub.net.unix.AFUNIXSocketExtensions -intf org.newsclub.net.unix.AFUNIXSomeSocket -meth public !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException -meth public boolean hasOutboundFileDescriptors() -meth public boolean isBound() -meth public boolean isClosed() -meth public boolean isConnected() -meth public boolean isDeleteOnClose() -meth public int getAncillaryReceiveBufferSize() -meth public java.io.FileDescriptor getFileDescriptor() throws java.io.IOException -meth public java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramChannel getChannel() -meth public org.newsclub.net.unix.AFUNIXSocketAddress getLocalSocketAddress() -meth public org.newsclub.net.unix.AFUNIXSocketAddress getRemoteSocketAddress() -meth public org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXDatagramSocket newInstance() throws java.io.IOException -meth public void bind(java.net.SocketAddress) throws java.net.SocketException -meth public void clearReceivedFileDescriptors() -meth public void close() -meth public void connect(java.net.InetAddress,int) -meth public void connect(java.net.SocketAddress) throws java.net.SocketException -meth public void ensureAncillaryReceiveBufferSize(int) -meth public void peek(java.net.DatagramPacket) throws java.io.IOException -meth public void send(java.net.DatagramPacket) throws java.io.IOException -meth public void setAncillaryReceiveBufferSize(int) -meth public void setDeleteOnClose(boolean) +CLSS public abstract org.newsclub.net.unix.AFDatagramSocket +intf org.newsclub.net.unix.AFSocketExtensions +intf org.newsclub.net.unix.AFSomeSocket supr java.net.DatagramSocket hfds WILDCARD_ADDRESS,ancillaryDataSupport,channel,created,deleteOnClose,impl -CLSS public final org.newsclub.net.unix.AFUNIXPipe +CLSS public abstract interface static org.newsclub.net.unix.AFDatagramSocket$Constructor<%0 extends org.newsclub.net.unix.AFSocketAddress> + outer org.newsclub.net.unix.AFDatagramSocket + anno 0 java.lang.FunctionalInterface() +meth public abstract org.newsclub.net.unix.AFDatagramSocket<{org.newsclub.net.unix.AFDatagramSocket$Constructor%0}> newSocket(java.io.FileDescriptor) throws java.io.IOException + +CLSS public abstract org.newsclub.net.unix.AFDatagramSocketImpl +meth protected final void finalize() +supr java.net.DatagramSocketImpl + +CLSS public abstract org.newsclub.net.unix.AFInputStream +intf org.newsclub.net.unix.FileDescriptorAccess +meth public long transferTo(java.io.OutputStream) throws java.io.IOException +supr java.io.InputStream +hfds DEFAULT_BUFFER_SIZE + +CLSS public abstract org.newsclub.net.unix.AFOutputStream +intf org.newsclub.net.unix.FileDescriptorAccess +meth public long transferFrom(java.io.InputStream) throws java.io.IOException +supr java.io.OutputStream +hfds DEFAULT_BUFFER_SIZE + +CLSS public final org.newsclub.net.unix.AFPipe innr public final SinkChannel innr public final SourceChannel intf java.io.Closeable -meth public org.newsclub.net.unix.AFUNIXPipe$SinkChannel sink() -meth public org.newsclub.net.unix.AFUNIXPipe$SourceChannel source() -meth public static org.newsclub.net.unix.AFUNIXPipe open() throws java.io.IOException +meth public org.newsclub.net.unix.AFPipe$SinkChannel sink() +meth public org.newsclub.net.unix.AFPipe$SourceChannel source() +meth public static org.newsclub.net.unix.AFPipe open() throws java.io.IOException meth public void close() throws java.io.IOException supr java.nio.channels.Pipe hfds options,sinkChannel,sinkCore,sourceChannel,sourceCore -CLSS public final org.newsclub.net.unix.AFUNIXPipe$SinkChannel - outer org.newsclub.net.unix.AFUNIXPipe +CLSS public final org.newsclub.net.unix.AFPipe$SinkChannel + outer org.newsclub.net.unix.AFPipe intf org.newsclub.net.unix.FileDescriptorAccess meth protected void implCloseSelectableChannel() throws java.io.IOException meth protected void implConfigureBlocking(boolean) throws java.io.IOException @@ -481,8 +606,8 @@ meth public long write(java.nio.ByteBuffer[]) throws java.io.IOException meth public long write(java.nio.ByteBuffer[],int,int) throws java.io.IOException supr java.nio.channels.Pipe$SinkChannel -CLSS public final org.newsclub.net.unix.AFUNIXPipe$SourceChannel - outer org.newsclub.net.unix.AFUNIXPipe +CLSS public final org.newsclub.net.unix.AFPipe$SourceChannel + outer org.newsclub.net.unix.AFPipe intf org.newsclub.net.unix.FileDescriptorAccess meth protected void implCloseSelectableChannel() throws java.io.IOException meth protected void implConfigureBlocking(boolean) throws java.io.IOException @@ -492,6 +617,216 @@ meth public long read(java.nio.ByteBuffer[]) throws java.io.IOException meth public long read(java.nio.ByteBuffer[],int,int) throws java.io.IOException supr java.nio.channels.Pipe$SourceChannel +CLSS public abstract org.newsclub.net.unix.AFSelectorProvider +supr java.nio.channels.spi.SelectorProvider + +CLSS public abstract org.newsclub.net.unix.AFServerSocket +intf org.newsclub.net.unix.FileDescriptorAccess +supr java.net.ServerSocket + +CLSS public abstract interface org.newsclub.net.unix.AFServerSocket$Constructor + +CLSS public abstract org.newsclub.net.unix.AFServerSocketChannel +intf org.newsclub.net.unix.FileDescriptorAccess +supr java.nio.channels.ServerSocketChannel + +CLSS public abstract org.newsclub.net.unix.AFSocket +intf org.newsclub.net.unix.AFSocketExtensions +intf org.newsclub.net.unix.AFSomeSocket +supr java.net.Socket + +CLSS public abstract interface org.newsclub.net.unix.AFSocket$Constructor + +CLSS public abstract org.newsclub.net.unix.AFSocketAddress +supr java.net.InetSocketAddress +hfds ADDRESS_CACHE,INTERNAL_DUMMY_BIND,INTERNAL_DUMMY_CONNECT,INTERNAL_DUMMY_DONT_CONNECT,SOCKADDR_MAX_LEN,SOCKADDR_NATIVE_DATA_OFFSET,SOCKADDR_NATIVE_FAMILY_OFFSET,SOCKETADDRESS_BUFFER_TL,addressFamily,bytes,inetAddress,nativeAddress,serialVersionUID + +CLSS public abstract interface org.newsclub.net.unix.AFSocketAddress$AFSocketAddressConstructor + +CLSS public abstract org.newsclub.net.unix.AFSocketAddressConfig<%0 extends org.newsclub.net.unix.AFSocketAddress> +cons protected init() +meth protected abstract java.lang.String selectorProviderClassname() +meth protected abstract java.util.Set uriSchemes() +meth protected abstract org.newsclub.net.unix.AFSocketAddress$AFSocketAddressConstructor<{org.newsclub.net.unix.AFSocketAddressConfig%0}> addressConstructor() +meth protected abstract {org.newsclub.net.unix.AFSocketAddressConfig%0} parseURI(java.net.URI,int) throws java.net.SocketException +supr java.lang.Object + +CLSS public abstract interface org.newsclub.net.unix.AFSocketAddressFromHostname<%0 extends org.newsclub.net.unix.AFSocketAddress> +meth public abstract java.net.SocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException +meth public boolean isHostnameSupported(java.lang.String) + +CLSS public final !enum org.newsclub.net.unix.AFSocketCapability +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_ABSTRACT_NAMESPACE +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_ANCILLARY_MESSAGES +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_FD_AS_REDIRECT +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_FILE_DESCRIPTORS +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_NATIVE_SOCKETPAIR +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_PEER_CREDENTIALS +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_TIPC +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_UNIX_DATAGRAMS +fld public final static org.newsclub.net.unix.AFSocketCapability CAPABILITY_UNIX_DOMAIN +meth public static org.newsclub.net.unix.AFSocketCapability valueOf(java.lang.String) +meth public static org.newsclub.net.unix.AFSocketCapability[] values() +supr java.lang.Enum +hfds bitmask + +CLSS public abstract org.newsclub.net.unix.AFSocketChannel +intf org.newsclub.net.unix.AFSocketExtensions +intf org.newsclub.net.unix.AFSomeSocket +supr java.nio.channels.SocketChannel + +CLSS protected abstract interface static org.newsclub.net.unix.AFSocketChannel$AFSocketSupplier<%0 extends org.newsclub.net.unix.AFSocketAddress> + outer org.newsclub.net.unix.AFSocketChannel + anno 0 java.lang.FunctionalInterface() +meth public abstract org.newsclub.net.unix.AFSocket<{org.newsclub.net.unix.AFSocketChannel$AFSocketSupplier%0}> newInstance() throws java.io.IOException + +CLSS public abstract interface org.newsclub.net.unix.AFSocketExtensions +meth public abstract int getAncillaryReceiveBufferSize() +meth public abstract void ensureAncillaryReceiveBufferSize(int) +meth public abstract void setAncillaryReceiveBufferSize(int) + +CLSS public abstract org.newsclub.net.unix.AFSocketFactory<%0 extends org.newsclub.net.unix.AFSocketAddress> +cons protected init() +innr public final static FixedAddressSocketFactory +intf org.newsclub.net.unix.AFSocketAddressFromHostname<{org.newsclub.net.unix.AFSocketFactory%0}> +meth protected abstract java.net.Socket connectTo({org.newsclub.net.unix.AFSocketFactory%0}) throws java.io.IOException +meth protected final boolean isInetAddressSupported(java.net.InetAddress) +meth public abstract java.net.Socket createSocket() throws java.net.SocketException +meth public final java.net.Socket createSocket(java.lang.String,int) throws java.io.IOException +meth public final java.net.Socket createSocket(java.lang.String,int,java.net.InetAddress,int) throws java.io.IOException +meth public final java.net.Socket createSocket(java.net.InetAddress,int) throws java.io.IOException +meth public final java.net.Socket createSocket(java.net.InetAddress,int,java.net.InetAddress,int) throws java.io.IOException +supr javax.net.SocketFactory + +CLSS public final static org.newsclub.net.unix.AFSocketFactory$FixedAddressSocketFactory + outer org.newsclub.net.unix.AFSocketFactory +cons public init(java.net.SocketAddress) +meth protected java.net.Socket connectTo(org.newsclub.net.unix.AFSocketAddress) throws java.io.IOException +meth public boolean isHostnameSupported(java.lang.String) +meth public java.net.Socket createSocket() throws java.net.SocketException +meth public java.net.SocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException +supr org.newsclub.net.unix.AFSocketFactory +hfds forceAddr + +CLSS public abstract org.newsclub.net.unix.AFSocketImpl +meth protected <%0 extends java.lang.Object> void setOption(java.net.SocketOption<{%%0}>,{%%0}) throws java.io.IOException +meth protected <%0 extends java.lang.Object> {%%0} getOption(java.net.SocketOption<{%%0}>) throws java.io.IOException +meth protected final void finalize() +meth protected java.util.Set> supportedOptions() +supr java.net.SocketImpl +hfds SHUTDOWN_RD_WR,SHUT_RD,SHUT_RD_WR,SHUT_WR,addressFamily,ancillaryDataSupport,bound,closedInputStream,closedOutputStream,connected,core,createType,implExtensions,in,out,reuseAddr,shutdownState,socketTimeout + +CLSS public abstract interface org.newsclub.net.unix.AFSocketImplExtensions<%0 extends org.newsclub.net.unix.AFSocketAddress> + +CLSS public final org.newsclub.net.unix.AFSocketOption<%0 extends java.lang.Object> +cons public init(java.lang.String,java.lang.Class<{org.newsclub.net.unix.AFSocketOption%0}>,int,int) +intf java.net.SocketOption<{org.newsclub.net.unix.AFSocketOption%0}> +meth public java.lang.Class<{org.newsclub.net.unix.AFSocketOption%0}> type() +meth public java.lang.String name() +meth public java.lang.String toString() +supr java.lang.Object +hfds level,name,optionName,type + +CLSS public abstract org.newsclub.net.unix.AFSocketPair +supr org.newsclub.net.unix.CloseablePair + +CLSS public final !enum org.newsclub.net.unix.AFSocketProtocol +fld public final static org.newsclub.net.unix.AFSocketProtocol DEFAULT +meth public static org.newsclub.net.unix.AFSocketProtocol valueOf(java.lang.String) +meth public static org.newsclub.net.unix.AFSocketProtocol[] values() +supr java.lang.Enum +hfds id + +CLSS public final !enum org.newsclub.net.unix.AFSocketType +fld public final static org.newsclub.net.unix.AFSocketType SOCK_DGRAM +fld public final static org.newsclub.net.unix.AFSocketType SOCK_RDM +fld public final static org.newsclub.net.unix.AFSocketType SOCK_SEQPACKET +fld public final static org.newsclub.net.unix.AFSocketType SOCK_STREAM +meth public static org.newsclub.net.unix.AFSocketType valueOf(java.lang.String) +meth public static org.newsclub.net.unix.AFSocketType[] values() +supr java.lang.Enum +hfds id + +CLSS public abstract interface org.newsclub.net.unix.AFSomeSocket +intf java.io.Closeable +intf org.newsclub.net.unix.FileDescriptorAccess + +CLSS public final org.newsclub.net.unix.AFTIPCSocketAddress +fld public final static int TIPC_RESERVED_TYPES = 64 +fld public final static int TIPC_TOP_SRV = 1 +innr public final static AddressType +innr public final static Scope +meth public boolean hasFilename() +meth public int getTIPCDomain() +meth public int getTIPCInstance() +meth public int getTIPCLower() +meth public int getTIPCNodeHash() +meth public int getTIPCRef() +meth public int getTIPCType() +meth public int getTIPCUpper() +meth public java.io.File getFile() throws java.io.FileNotFoundException +meth public java.lang.String toString() +meth public java.net.URI toURI(java.lang.String,java.net.URI) throws java.io.IOException +meth public org.newsclub.net.unix.AFTIPCSocketAddress$Scope getScope() +meth public static boolean isSupportedAddress(java.net.InetAddress) +meth public static boolean isSupportedAddress(java.net.SocketAddress) +meth public static org.newsclub.net.unix.AFAddressFamily addressFamily() +meth public static org.newsclub.net.unix.AFTIPCSocketAddress of(java.net.URI) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress of(java.net.URI,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofService(int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofService(int,org.newsclub.net.unix.AFTIPCSocketAddress$Scope,int,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofService(org.newsclub.net.unix.AFTIPCSocketAddress$Scope,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofService(org.newsclub.net.unix.AFTIPCSocketAddress$Scope,int,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofServiceRange(int,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofServiceRange(int,org.newsclub.net.unix.AFTIPCSocketAddress$Scope,int,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofServiceRange(org.newsclub.net.unix.AFTIPCSocketAddress$Scope,int,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofSocket(int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofSocket(int,int,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress ofTopologyService() throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress unwrap(java.lang.String,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress unwrap(java.net.InetAddress,int) throws java.net.SocketException +meth public static org.newsclub.net.unix.AFTIPCSocketAddress unwrap(java.net.SocketAddress) throws java.net.SocketException +supr org.newsclub.net.unix.AFSocketAddress +hfds PAT_TIPC_URI_HOST_AND_PORT,afTipc,serialVersionUID + +CLSS public final org.newsclub.net.unix.AFTIPCSocketAddress$AddressType +supr org.newsclub.net.unix.NamedInteger + +CLSS public final org.newsclub.net.unix.AFTIPCSocketAddress$Scope +supr org.newsclub.net.unix.NamedInteger + +CLSS public final org.newsclub.net.unix.AFTIPCSocketImplExtensions +intf org.newsclub.net.unix.AFSocketImplExtensions +meth public byte[] getTIPCNodeId(int) throws java.io.IOException +meth public int[] getTIPCDestName() +meth public int[] getTIPCErrInfo() +meth public java.lang.String getTIPCLinkName(int,int) throws java.io.IOException +supr java.lang.Object +hfds ancillaryDataSupport + +CLSS public final org.newsclub.net.unix.AFUNIXDatagramChannel +intf org.newsclub.net.unix.AFUNIXSocketExtensions +meth public !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException +meth public boolean hasOutboundFileDescriptors() +meth public java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException +meth public org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException +meth public static org.newsclub.net.unix.AFUNIXDatagramChannel open() throws java.io.IOException +meth public static org.newsclub.net.unix.AFUNIXDatagramChannel open(java.net.ProtocolFamily) throws java.io.IOException +meth public void clearReceivedFileDescriptors() +supr org.newsclub.net.unix.AFDatagramChannel + +CLSS public final org.newsclub.net.unix.AFUNIXDatagramSocket +intf org.newsclub.net.unix.AFUNIXSocketExtensions +meth protected org.newsclub.net.unix.AFUNIXDatagramChannel newChannel() +meth public !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException +meth public boolean hasOutboundFileDescriptors() +meth public java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException +meth public org.newsclub.net.unix.AFUNIXDatagramChannel getChannel() +meth public org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException +meth public static org.newsclub.net.unix.AFUNIXDatagramSocket newInstance() throws java.io.IOException +meth public void clearReceivedFileDescriptors() +supr org.newsclub.net.unix.AFDatagramSocket + CLSS public final !enum org.newsclub.net.unix.AFUNIXProtocolFamily fld public final static org.newsclub.net.unix.AFUNIXProtocolFamily UNIX intf java.net.ProtocolFamily @@ -500,134 +835,50 @@ meth public static org.newsclub.net.unix.AFUNIXProtocolFamily[] values() supr java.lang.Enum CLSS public final org.newsclub.net.unix.AFUNIXSelectorProvider -meth public java.nio.channels.spi.AbstractSelector openSelector() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramChannel openDatagramChannel() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXDatagramChannel openDatagramChannel(java.net.ProtocolFamily) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXPipe openPipe() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXPipe openSelectablePipe() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXServerSocketChannel openServerSocketChannel() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXServerSocketChannel openServerSocketChannel(java.net.SocketAddress) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketChannel openSocketChannel() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketChannel openSocketChannel(java.net.SocketAddress) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketPair openDatagramChannelPair() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketPair openSocketChannelPair() throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXSelectorProvider getInstance() -meth public static org.newsclub.net.unix.AFUNIXSelectorProvider provider() -supr java.nio.channels.spi.SelectorProvider -hfds INSTANCE +supr org.newsclub.net.unix.AFSelectorProvider CLSS public org.newsclub.net.unix.AFUNIXServerSocket cons protected init() throws java.io.IOException -intf org.newsclub.net.unix.FileDescriptorAccess +meth protected org.newsclub.net.unix.AFSocketImpl newImpl(java.io.FileDescriptor) throws java.net.SocketException +meth protected org.newsclub.net.unix.AFUNIXServerSocketChannel newChannel() meth protected org.newsclub.net.unix.AFUNIXSocket newSocketInstance() throws java.io.IOException -meth public boolean isBound() -meth public boolean isClosed() -meth public boolean isDeleteOnClose() -meth public int getLocalPort() -meth public java.io.FileDescriptor getFileDescriptor() throws java.io.IOException -meth public java.lang.String toString() meth public org.newsclub.net.unix.AFUNIXServerSocketChannel getChannel() meth public org.newsclub.net.unix.AFUNIXSocket accept() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketAddress getLocalSocketAddress() -meth public static boolean isSupported() meth public static org.newsclub.net.unix.AFUNIXServerSocket bindOn(java.io.File,boolean) throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXServerSocket bindOn(java.nio.file.Path,boolean) throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXServerSocket bindOn(org.newsclub.net.unix.AFUNIXSocketAddress) throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXServerSocket bindOn(org.newsclub.net.unix.AFUNIXSocketAddress,boolean) throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXServerSocket forceBindOn(org.newsclub.net.unix.AFUNIXSocketAddress) throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXServerSocket newInstance() throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXServerSocket newInstance(java.io.FileDescriptor,int,int) throws java.io.IOException -meth public void addCloseable(java.io.Closeable) -meth public void bind(java.net.SocketAddress,int) throws java.io.IOException -meth public void close() throws java.io.IOException -meth public void removeCloseable(java.io.Closeable) -meth public void setDeleteOnClose(boolean) -supr java.net.ServerSocket -hfds boundEndpoint,channel,closeables,created,deleteOnClose,implementation +supr org.newsclub.net.unix.AFServerSocket CLSS public final org.newsclub.net.unix.AFUNIXServerSocketChannel -intf org.newsclub.net.unix.FileDescriptorAccess -meth protected void implCloseSelectableChannel() throws java.io.IOException -meth protected void implConfigureBlocking(boolean) throws java.io.IOException -meth public <%0 extends java.lang.Object> org.newsclub.net.unix.AFUNIXServerSocketChannel setOption(java.net.SocketOption<{%%0}>,{%%0}) throws java.io.IOException -meth public <%0 extends java.lang.Object> {%%0} getOption(java.net.SocketOption<{%%0}>) throws java.io.IOException -meth public java.io.FileDescriptor getFileDescriptor() throws java.io.IOException -meth public java.util.Set> supportedOptions() -meth public org.newsclub.net.unix.AFUNIXServerSocket socket() -meth public org.newsclub.net.unix.AFUNIXServerSocketChannel bind(java.net.SocketAddress,int) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketAddress getLocalAddress() throws java.io.IOException meth public org.newsclub.net.unix.AFUNIXSocketChannel accept() throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXServerSocketChannel open() throws java.io.IOException -supr java.nio.channels.ServerSocketChannel -hfds afSocket +supr org.newsclub.net.unix.AFServerSocketChannel CLSS public final org.newsclub.net.unix.AFUNIXSocket intf org.newsclub.net.unix.AFUNIXSocketExtensions -intf org.newsclub.net.unix.AFUNIXSomeSocket +meth protected org.newsclub.net.unix.AFUNIXSocketChannel newChannel() meth public !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException meth public boolean hasOutboundFileDescriptors() -meth public boolean isBound() -meth public boolean isClosed() -meth public boolean isConnected() -meth public int getAncillaryReceiveBufferSize() -meth public java.io.FileDescriptor getFileDescriptor() throws java.io.IOException meth public java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException -meth public java.lang.String toString() -meth public org.newsclub.net.unix.AFUNIXSocketAddress getLocalSocketAddress() -meth public org.newsclub.net.unix.AFUNIXSocketAddress getRemoteSocketAddress() meth public org.newsclub.net.unix.AFUNIXSocketChannel getChannel() meth public org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException meth public static boolean isSupported() -meth public static boolean supports(org.newsclub.net.unix.AFUNIXSocketCapability) -meth public static java.lang.String getLoadedLibrary() -meth public static java.lang.String getVersion() meth public static org.newsclub.net.unix.AFUNIXSocket connectTo(org.newsclub.net.unix.AFUNIXSocketAddress) throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXSocket newInstance() throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXSocket newStrictInstance() throws java.io.IOException meth public static void main(java.lang.String[]) -meth public void addCloseable(java.io.Closeable) -meth public void bind(java.net.SocketAddress) throws java.io.IOException meth public void clearReceivedFileDescriptors() -meth public void close() throws java.io.IOException -meth public void connect(java.net.SocketAddress) throws java.io.IOException -meth public void connect(java.net.SocketAddress,int) throws java.io.IOException -meth public void ensureAncillaryReceiveBufferSize(int) -meth public void removeCloseable(java.io.Closeable) -meth public void setAncillaryReceiveBufferSize(int) -supr java.net.Socket -hfds capabilities,channel,closeables,created,impl,loadedLibrary,socketFactory +supr org.newsclub.net.unix.AFSocket +hfds CONSTRUCTOR_STRICT CLSS public final org.newsclub.net.unix.AFUNIXSocketAddress -cons public init(byte[]) throws java.net.SocketException -cons public init(byte[],int) throws java.net.SocketException -cons public init(java.io.File) throws java.net.SocketException -cons public init(java.io.File,int) throws java.net.SocketException -meth public boolean hasFilename() -meth public boolean isInAbstractNamespace() -meth public byte[] getPathAsBytes() -meth public java.io.File getFile() throws java.io.FileNotFoundException -meth public java.lang.String getPath() -meth public java.lang.String toString() -meth public java.net.InetAddress wrapAddress() -meth public static boolean isSupportedAddress(java.net.InetAddress) -meth public static boolean isSupportedAddress(java.net.SocketAddress) -meth public static java.nio.charset.Charset addressCharset() -meth public static org.newsclub.net.unix.AFUNIXSocketAddress inAbstractNamespace(java.lang.String) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress inAbstractNamespace(java.lang.String,int) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress of(byte[]) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress of(byte[],int) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress of(java.io.File) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress of(java.io.File,int) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress of(java.nio.file.Path) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress of(java.nio.file.Path,int) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress ofNewTempFile() throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress ofNewTempPath(int) throws java.io.IOException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress unwrap(java.net.InetAddress,int) throws java.net.SocketException -meth public static org.newsclub.net.unix.AFUNIXSocketAddress unwrap(java.net.SocketAddress) throws java.net.SocketException -supr java.net.InetSocketAddress -hfds ADDRESS_CACHE,ADDRESS_CHARSET,INTERNAL_DUMMY_BIND,INTERNAL_DUMMY_CONNECT,INTERNAL_DUMMY_DONT_CONNECT,SOCKADDR_UN_LENGTH,SOCKETADDRESS_BUFFER_TL,bytes,inetAddress,serialVersionUID +supr org.newsclub.net.unix.AFSocketAddress CLSS public final !enum org.newsclub.net.unix.AFUNIXSocketCapability + anno 0 java.lang.Deprecated() fld public final static org.newsclub.net.unix.AFUNIXSocketCapability CAPABILITY_ABSTRACT_NAMESPACE fld public final static org.newsclub.net.unix.AFUNIXSocketCapability CAPABILITY_ANCILLARY_MESSAGES fld public final static org.newsclub.net.unix.AFUNIXSocketCapability CAPABILITY_DATAGRAMS @@ -641,40 +892,14 @@ hfds bitmask CLSS public final org.newsclub.net.unix.AFUNIXSocketChannel intf org.newsclub.net.unix.AFUNIXSocketExtensions -intf org.newsclub.net.unix.AFUNIXSomeSocket -meth protected void implCloseSelectableChannel() throws java.io.IOException -meth protected void implConfigureBlocking(boolean) throws java.io.IOException meth public !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException -meth public <%0 extends java.lang.Object> org.newsclub.net.unix.AFUNIXSocketChannel setOption(java.net.SocketOption<{%%0}>,{%%0}) throws java.io.IOException -meth public <%0 extends java.lang.Object> {%%0} getOption(java.net.SocketOption<{%%0}>) throws java.io.IOException -meth public boolean connect(java.net.SocketAddress) throws java.io.IOException -meth public boolean finishConnect() throws java.io.IOException meth public boolean hasOutboundFileDescriptors() -meth public boolean isConnected() -meth public boolean isConnectionPending() -meth public int getAncillaryReceiveBufferSize() -meth public int read(java.nio.ByteBuffer) throws java.io.IOException -meth public int write(java.nio.ByteBuffer) throws java.io.IOException -meth public java.io.FileDescriptor getFileDescriptor() throws java.io.IOException meth public java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException -meth public java.lang.String toString() -meth public java.util.Set> supportedOptions() -meth public long read(java.nio.ByteBuffer[],int,int) throws java.io.IOException -meth public long write(java.nio.ByteBuffer[],int,int) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocket socket() -meth public org.newsclub.net.unix.AFUNIXSocketAddress getLocalAddress() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketAddress getRemoteAddress() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketChannel bind(java.net.SocketAddress) throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketChannel shutdownInput() throws java.io.IOException -meth public org.newsclub.net.unix.AFUNIXSocketChannel shutdownOutput() throws java.io.IOException meth public org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXSocketChannel open() throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXSocketChannel open(java.net.SocketAddress) throws java.io.IOException meth public void clearReceivedFileDescriptors() -meth public void ensureAncillaryReceiveBufferSize(int) -meth public void setAncillaryReceiveBufferSize(int) -supr java.nio.channels.SocketChannel -hfds afSocket,connectPending +supr org.newsclub.net.unix.AFSocketChannel CLSS public final org.newsclub.net.unix.AFUNIXSocketCredentials fld public final static org.newsclub.net.unix.AFUNIXSocketCredentials SAME_PROCESS @@ -693,67 +918,56 @@ supr java.lang.Object hfds gids,pid,serialVersionUID,uid,uuid CLSS public abstract interface org.newsclub.net.unix.AFUNIXSocketExtensions +intf org.newsclub.net.unix.AFSocketExtensions meth public abstract !varargs void setOutboundFileDescriptors(java.io.FileDescriptor[]) throws java.io.IOException meth public abstract boolean hasOutboundFileDescriptors() -meth public abstract int getAncillaryReceiveBufferSize() meth public abstract java.io.FileDescriptor[] getReceivedFileDescriptors() throws java.io.IOException meth public abstract org.newsclub.net.unix.AFUNIXSocketCredentials getPeerCredentials() throws java.io.IOException meth public abstract void clearReceivedFileDescriptors() -meth public abstract void ensureAncillaryReceiveBufferSize(int) -meth public abstract void setAncillaryReceiveBufferSize(int) CLSS public abstract org.newsclub.net.unix.AFUNIXSocketFactory -cons public init() +cons protected init() innr public final static FactoryArg innr public final static SystemProperty innr public final static URIScheme -meth protected abstract org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException -meth protected boolean isHostnameSupported(java.lang.String) -meth protected boolean isInetAddressSupported(java.net.InetAddress) +meth protected org.newsclub.net.unix.AFUNIXSocket connectTo(org.newsclub.net.unix.AFUNIXSocketAddress) throws java.io.IOException meth public java.net.Socket createSocket() throws java.net.SocketException -meth public java.net.Socket createSocket(java.lang.String,int) throws java.io.IOException -meth public java.net.Socket createSocket(java.lang.String,int,java.net.InetAddress,int) throws java.io.IOException -meth public java.net.Socket createSocket(java.net.InetAddress,int) throws java.io.IOException -meth public java.net.Socket createSocket(java.net.InetAddress,int,java.net.InetAddress,int) throws java.io.IOException -supr javax.net.SocketFactory +supr org.newsclub.net.unix.AFSocketFactory hcls DefaultSocketHostnameSocketFactory CLSS public final static org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg outer org.newsclub.net.unix.AFUNIXSocketFactory cons public init(java.io.File) cons public init(java.lang.String) -meth protected final boolean isHostnameSupported(java.lang.String) -meth protected org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException +meth public final boolean isHostnameSupported(java.lang.String) +meth public org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException supr org.newsclub.net.unix.AFUNIXSocketFactory hfds socketFile CLSS public final static org.newsclub.net.unix.AFUNIXSocketFactory$SystemProperty outer org.newsclub.net.unix.AFUNIXSocketFactory cons public init() -meth protected final boolean isHostnameSupported(java.lang.String) -meth protected org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException +meth public final boolean isHostnameSupported(java.lang.String) +meth public org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException supr org.newsclub.net.unix.AFUNIXSocketFactory hfds PROP_SOCKET_DEFAULT CLSS public final static org.newsclub.net.unix.AFUNIXSocketFactory$URIScheme outer org.newsclub.net.unix.AFUNIXSocketFactory cons public init() -meth protected boolean isHostnameSupported(java.lang.String) -meth protected org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException +meth public boolean isHostnameSupported(java.lang.String) +meth public org.newsclub.net.unix.AFUNIXSocketAddress addressFromHost(java.lang.String,int) throws java.net.SocketException supr org.newsclub.net.unix.AFUNIXSocketFactory hfds FILE_SCHEME_LOCALHOST,FILE_SCHEME_PREFIX,FILE_SCHEME_PREFIX_ENCODED -CLSS public final org.newsclub.net.unix.AFUNIXSocketPair<%0 extends org.newsclub.net.unix.AFUNIXSomeSocket> +CLSS public final org.newsclub.net.unix.AFUNIXSocketPair<%0 extends org.newsclub.net.unix.AFSomeSocket> meth public static org.newsclub.net.unix.AFUNIXSocketPair openDatagram() throws java.io.IOException meth public static org.newsclub.net.unix.AFUNIXSocketPair open() throws java.io.IOException -meth public {org.newsclub.net.unix.AFUNIXSocketPair%0} getSocket1() -meth public {org.newsclub.net.unix.AFUNIXSocketPair%0} getSocket2() -supr java.lang.Object -hfds socket1,socket2 +supr org.newsclub.net.unix.AFSocketPair<{org.newsclub.net.unix.AFUNIXSocketPair%0}> -CLSS public abstract interface org.newsclub.net.unix.AFUNIXSomeSocket +CLSS public org.newsclub.net.unix.CloseablePair intf java.io.Closeable -intf org.newsclub.net.unix.FileDescriptorAccess +supr java.lang.Object CLSS public final org.newsclub.net.unix.Closeables cons public !varargs init(java.io.Closeable[]) @@ -772,14 +986,45 @@ CLSS public abstract interface org.newsclub.net.unix.FileDescriptorAccess meth public abstract java.io.FileDescriptor getFileDescriptor() throws java.io.IOException CLSS public final org.newsclub.net.unix.FileDescriptorCast -meth public <%0 extends java.lang.Object> {%%0} as(java.lang.Class<{%%0}>) throws java.io.IOException -meth public boolean isAvailable(java.lang.Class) throws java.io.IOException -meth public java.io.FileDescriptor getFileDescriptor() -meth public java.util.Set> availableTypes() -meth public org.newsclub.net.unix.FileDescriptorCast withLocalPort(int) -meth public org.newsclub.net.unix.FileDescriptorCast withRemotePort(int) -meth public static org.newsclub.net.unix.FileDescriptorCast using(java.io.FileDescriptor) throws java.io.IOException +intf org.newsclub.net.unix.FileDescriptorAccess supr java.lang.Object -hfds GLOBAL_PROVIDERS,GLOBAL_PROVIDERS_FINAL,PRIMARY_TYPE_PROVIDERS_MAP,cpm,fdObj,localPort,remotePort -hcls CastingProvider,CastingProviderMap +hfds FD_IS_PROVIDER,GLOBAL_PROVIDERS,GLOBAL_PROVIDERS_FINAL,PRIMARY_TYPE_PROVIDERS_MAP,cpm,fdObj,localPort,remotePort + +CLSS public final org.newsclub.net.unix.HostAndPort +cons public init(java.lang.String,int) +meth public boolean equals(java.lang.Object) +meth public int getPort() +meth public int hashCode() +meth public java.lang.String getHostname() +meth public java.lang.String toString() +meth public java.net.URI toURI(java.lang.String) +meth public java.net.URI toURI(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) +meth public java.net.URI toURI(java.lang.String,java.net.URI) +meth public static org.newsclub.net.unix.HostAndPort parseFrom(java.net.URI) throws java.net.SocketException +supr java.lang.Object +hfds PAT_HOST_AND_PORT,hostname,port + +CLSS public org.newsclub.net.unix.NamedInteger +intf java.io.Serializable +supr java.lang.Object +hfds id,name,serialVersionUID + +CLSS public abstract interface static org.newsclub.net.unix.NamedInteger$HasOfValue + outer org.newsclub.net.unix.NamedInteger + +CLSS protected abstract interface static org.newsclub.net.unix.NamedInteger$UndefinedValueConstructor<%0 extends org.newsclub.net.unix.NamedInteger> + outer org.newsclub.net.unix.NamedInteger + anno 0 java.lang.FunctionalInterface() +meth public abstract {org.newsclub.net.unix.NamedInteger$UndefinedValueConstructor%0} newInstance(int) + +CLSS public abstract org.newsclub.net.unix.NamedIntegerBitmask +intf java.io.Serializable +supr java.lang.Object +hfds flags,name,serialVersionUID + +CLSS public abstract interface org.newsclub.net.unix.NamedIntegerBitmask$Constructor + +CLSS public abstract interface org.newsclub.net.unix.SocketAddressFilter + anno 0 java.lang.FunctionalInterface() +meth public abstract java.net.SocketAddress apply(java.net.SocketAddress) throws java.io.IOException diff --git a/ide/libs.c.kohlschutter.junixsocket/nbproject/project.properties b/ide/libs.c.kohlschutter.junixsocket/nbproject/project.properties index 3d7b2dafedbe..f61dba9cd0b3 100644 --- a/ide/libs.c.kohlschutter.junixsocket/nbproject/project.properties +++ b/ide/libs.c.kohlschutter.junixsocket/nbproject/project.properties @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. -release.external/junixsocket-common-2.4.0.jar=modules/ext/junixsocket-common-2.4.0.jar -release.external/junixsocket-native-common-2.4.0.jar=modules/ext/junixsocket-native-common-2.4.0.jar -release.external/junixsocket-native-common-2.4.0.jar!/lib/x86_64-MacOSX-clang/jni/libjunixsocket-native-2.4.0.dylib=modules/lib/x86_64/libjunixsocket-native-2.4.0.dylib -release.external/junixsocket-native-common-2.4.0.jar!/lib/aarch64-MacOSX-clang/jni/libjunixsocket-native-2.4.0.dylib=modules/lib/aarch64/libjunixsocket-native-2.4.0.dylib -release.external/junixsocket-native-common-2.4.0.jar!/lib/amd64-Linux-clang/jni/libjunixsocket-native-2.4.0.so=modules/lib/amd64/linux/libjunixsocket-native-2.4.0.so -release.external/junixsocket-native-common-2.4.0.jar!/lib/aarch64-Linux-clang/jni/libjunixsocket-native-2.4.0.so=modules/lib/aarch64/linux/libjunixsocket-native-2.4.0.so -release.external/junixsocket-native-common-2.4.0.jar!/lib/riscv64-Linux-clang/jni/libjunixsocket-native-2.4.0.so=modules/lib/riscv64/linux/libjunixsocket-native-2.4.0.so -release.external/junixsocket-native-common-2.4.0.jar!/lib/amd64-Windows10-clang/jni/junixsocket-native-2.4.0.dll=modules/lib/amd64/junixsocket-native-2.4.0.dll +release.external/junixsocket-common-2.5.1.jar=modules/ext/junixsocket-common-2.5.1.jar +release.external/junixsocket-native-common-2.5.1.jar=modules/ext/junixsocket-native-common-2.5.1.jar +release.external/junixsocket-native-common-2.5.1.jar!/lib/x86_64-MacOSX-clang/jni/libjunixsocket-native-2.5.1.dylib=modules/lib/x86_64/libjunixsocket-native-2.5.1.dylib +release.external/junixsocket-native-common-2.5.1.jar!/lib/aarch64-MacOSX-clang/jni/libjunixsocket-native-2.5.1.dylib=modules/lib/aarch64/libjunixsocket-native-2.5.1.dylib +release.external/junixsocket-native-common-2.5.1.jar!/lib/amd64-Linux-clang/jni/libjunixsocket-native-2.5.1.so=modules/lib/amd64/linux/libjunixsocket-native-2.5.1.so +release.external/junixsocket-native-common-2.5.1.jar!/lib/aarch64-Linux-clang/jni/libjunixsocket-native-2.5.1.so=modules/lib/aarch64/linux/libjunixsocket-native-2.5.1.so +release.external/junixsocket-native-common-2.5.1.jar!/lib/riscv64-Linux-clang/jni/libjunixsocket-native-2.5.1.so=modules/lib/riscv64/linux/libjunixsocket-native-2.5.1.so +release.external/junixsocket-native-common-2.5.1.jar!/lib/amd64-Windows10-clang/jni/junixsocket-native-2.5.1.dll=modules/lib/amd64/junixsocket-native-2.5.1.dll +release.external/junixsocket-native-common-2.5.1.jar!/lib/aarch64-Windows10-clang/jni/junixsocket-native-2.5.1.dll=modules/lib/aarch64/junixsocket-native-2.5.1.dll jnlp.verify.excludes=\ - modules/lib/x86_64/libjunixsocket-native-2.4.0.dylib,\ - modules/lib/aarch64/libjunixsocket-native-2.4.0.dylib,\ - modules/lib/amd64/linux/libjunixsocket-native-2.4.0.so,\ - modules/lib/aarch64/linux/libjunixsocket-native-2.4.0.so,\ - modules/lib/riscv64/linux/libjunixsocket-native-2.4.0.so,\ - modules/lib/amd64/junixsocket-native-2.4.0.dll + modules/lib/x86_64/libjunixsocket-native-2.5.1.dylib,\ + modules/lib/aarch64/libjunixsocket-native-2.5.1.dylib,\ + modules/lib/amd64/linux/libjunixsocket-native-2.5.1.so,\ + modules/lib/aarch64/linux/libjunixsocket-native-2.5.1.so,\ + modules/lib/riscv64/linux/libjunixsocket-native-2.5.1.so,\ + modules/lib/amd64/junixsocket-native-2.5.1.dll,\ + modules/lib/aarch64/junixsocket-native-2.5.1.dll is.autoload=true diff --git a/ide/libs.c.kohlschutter.junixsocket/nbproject/project.xml b/ide/libs.c.kohlschutter.junixsocket/nbproject/project.xml index 15f1fcddcdfd..1fc741ec8ad6 100644 --- a/ide/libs.c.kohlschutter.junixsocket/nbproject/project.xml +++ b/ide/libs.c.kohlschutter.junixsocket/nbproject/project.xml @@ -29,12 +29,12 @@ org.newsclub.net.unix - ext/junixsocket-native-common-2.4.0.jar - external/junixsocket-native-common-2.4.0.jar + ext/junixsocket-native-common-2.5.1.jar + external/junixsocket-native-common-2.5.1.jar - ext/junixsocket-common-2.4.0.jar - external/junixsocket-common-2.4.0.jar + ext/junixsocket-common-2.5.1.jar + external/junixsocket-common-2.5.1.jar From 9d1707ac37f08764d07e07fac718fd9796f54551 Mon Sep 17 00:00:00 2001 From: Laszlo Kishalmi Date: Thu, 4 Aug 2022 13:27:24 -0700 Subject: [PATCH 5/5] Removed unnecessary GroovyBreakpointAnnotationListener --- .../GroovyBreakpointAnnotationListener.java | 144 ------------------ 1 file changed, 144 deletions(-) delete mode 100644 groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java diff --git a/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java b/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java deleted file mode 100644 index d413e9e9bc28..000000000000 --- a/groovy/groovy.debug/src/org/netbeans/modules/groovy/debug/GroovyBreakpointAnnotationListener.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.netbeans.modules.groovy.debug; - -import java.beans.PropertyChangeEvent; -import java.util.HashMap; -import java.util.Iterator; -import org.netbeans.api.debugger.Breakpoint; -import org.netbeans.api.debugger.DebuggerEngine; -import org.netbeans.api.debugger.DebuggerManager; -import org.netbeans.api.debugger.DebuggerManagerAdapter; -import org.netbeans.api.debugger.LazyDebuggerManagerListener; -import org.netbeans.api.debugger.jpda.JPDADebugger; -import org.netbeans.api.debugger.jpda.LineBreakpoint; -import org.netbeans.spi.debugger.DebuggerServiceRegistration; - -/** - * Listens on {@org.netbeans.api.debugger.DebuggerManager} on - * {@link org.netbeans.api.debugger.DebuggerManager#PROP_BREAKPOINTS} - * property and annotates - * Groovy breakpoints in NetBeans editor. - * - * @author Martin Grebac - * @author Martin Adamek - */ -@DebuggerServiceRegistration(types=LazyDebuggerManagerListener.class) -public class GroovyBreakpointAnnotationListener extends DebuggerManagerAdapter { - - private final HashMap breakpointToAnnotation = new HashMap<>(); - private boolean listen = true; - - @Override - public String[] getProperties () { - return new String[] {DebuggerManager.PROP_BREAKPOINTS}; - } - - @Override - public void propertyChange (PropertyChangeEvent e) { - String propertyName = e.getPropertyName (); - if (propertyName == null) { - return; - } - if (!listen) return; - if ( (!propertyName.equals (LineBreakpoint.PROP_CONDITION)) && - (!propertyName.equals (LineBreakpoint.PROP_URL)) && - (!propertyName.equals (LineBreakpoint.PROP_LINE_NUMBER)) && - (!propertyName.equals (LineBreakpoint.PROP_ENABLED)) - ) { - return; - } - LineBreakpoint b = (LineBreakpoint) e.getSource (); - annotate (b); - } - - @Override - public void breakpointAdded (Breakpoint b) { - if (b instanceof LineBreakpoint) { - LineBreakpoint lb = (LineBreakpoint) b; - if (GroovyBreakpointStratifier.GROOVY_STRATUM.equals(lb.getStratum())) { - lb.addPropertyChangeListener (this); - annotate(lb); - } - } - } - - @Override - public void breakpointRemoved (Breakpoint b) { - if (b instanceof LineBreakpoint) { - LineBreakpoint lb = (LineBreakpoint) b; - if (GroovyBreakpointStratifier.GROOVY_STRATUM.equals(lb.getStratum())) { - lb.removePropertyChangeListener (this); - removeAnnotation(lb); - } - } - } - - private void annotate (LineBreakpoint b) { - // remove old annotation - Object annotation = breakpointToAnnotation.get (b); - if (annotation != null) { - Context.removeAnnotation (annotation); - } - if (b.isHidden ()) { - return; - } - - // add new one - annotation = Context.annotate (b); - if (annotation == null) { - return; - } - - breakpointToAnnotation.put (b, annotation); - - DebuggerEngine de = DebuggerManager.getDebuggerManager().getCurrentEngine (); - Object timeStamp = null; - if (de != null) { - timeStamp = de.lookupFirst (null, JPDADebugger.class); - } - update (b, timeStamp); - } - - public void updateGroovyLineBreakpoints () { - Iterator it = breakpointToAnnotation.keySet ().iterator (); - while (it.hasNext ()) { - LineBreakpoint lb = it.next(); - update (lb, null); - } - } - - private void update (LineBreakpoint b, Object timeStamp) { - Object annotation = breakpointToAnnotation.get (b); - if (annotation == null) { - return; - } - int ln = Context.getLineNumber (annotation, timeStamp); - listen = false; - b.setLineNumber (ln); - listen = true; - } - - private void removeAnnotation(LineBreakpoint b) { - Object annotation = breakpointToAnnotation.remove (b); - if (annotation != null) { - Context.removeAnnotation (annotation); - } - } -}