[jira] [Closed] (NETBEANS-5699) Testcases failing with JDK17 in java.editor
[ https://issues.apache.org/jira/browse/NETBEANS-5699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sandeep Mishra closed NETBEANS-5699. Resolution: Fixed > Testcases failing with JDK17 in java.editor > --- > > Key: NETBEANS-5699 > URL: https://issues.apache.org/jira/browse/NETBEANS-5699 > Project: NetBeans > Issue Type: Bug > Components: java - Editor, java - Hints >Affects Versions: 12.4 >Reporter: Sandeep Mishra >Assignee: Sandeep Mishra >Priority: Major > Labels: pull-request-available > Time Spent: 20m > Remaining Estimate: 0h > > Testcase: > *testModelToViewAtBoundaries*(org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest): > Caused an ERROR > [junit] null > [junit] java.lang.reflect.InvocationTargetException > [junit] at > java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1368) > [junit] at > java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1343) > [junit] at > java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1479) > [junit] at > org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest.testModelToViewAtBoundaries(JavaViewHierarchyRandomTest.java:162) > [junit] at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) > [junit] at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [junit] at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77) > [junit] at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476) > [junit] at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402) > [junit] at java.base/java.lang.Thread.run(Thread.java:831) > [junit] Caused by: java.lang.IllegalStateException: > javax.swing.text.BadLocationException: Invalid position > [junit] at > org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.run(JavaViewHierarchyRandomTest.java:173) > [junit] at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308) > [junit] at > java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) > [junit] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) > [junit] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) > [junit] at > java.base/java.security.AccessController.doPrivileged(AccessController.java:391) > [junit] at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) > [junit] at > java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) > [junit] at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > [junit] at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > [junit] at > java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) > [junit] at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) > [junit] at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) > [junit] at > java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) > [junit] Caused by: javax.swing.text.BadLocationException: Invalid position > [junit] at > java.desktop/javax.swing.plaf.basic.BasicTextUI.getNextVisualPositionFrom(BasicTextUI.java:1202) > [junit] at > org.netbeans.editor.BaseTextUI.getNextVisualPositionFrom(BaseTextUI.java:339) > [junit] at > org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.getNextVisualPositionFrom(JavaViewHierarchyRandomTest.java:183) > [junit] at > org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.run(JavaViewHierarchyRandomTest.java:171) > [junit] > [junit] > [junit] Test > org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest FAILED > > Testcase: > *testException*(org.netbeans.api.java.source.test.support.MemoryValidator): > FAILED > [junit] > expected: ]javax.swing.text.Ele...> but was: > [junit] junit.framework.ComparisonFailure: > expected: ]javax.swing.text.Ele...> but was: > [junit] at > org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:454) > [junit] at > org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:422) > [junit] at > org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:399) > [junit] at > org.netbeans.modules.java.editor.imports.ComputeImportsTest.testException(ComputeImportsTest.java:158) > [junit] at > java.base/jdk.internal.reflect.NativeMethodAccess
[netbeans] branch master updated: Filter source roots to avoids clashes between moule-info files.
This is an automated email from the ASF dual-hosted git repository. lkishalmi pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new efd05e33dc Filter source roots to avoids clashes between moule-info files. efd05e33dc is described below commit efd05e33dc04ce834d09876d411f0ea7ec9cece6 Author: Jan Lahoda AuthorDate: Mon Apr 4 06:22:16 2022 +0200 Filter source roots to avoids clashes between moule-info files. --- .../modules/java/platform/classpath/PlatformClassPathProvider.java | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/java.platform/src/org/netbeans/modules/java/platform/classpath/PlatformClassPathProvider.java b/java/java.platform/src/org/netbeans/modules/java/platform/classpath/PlatformClassPathProvider.java index 699211eae6..ccfdbb5749 100644 --- a/java/java.platform/src/org/netbeans/modules/java/platform/classpath/PlatformClassPathProvider.java +++ b/java/java.platform/src/org/netbeans/modules/java/platform/classpath/PlatformClassPathProvider.java @@ -78,9 +78,13 @@ public class PlatformClassPathProvider implements ClassPathProvider { ClassPath libraryPath = jp.getStandardLibraries(); ClassPath sourcePath = jp.getSourceFolders(); FileObject root = null; +boolean jdk9 = JAVA_9.compareTo(jp.getSpecification().getVersion()) <= 0; if (ClassPath.SOURCE.equals(type) && sourcePath != null && (root = sourcePath.findOwnerRoot(fo))!=null) { this.setLastUsedPlatform (root,jp); +if (jdk9) { +return ClassPathSupport.createClassPath(root); +} return sourcePath; } else if (ClassPath.BOOT.equals(type) && (root = getArtefactOwner(fo, bootClassPath, libraryPath, sourcePath)) != null ) { @@ -96,7 +100,7 @@ public class PlatformClassPathProvider implements ClassPathProvider { return this.getEmptyClassPath (); } } else if (JavaClassPathConstants.MODULE_BOOT_PATH.equals(type) && -JAVA_9.compareTo(jp.getSpecification().getVersion()) <= 0 && +jdk9 && (root = getArtefactOwner(fo, bootClassPath, libraryPath, sourcePath)) != null) { this.setLastUsedPlatform (root,jp); return bootClassPath; - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: PHPStan alternative configuration file
This is an automated email from the ASF dual-hosted git repository. junichi11 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new f9e22f8097 PHPStan alternative configuration file new cd760a40fc Merge pull request #3963 from KacerCZ/phpstan-config-file f9e22f8097 is described below commit f9e22f809787ea483b41691be1a2f482d0672de2 Author: Tomas Prochazka AuthorDate: Mon Apr 11 21:23:55 2022 +0200 PHPStan alternative configuration file This change adds `phpstan.dist.neon` to Important files. PHPStan 1.4.7 added `phpstan.dist.neon` as configuration file. https://github.com/phpstan/phpstan/releases/tag/1.4.7 --- .../src/org/netbeans/modules/php/analysis/ImportantFilesImpl.java | 3 ++- .../src/org/netbeans/modules/php/analysis/commands/PHPStan.java| 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/php/php.code.analysis/src/org/netbeans/modules/php/analysis/ImportantFilesImpl.java b/php/php.code.analysis/src/org/netbeans/modules/php/analysis/ImportantFilesImpl.java index cb55ec9dce..9b253561bb 100644 --- a/php/php.code.analysis/src/org/netbeans/modules/php/analysis/ImportantFilesImpl.java +++ b/php/php.code.analysis/src/org/netbeans/modules/php/analysis/ImportantFilesImpl.java @@ -41,7 +41,8 @@ public final class ImportantFilesImpl implements ImportantFilesImplementation { CodingStandardsFixer.CONFIG_FILE_NAME_V3, CodingStandardsFixer.DIST_CONFIG_FILE_NAME_V3, PHPStan.CONFIG_FILE_NAME, -PHPStan.DIST_CONFIG_FILE_NAME}; +PHPStan.DIST_CONFIG_FILE_NAME, +PHPStan.ALTERNATIVE_DIST_CONFIG_FILE_NAME}; private final ImportantFilesSupport support; diff --git a/php/php.code.analysis/src/org/netbeans/modules/php/analysis/commands/PHPStan.java b/php/php.code.analysis/src/org/netbeans/modules/php/analysis/commands/PHPStan.java index c5734e875f..c5affcadfe 100644 --- a/php/php.code.analysis/src/org/netbeans/modules/php/analysis/commands/PHPStan.java +++ b/php/php.code.analysis/src/org/netbeans/modules/php/analysis/commands/PHPStan.java @@ -78,6 +78,7 @@ public final class PHPStan { // configuration files public static final String CONFIG_FILE_NAME = "phpstan.neon"; // NOI18N public static final String DIST_CONFIG_FILE_NAME = "phpstan.neon.dist"; // NOI18N +public static final String ALTERNATIVE_DIST_CONFIG_FILE_NAME = "phpstan.dist.neon"; // NOI18N private final String phpStanPath; private int analyzeGroupCounter = 1; - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch cnd updated (b108f579f1 -> 9bdac2b8ed)
This is an automated email from the ASF dual-hosted git repository. vieiro pushed a change to branch cnd in repository https://gitbox.apache.org/repos/asf/netbeans.git from b108f579f1 Merge pull request #3711 from vieiro/feature/cnd-3.2.2 new 01d3e7fd43 [cnd] cnd.debugger.common2 and cnd.debugger.gdb2 new 14eaf44e43 debugger.common2 licenseinfo.xml and TEST_DATA as comment type new e1838b1207 #3947: Makes cygwin's gdb work on Windows new 9bdac2b8ed Merge pull request #3909 from vieiro/feature/cnd.debugger.common2-cnd.debugger.gdb2 The 6770 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: {contrib => cnd}/cnd.debugger.common2/build.xml| 5 +- .../external/GdbKillProc-1.exe-license.txt | 221 + .../cnd.debugger.common2/external/binaries-list| 5 +- cnd/cnd.debugger.common2/licenseinfo.xml | 168 {contrib => cnd}/cnd.debugger.common2/manifest.mf | 0 .../nbproject/project.properties | 0 .../cnd.debugger.common2/nbproject/project.xml | 28 +-- netbeans.spi.viewmodel.AsynchronousModelFilter | 0 ...org.netbeans.spi.viewmodel.CheckNodeModelFilter | 0 .../org.netbeans.spi.viewmodel.ColumnModel | 0 ...etbeans.spi.viewmodel.NodeActionsProviderFilter | 0 .../org.netbeans.spi.viewmodel.NodeModelFilter | 0 .../org.netbeans.spi.viewmodel.TableModelFilter| 0 .../org.netbeans.spi.viewmodel.TreeExpansionModel | 0 .../org.netbeans.spi.viewmodel.TreeModelFilter | 0 .../org.netbeans.spi.debugger.ui.BreakpointType| 0 .../modules/cnd/debugger/common2/APIAccessor.java | 0 .../modules/cnd/debugger/common2/Bundle.properties | 0 .../cnd/debugger/common2/DbgActionHandler.java | 0 .../debugger/common2/DbgActionHandlerFactory.java | 0 .../debugger/common2/DbgAttachActionHandler.java | 0 .../common2/DbgAttachActionHandlerFactory.java | 0 .../modules/cnd/debugger/common2/DbgGuiModule.java | 0 .../common2/NativeDebuggerManagerAccessor.java | 0 .../cnd/debugger/common2/ProcessListAccessor.java | 0 .../common2/capture/AbstractExternalStart.java | 0 .../cnd/debugger/common2/capture/Bundle.properties | 0 .../cnd/debugger/common2/capture/CaptureInfo.java | 0 .../common2/capture/CaptureListenAction.java | 0 .../cnd/debugger/common2/capture/CapturePanel.java | 0 .../cnd/debugger/common2/capture/Catalog.java | 0 .../debugger/common2/capture/ExternalStart.java| 0 .../common2/capture/ExternalStartManager.java | 0 .../common2/capture/ExternalStartProvider.java | 0 .../modules/cnd/debugger/common2/capture/Log.java | 0 .../common2/debugger/AbstractColumnModel.java | 0 .../debugger/common2/debugger/ActionEnabler.java | 0 .../cnd/debugger/common2/debugger/Address.java | 0 .../cnd/debugger/common2/debugger/Autos.java | 33 ++- .../debugger/common2/debugger/Bundle.properties| 0 .../cnd/debugger/common2/debugger/Catalog.java | 0 .../cnd/debugger/common2/debugger/Constants.java | 0 .../common2/debugger/DebuggerAnnotation.java | 0 .../common2/debugger/DebuggerSettings.java | 0 .../common2/debugger/DebuggerSettingsBridge.java | 0 .../debugger/common2/debugger/DialogManager.java | 0 .../debugger/common2/debugger/EditorBridge.java| 0 .../common2/debugger/EditorContextBridge.java | 0 .../cnd/debugger/common2/debugger/Error.java | 0 .../debugger/common2/debugger/EvalAnnotation.java | 0 .../common2/debugger/EvaluationWindow.java | 0 .../cnd/debugger/common2/debugger/Frame.java | 0 .../cnd/debugger/common2/debugger/LocalModel.java | 0 .../cnd/debugger/common2/debugger/Location.java| 0 .../modules/cnd/debugger/common2/debugger/Log.java | 0 .../debugger/common2/debugger/MacroSupport.java| 45 ++--- .../common2/debugger/ModelChangeDelegator.java | 0 .../common2/debugger/ModelListenerSupport.java | 0 .../debugger/common2/debugger/NativeDebugger.java | 0 .../common2/debugger/NativeDebuggerImpl.java | 0 .../common2/debugger/NativeDebuggerInfo.java | 0 .../common2/debugger/NativeDebuggerManager.java| 0 .../common2/debugger/NativeEngineProvider.java | 0 .../debugger/NativePinWatchValueProvider.java | 0 .../debugger/common2/debugger/NativeSession.java | 0 .../common2/debugger/NativeSessionProvider.java| 0 .../cnd/debugger/common2/debugger/NativeWatch.java | 0 .../debugger/common2/debugger/ProgressManager.java | 0 .../debugger/common2/debugger/RoutingToken.java| 0 .../common2/debugger/SessionColumnModels.java | 0 .../debugger/common2/debugger/SessionFilter.java | 0
[netbeans] branch master updated (c2e5944e6c -> cb7af487ca)
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git from c2e5944e6c Corrected array and String inspection for various versions of GDB. new 9341ccdea1 apache felix 7.0.3 new df7958f93f update notice file new cb7af487ca Merge pull request #3618 from sjaenick/master The 6907 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: platform/libs.felix/external/binaries-list | 2 +- ...ain-7.0.0-license.txt => org.apache.felix.main-7.0.3-license.txt} | 4 ++-- main-7.0.0-notice.txt => org.apache.felix.main-7.0.3-notice.txt} | 5 +++-- platform/libs.felix/nbproject/project.properties | 2 +- platform/libs.felix/nbproject/project.xml| 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) rename platform/libs.felix/external/{org.apache.felix.main-7.0.0-license.txt => org.apache.felix.main-7.0.3-license.txt} (99%) rename platform/libs.felix/external/{org.apache.felix.main-7.0.0-notice.txt => org.apache.felix.main-7.0.3-notice.txt} (78%) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Closed] (NETBEANS-5098) SessionBean - EJB Container initialization error
[ https://issues.apache.org/jira/browse/NETBEANS-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] S. M. closed NETBEANS-5098. --- Fix Version/s: 12.6 Resolution: Fixed > SessionBean - EJB Container initialization error > > > Key: NETBEANS-5098 > URL: https://issues.apache.org/jira/browse/NETBEANS-5098 > Project: NetBeans > Issue Type: Bug > Components: javaee - EJB >Affects Versions: 12.2, 12.3 > Environment: Netbeans 12.3, glassfish-4.1.2, jdk-15.0.1 >Reporter: S. M. >Priority: Blocker > Fix For: 12.6 > > > Reopened because: It worked with new NB 12.3 for a week or so - now the > Exception popped up again and is lasting now. There where no changes made > from my side. > By the way: NETBEANS-5099 popped up at the same time. > How described in the messages below the problem resolves when the users > directory of NB is deleted. But about some weeks later it pops up again. > The exactly same code works fine when it is compiled and deployed outside > Netbeans or with an older Netbeans version. So I feel it is a Netbeans Issue. > How to reproduce: Make a new Java Ant/Java Enterprise/EJB Module and add an > 'empty' Session-EJB to the project: > (The critical point seems to be the LocalBean annotation. When the local > interface is realized by a concrete class it works.) > {code} > package test; > import javax.ejb.LocalBean; > import javax.ejb.Stateless; > @Stateless > @LocalBean > public class NewSessionBean { > } > {code} > Deploy the module within Netbeans to Glassfish. > The exactly same code works fine when it is deployed outside Netbeans or with > an older Netbeans version. So I feel it is a Netbeans Issue. > At deployment on Glassfish 5 the following Exeption occurs: > {code} > java.lang.RuntimeException: EJB Container initialization error > at > org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99) > at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:206) > at > org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) >
[jira] [Closed] (NETBEANS-5099) PhaseListener - RuntimeException
[ https://issues.apache.org/jira/browse/NETBEANS-5099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] S. M. closed NETBEANS-5099. --- Fix Version/s: 12.6 Resolution: Fixed Did not occur for quite a time - so it seems to be OK now. > PhaseListener - RuntimeException > > > Key: NETBEANS-5099 > URL: https://issues.apache.org/jira/browse/NETBEANS-5099 > Project: NetBeans > Issue Type: Bug > Components: java - Classpath, java - Compiler, javaee - JSF >Affects Versions: 12.0, 12.2, 12.3 > Environment: Netbeans 12.3, Glassfish 4 and Glassfish 5, Project: > jdk1.8.0_65, Netbeans: jdk-15.0.1 >Reporter: S. M. >Priority: Blocker > Fix For: 12.6 > > > Reopened because: It worked with new NB 12.3 for a week or so - now the > Exception popped up again and is lasting now. There where no changes made > from my side. > By the way: NETBEANS-5098 popped up at the same time. > The exactly same code works fine when it is compiled and deployed outside > Netbeans or with an older Netbeans version. So I feel it is a Netbeans Issue. > The project has to be re-compiled in the old IDE before it works in it ... > Here comes the error description for reproducing: > Make an new WebApplication with Glassfish 4.1.2 or 5.0.1. and add JavaServer > Faces Framework. > Add the following faces-config.xml: > {code} > >xmlns="http://java.sun.com/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > [http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd]";> > > test.SessionTimeoutPhaseListener > > > {code} > Add the following class: > {code} > package test; > import javax.faces.event.PhaseEvent; > import javax.faces.event.PhaseId; > import javax.faces.event.PhaseListener; > public class SessionTimeoutPhaseListener implements PhaseListener { > @Override > public void beforePhase(PhaseEvent event) { > } > @Override > public void afterPhase(PhaseEvent event) { > } > public void handleSessionTimeout(PhaseEvent event) { > } > @Override > public PhaseId getPhaseId() > { return PhaseId.RESTORE_VIEW; } > } > {code} > At deployment (within NB) on Glassfish 4 or 5 the following Exeption occurs. > {code} > Info: Initializing Mojarra 2.2.14 ( 20161114-2152 unable to get svn info) for > context '/WebApplication1' > Severe: Critical error during deployment: > com.sun.faces.config.ConfigurationException: > Source Document: jndi:/server/WebApplication1/WEB-INF/faces-config.xml > Cause: Unable to create a new instance of > 'test.SessionTimeoutPhaseListener': java.lang.RuntimeException: > at > com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:378) > at > com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:154) > at > com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:132) > at > com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152) > at > com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:239) > at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:439) > at > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227) > at > org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5394) > at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:743) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:5963) > at com.sun.enterprise.web.WebModule.start(WebModule.java:691) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747) > at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286) > at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932) > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(Command
[jira] [Closed] (NETBEANS-5255) Double deployment in maven web application
[ https://issues.apache.org/jira/browse/NETBEANS-5255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] S. M. closed NETBEANS-5255. --- Fix Version/s: 12.6 Resolution: Fixed > Double deployment in maven web application > -- > > Key: NETBEANS-5255 > URL: https://issues.apache.org/jira/browse/NETBEANS-5255 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven >Affects Versions: 12.2, 12.3, 12.4 > Environment: Netbeans 12.2, Glassfish 4, Project: jdk1.8.0_65, > Netbeans: jdk 14.01 > and > Netbeans 12.3, Glassfish 5.0.1; jdk-15.0.1 >Reporter: S. M. >Priority: Major > Fix For: 12.6 > > Attachments: screenshot_double_deployment.png > > > Create a maven web application. Clean and build the project. When you run the > project, it is deployed two times. (Which is a menace for large projects) > > > !screenshot_double_deployment.png! -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Corrected array and String inspection for various versions of GDB.
This is an automated email from the ASF dual-hosted git repository. entl pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new c2e5944e6c Corrected array and String inspection for various versions of GDB. c2e5944e6c is described below commit c2e5944e6c3ab56ffc28882817e81cc3e25cba45 Author: Martin Entlicher AuthorDate: Mon Apr 11 09:55:44 2022 +0200 Corrected array and String inspection for various versions of GDB. --- .../debugger/displayer/JavaVariablesDisplayer.java | 397 +++-- 1 file changed, 296 insertions(+), 101 deletions(-) diff --git a/java/java.nativeimage.debugger/src/org/netbeans/modules/java/nativeimage/debugger/displayer/JavaVariablesDisplayer.java b/java/java.nativeimage.debugger/src/org/netbeans/modules/java/nativeimage/debugger/displayer/JavaVariablesDisplayer.java index eed890c473..a4009387e5 100644 --- a/java/java.nativeimage.debugger/src/org/netbeans/modules/java/nativeimage/debugger/displayer/JavaVariablesDisplayer.java +++ b/java/java.nativeimage.debugger/src/org/netbeans/modules/java/nativeimage/debugger/displayer/JavaVariablesDisplayer.java @@ -28,6 +28,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.WeakHashMap; import org.netbeans.modules.nativeimage.api.debug.EvaluateException; import org.netbeans.modules.nativeimage.api.debug.NIDebugger; @@ -54,7 +55,11 @@ public final class JavaVariablesDisplayer implements VariableDisplayer { private static final String[] STRING_TYPES = new String[] { String.class.getName(), StringBuilder.class.getName(), StringBuffer.class.getName() }; +// Variable names with this prefix contain space-separated variable name and expression path +private static final String PREFIX_VAR_PATH = "{ "; + private NIDebugger debugger; +private final Map variablePaths = Collections.synchronizedMap(new WeakHashMap<>()); public JavaVariablesDisplayer() { } @@ -67,28 +72,40 @@ public final class JavaVariablesDisplayer implements VariableDisplayer { public NIVariable[] displayed(NIVariable[] variables) { List displayedVars = new ArrayList<>(variables.length); for (NIVariable var : variables) { - String value = var.getValue(); +String value = var.getValue(); if (UNSET.equals(value)) { continue; } +if (var instanceof AbstractVar) { +// Translated already +displayedVars.add(var); +continue; +} +String name = var.getName(); +String path = null; +if (name.startsWith(PREFIX_VAR_PATH)) { +int i = name.indexOf(' ', PREFIX_VAR_PATH.length()); +if (i > 0) { +path = name.substring(i + 1); +name = name.substring(PREFIX_VAR_PATH.length(), i); +} +} +if (path != null) { +variablePaths.put(var, path); +} int nch = var.getNumChildren(); NIVariable displayedVar; if (nch == 0) { -String name = var.getName(); -if (!name.equals(getNameOrIndex(name))) { -displayedVar = new Var(var); -} else { -displayedVar = var; -} +displayedVar = new Var(var, name, path); } else { NIVariable[] children = var.getChildren(); -NIVariable[] subChildren = children[0].getChildren(); +NIVariable[] subChildren = children.length > 0 ? children[0].getChildren() : new NIVariable[]{}; // Check for Array if (subChildren.length == 3 && //HUB.equals(subChildren[0].getName()) && ARRAY_LENGTH.equals(subChildren[1].getName()) && ARRAY.equals(subChildren[2].getName())) { -displayedVar = new ArrayVar(var, subChildren[1], subChildren[2]); +displayedVar = new ArrayVar(var, name, path, subChildren[1], subChildren[2]); } else { // Check for String String type = getSimpleType(var.getType()); @@ -103,22 +120,22 @@ public final class JavaVariablesDisplayer implements VariableDisplayer { } } if (likeString) { -displayedVar = new StringVar(var, type, isString ? null : subChildren); +displayedVar = new StringVar(var, name, path, type, isString ? null : subChildren); } else { if (children.length == 1 && PUBLIC.equals(children[0].getName())) {
[jira] [Commented] (NETBEANS-6494) Gradle projects reload into memory on project close
[ https://issues.apache.org/jira/browse/NETBEANS-6494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520766#comment-17520766 ] Laszlo Kishalmi commented on NETBEANS-6494: --- What I'm thinking is, that on project close we shall not dump the GradleProject internally. It still contains viable information. In Maven the project info is retrieved almost as just parsing an xml. > Gradle projects reload into memory on project close > --- > > Key: NETBEANS-6494 > URL: https://issues.apache.org/jira/browse/NETBEANS-6494 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 13 >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Critical > Fix For: 14 > > > When / after a gradle project is closed (I used File | Close All Projects) > various UI-based refreshes cause the project(s) to be reloaded back into the > memory. > I've capture two stacktraces: > > {code:java} > java.lang.Exception > at > org.netbeans.modules.project.ui.problems.BrokenProjectAnnotator.propertyChange(BrokenProjectAnnotator.java:183) > at > java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343) > at > java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335) > at > java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268) > at > org.netbeans.spi.project.ui.support.UILookupMergerSupport$ProjectProblemsProviderImpl.propertyChange(UILookupMergerSupport.java:283) > at > org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190) > at > java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343) > at > java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335) > at > java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268) > at > org.netbeans.modules.gradle.java.GradleJavaProjectProblemProvider.lambda$new$0(GradleJavaProjectProblemProvider.java:47) > at > java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343) > at > java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335) > at > java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268) > at > org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256) > at > org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57) > at > org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166) > at > org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481) > at > org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277) > at > org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193) > at > org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186) > at > org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125) > at > org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146) > at > org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173) > at > org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158) > at > java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) > at > java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) > at > java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) > at > java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) > at > java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) > at > java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) > at > java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) > at > java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) > at > java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) > at > org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155) > at > org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInf
[netbeans] branch master updated (d68e961fc7 -> 7f93f01a75)
This is an automated email from the ASF dual-hosted git repository. sdedic pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git from d68e961fc7 Prevent possible NPE at MicronautDataCompletionTask new 67f9f65177 Prevent deadlock between project listener in the reload thread itself. new 72e05f7b3f Add detailed logging. new 49612167fe Fix binaries comparison, add logging. new b476bc2689 Log gradle output, enable verbose on FINEST loglevel. new 79976f635d Fix user home, exclude bad configs, avoid non-java dependencies. new 41efbace2d Event receiveres see project loading Future as completed to prevent deadlocks. Tests adjusted. new 7f93f01a75 Merge pull request #3942 from sdedic/gradle/project-load-fixes2 The 6903 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../gradle/tooling/NbProjectInfoBuilder.java | 29 +- .../modules/gradle/NbGradleProjectImpl.java| 50 -- .../gradle/api/GradleBaseProjectBuilder.java | 45 + .../gradle/loaders/GradleArtifactStore.java| 15 ++- .../gradle/loaders/LegacyProjectLoader.java| 107 - .../modules/gradle/NbGradleProjectImplTest.java| 14 ++- 6 files changed, 241 insertions(+), 19 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Prevent possible NPE at MicronautDataCompletionTask
This is an automated email from the ASF dual-hosted git repository. lkishalmi pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new d68e961fc7 Prevent possible NPE at MicronautDataCompletionTask d68e961fc7 is described below commit d68e961fc75382487e6fd1353fb37b742041d73c Author: Laszlo Kishalmi AuthorDate: Mon Mar 21 16:49:36 2022 -0700 Prevent possible NPE at MicronautDataCompletionTask --- .../completion/MicronautDataCompletionTask.java| 104 +++-- 1 file changed, 53 insertions(+), 51 deletions(-) diff --git a/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautDataCompletionTask.java b/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautDataCompletionTask.java index 92d1160670..fc9ac7cd41 100644 --- a/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautDataCompletionTask.java +++ b/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautDataCompletionTask.java @@ -135,60 +135,62 @@ public class MicronautDataCompletionTask { @Override public void run(ResultIterator resultIterator) throws Exception { CompilationController cc = CompilationController.get(resultIterator.getParserResult(caretOffset)); -cc.toPhase(JavaSource.Phase.PARSED); -anchorOffset = caretOffset; -String prefix = EMPTY; -TokenSequence ts = cc.getTokenHierarchy().tokenSequence(JavaTokenId.language()); -if (ts.move(anchorOffset) == 0 || !ts.moveNext()) { -ts.movePrevious(); -} -int len = anchorOffset - ts.offset(); -if (len > 0 && ts.token().length() >= len) { -if (ts.token().id() == JavaTokenId.IDENTIFIER || ts.token().id().primaryCategory().startsWith("keyword") || - ts.token().id().primaryCategory().equals("literal")) { -prefix = ts.token().text().toString().substring(0, len); -anchorOffset = ts.offset(); -} else if (ts.token().id() == JavaTokenId.STRING_LITERAL) { -prefix = ts.token().text().toString().substring(1, ts.token().length() - 1); -anchorOffset = ts.offset() + 1; -} else if (ts.token().id() == JavaTokenId.MULTILINE_STRING_LITERAL) { -prefix = ts.token().text().toString().substring(3, len); -anchorOffset = ts.offset() + 3; +if (cc != null) { +cc.toPhase(JavaSource.Phase.PARSED); +anchorOffset = caretOffset; +String prefix = EMPTY; +TokenSequence ts = cc.getTokenHierarchy().tokenSequence(JavaTokenId.language()); +if (ts.move(anchorOffset) == 0 || !ts.moveNext()) { +ts.movePrevious(); } -} -Consumer consumer = (namePrefix, name, type) -> { -items.add(type != null ? factory.createFinderMethodItem(name, type, anchorOffset) : factory.createFinderMethodNameItem(namePrefix, name, anchorOffset)); -}; -TreeUtilities treeUtilities = cc.getTreeUtilities(); -SourcePositions sp = cc.getTrees().getSourcePositions(); -TreePath path = treeUtilities.pathFor(anchorOffset); -switch (path.getLeaf().getKind()) { -case CLASS: -case INTERFACE: -resolveFinderMethods(cc, path, prefix, true, consumer); -break; -case METHOD: -Tree returnType = ((MethodTree) path.getLeaf()).getReturnType(); -if (returnType != null && findLastNonWhitespaceToken(ts, (int) sp.getEndPosition(path.getCompilationUnit(), returnType), anchorOffset) == null) { -resolveFinderMethods(cc, path.getParentPath(), prefix, false, consumer); +int len = anchorOffset - ts.offset(); +if (len > 0 && ts.token().length() >= len) { +if (ts.token().id() == JavaTokenId.IDENTIFIER || ts.token().id().primaryCategory().startsWith("keyword") || + ts.token().id().primaryCategory().equals("literal")) { +prefix = ts.token().text().toString().substring(0, len); +anchorOffset = ts.offset(); +
[netbeans] branch master updated: Do not specify extensions, the regexp accepts SVGs and _dark mutations.
This is an automated email from the ASF dual-hosted git repository. sdedic pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 7afa0df487 Do not specify extensions, the regexp accepts SVGs and _dark mutations. new d834d15c95 Merge pull request #3957 from sdedic/vscode/gradleicon 7afa0df487 is described below commit 7afa0df4871c3cbc0f26d9c418875510ea7a9f81 Author: Svata Dedic AuthorDate: Mon Apr 11 11:19:26 2022 +0200 Do not specify extensions, the regexp accepts SVGs and _dark mutations. --- java/java.lsp.server/vscode/package.json | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/java/java.lsp.server/vscode/package.json b/java/java.lsp.server/vscode/package.json index 9737e4c820..32aa929521 100644 --- a/java/java.lsp.server/vscode/package.json +++ b/java/java.lsp.server/vscode/package.json @@ -722,43 +722,43 @@ }, "netbeans.iconMapping": [ { - "uriExpression": "nbres:/org/netbeans/modules/gradle/resources/gradle.png", + "uriExpression": "nbres:/org/netbeans/modules/gradle/resources/gradle", "codeicon": "project" }, { - "uriExpression": "nbres:/org/netbeans/modules/gradle/java/resources/javaseProjectIcon.png", + "uriExpression": "nbres:/org/netbeans/modules/gradle/java/resources/javaseProjectIcon", "codeicon": "project" }, { - "uriExpression": "nbres:/org/netbeans/modules/maven/resources/jaricon.png", + "uriExpression": "nbres:/org/netbeans/modules/maven/resources/jaricon", "codeicon": "project" }, { - "uriExpression": "nbres:/org/netbeans/modules/gradle/resources/libraries.png", + "uriExpression": "nbres:/org/netbeans/modules/gradle/resources/libraries", "codeicon": "settings-gear" }, { - "uriExpression": "nbres:/org/netbeans/modules/gradle/resources/(empty.png|module-artifact.png)", + "uriExpression": "nbres:/org/netbeans/modules/gradle/resources/(empty|module-artifact)", "codeicon": "file-zip" }, { - "uriExpression": "nbres:/org/netbeans/modules/maven/DependencyIcon.png", + "uriExpression": "nbres:/org/netbeans/modules/maven/DependencyIcon", "codeicon": "file-zip" }, { - "uriExpression": "nbres:/org/netbeans/modules/maven/TransitiveDependencyIcon.png", + "uriExpression": "nbres:/org/netbeans/modules/maven/TransitiveDependencyIcon", "codeicon": "library" }, { - "uriExpression": "nbres:/org/netbeans/spi/java/project/support/ui/package(Empty)?.gif", + "uriExpression": "nbres:/org/netbeans/spi/java/project/support/ui/package(Empty)?", "codeicon": "file-submodule" }, { - "uriExpression": "nbres:/org/netbeans/modules/java/resources/(abstract_class_file|class|enum_file).png", + "uriExpression": "nbres:/org/netbeans/modules/java/resources/(abstract_class_file|class|enum_file)", "codeicon": "symbol-class" }, { - "uriExpression": "nbres:/org/netbeans/modules/java/resources/(annotation_file|interface_file).png", + "uriExpression": "nbres:/org/netbeans/modules/java/resources/(annotation_file|interface_file)", "codeicon": "symbol-interface" }, { @@ -780,7 +780,7 @@ "codeicon": "*folder" }, { - "uriExpression": "nbres:/org/netbeans/modules/java/api/common/project/ui/resources/platform.gif", + "uriExpression": "nbres:/org/netbeans/modules/java/api/common/project/ui/resources/platform", "codeicon": "vm"
[jira] [Updated] (NETBEANS-4676) Bad format to try-with-resources
[ https://issues.apache.org/jira/browse/NETBEANS-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gabriel Campos updated NETBEANS-4676: - Affects Version/s: 13 > Bad format to try-with-resources > > > Key: NETBEANS-4676 > URL: https://issues.apache.org/jira/browse/NETBEANS-4676 > Project: NetBeans > Issue Type: Bug > Components: java - Editor >Affects Versions: 12.0, 11.3, 13 >Reporter: Eduard Catala >Priority: Major > Attachments: Captura de pantalla de 2020-08-03 19-14-32.png > > > NB applies incorrect java code formatting in try-with-resources (adding a > space), see attached image. > > it sounds silly but if you have the format on save activated, and the code > repository has some sort of code style checking (my case) is impossible to > commit code written with nb (you can disable format on save, but you have to > format your java classes manually). > > -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4641) Code auto formatting for try-with-resources statements
[ https://issues.apache.org/jira/browse/NETBEANS-4641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520647#comment-17520647 ] Gabriel Campos commented on NETBEANS-4641: -- The proposed solution of reinstalling nb-javac doesn't seem to work on NB 13. > Code auto formatting for try-with-resources statements > -- > > Key: NETBEANS-4641 > URL: https://issues.apache.org/jira/browse/NETBEANS-4641 > Project: NetBeans > Issue Type: Bug > Components: editor - Formatting & Indentation, java - Editor >Affects Versions: 12.0 > Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin > download >Reporter: Bernd Michaely >Priority: Major > > Since NB 12.0, auto formatting for try-with-resources statements adds an > additional space after the opening parenthesis after the try keyword. To > reproduce the problem, choose: > Menu »Tools« → Options → Editor → Formatting → > Language »Java« and Category »Spaces« → > Tree item »Within Parentheses« → Checkbox "try" > If checked, two spaces are added after the opening parenthesis after try, if > unchecked, one space is added, instead of one and zero. > (Note, that there is also no example available in the preview. There is for > try-catch, but not for try-with-resources.) > -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated (144e91c285 -> 6dc8d9467f)
This is an automated email from the ASF dual-hosted git repository. ppisl pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git from 144e91c285 Merge pull request #3955 from sdedic/lsp/call-hierarchy-npe new 76c2641bef Fix resolving possible type of a dynamic variable in DeclarationFinder new c7f2dc6b6f Removing the possibility of loading class to JVM. new 6dc8d9467f Merge pull request #3941 from ppisl/fix_userhome The 6893 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../groovy/editor/language/GroovyDeclarationFinder.java | 13 - .../netbeans/modules/groovy/editor/utils/GroovyUtils.java | 5 + .../data/testfiles/declarationfinder/a/Declaration4.groovy | 13 + .../data/testfiles/declarationfinder/a/TestBuilder.java | 12 .../groovy/editor/api/GroovyDeclarationFinderTest.java | 9 + 5 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 groovy/groovy.editor/test/unit/data/testfiles/declarationfinder/a/Declaration4.groovy create mode 100644 groovy/groovy.editor/test/unit/data/testfiles/declarationfinder/a/TestBuilder.java - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated (9a045e3a6b -> 144e91c285)
This is an automated email from the ASF dual-hosted git repository. sdedic pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git from 9a045e3a6b Expand unrolled spock tests. (#3945) new a645aba964 Variant conversion API added. new 9e43bf7c4b Typo fixed: incoming was served instead of outgoing new 6117bbab1c Call Hierarchy supports invocation expressions. new 144e91c285 Merge pull request #3955 from sdedic/lsp/call-hierarchy-npe The 6890 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../server/protocol/TextDocumentServiceImpl.java | 2 +- java/java.sourceui/apichanges.xml | 12 ++ java/java.sourceui/nbproject/project.properties| 2 +- .../api/java/source/ui/ElementHeaders.java | 20 ++- .../modules/java/source/ui/LspElementUtils.java| 101 ++--- java/refactoring.java/nbproject/project.xml| 2 +- .../callhierarchy/LspCallHierarchyProvider.java| 157 +++-- 7 files changed, 231 insertions(+), 65 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists