[jira] [Assigned] (NETBEANS-19) GUI Designer + Maven: icons imported in the wrong directory
[ https://issues.apache.org/jira/browse/NETBEANS-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anton V. Kirilchik reassigned NETBEANS-19: -- Assignee: Anton V. Kirilchik > GUI Designer + Maven: icons imported in the wrong directory > --- > > Key: NETBEANS-19 > URL: https://issues.apache.org/jira/browse/NETBEANS-19 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, guibuilder - Code >Affects Versions: 8.2, 9.0 > Environment: Windows 7 Professional > JDK 1.8.0_111-b14 > Maven 3.3.3 >Reporter: Jean-François El Fouly >Assignee: Anton V. Kirilchik >Priority: Minor > > An annoying and tricky little bug. > h1. Nominal scenario (NetBeans non-Maven project) > # File > New Project... > # Java | Java application (You could uncheck Create Main Class) > # New > JFrame Form... > # In the designer drag a JLabel > # For the icon property click "..." > # Click Import to Project... > # Choose an icon then Finish > # The icon is copied along the java source file > # Run > # Everybody happy. It works > h1. Maven project > # File > New Project... > # Maven | Java application > # New > JFrame Form... (Default values OK) > # In the designer drag a JLabel > # For the icon property click "..." > # Click Import to Project... > # Choose an icon then Finish > # The icon is copied along the java source file > # Run > # It crashes with a NullPointerException > h2. Manual remediation > # In the project create src/main/resources > # Move the icon to this directory (same package as it was under src/main/java) > # NetBeans detects this and adds "Other Sources" to the project tree > # mvn clean (to force rebuild) > # Now it works > h1. Rationale > Importing an icon and associating to a JLabel generates code such as this: > bq. jLabel1.setIcon(new > javax.swing.ImageIcon(getClass().getResource("/test/mavenproject1/bookmark.png"))); > // NOI18N > But the maven compiler plugin will not copy the icon to target/classes so > target/classes contains the classes but not the image. So the code above > causes a NPE. > h2.Bottom line > In a Maven project icons should not be imported to src/main/java but to > src/main/resources, same package. > This small but annoying bug is not a regression: it can easily be reproduced > in 8.2 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Resolved] (NETBEANS-236) Incorrect brace spacing in try-with-resources
[ https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anton V. Kirilchik resolved NETBEANS-236. - Resolution: Cannot Reproduce Assignee: Gili Fix Version/s: 9.0 Could you check it again, Gili? > Incorrect brace spacing in try-with-resources > - > > Key: NETBEANS-236 > URL: https://issues.apache.org/jira/browse/NETBEANS-236 > Project: NetBeans > Issue Type: Bug > Components: editor - Formatting Indentation >Affects Versions: 8.2 > Environment: build 152 >Reporter: Gili >Assignee: Gili >Priority: Major > Fix For: 9.0 > > > Given: > {{try (Session session = scope.getSession())}} > Invoking code-format results in: > {{try ( Session session = scope.getSession())}} > in spite of the fact that the IDE is configured not to insert a space inside > the parenthesis. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-236) Incorrect brace spacing in try-with-resources
[ https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16376701#comment-16376701 ] Anton V. Kirilchik commented on NETBEANS-236: - The same with latest master build. > Incorrect brace spacing in try-with-resources > - > > Key: NETBEANS-236 > URL: https://issues.apache.org/jira/browse/NETBEANS-236 > Project: NetBeans > Issue Type: Bug > Components: editor - Formatting Indentation >Affects Versions: 8.2 > Environment: build 152 >Reporter: Gili >Priority: Major > > Given: > {{try (Session session = scope.getSession())}} > Invoking code-format results in: > {{try ( Session session = scope.getSession())}} > in spite of the fact that the IDE is configured not to insert a space inside > the parenthesis. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Resolved] (NETBEANS-295) Create/Update Tests dialog updates pom.xml even if operation is aborted
[ https://issues.apache.org/jira/browse/NETBEANS-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anton V. Kirilchik resolved NETBEANS-295. - Resolution: Cannot Reproduce Fix Version/s: 9.0 > Create/Update Tests dialog updates pom.xml even if operation is aborted > --- > > Key: NETBEANS-295 > URL: https://issues.apache.org/jira/browse/NETBEANS-295 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven > Environment: Product Version: Apache NetBeans IDE Dev (Build > 20180117-unknown-revn) > Updates: Updates available > Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11 > Runtime: Java(TM) SE Runtime Environment 9.0.1+11 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) > User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev > Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev >Reporter: Gili >Assignee: Anton V. Kirilchik >Priority: Major > Fix For: 9.0 > > > 1. Given a Maven project with a Java file open in the editor > 2. The user mistakenly hits CTRL+SHIFT+U which opens the "Create/Update > Tests" dialog > 3. User hits ESC to cancel the operation. > 4. The following lines are added to pom.xml: > {code} > > org.seleniumhq.selenium > selenium-java > test > 2.44.0 > > > com.opera > operadriver > test > 1.5 > > > > org.seleniumhq.selenium > > selenium-remote-driver > > > > > junit > junit > test > 4.11 > > {code} > Expected behavior: pom.xml should not be modified if operation is aborted -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-295) Create/Update Tests dialog updates pom.xml even if operation is aborted
[ https://issues.apache.org/jira/browse/NETBEANS-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16375778#comment-16375778 ] Anton V. Kirilchik commented on NETBEANS-295: - Cannot reproduce with build from commit ccc9b5f92776c62e7e7b40e8429e09c30d20406c. > Create/Update Tests dialog updates pom.xml even if operation is aborted > --- > > Key: NETBEANS-295 > URL: https://issues.apache.org/jira/browse/NETBEANS-295 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven > Environment: Product Version: Apache NetBeans IDE Dev (Build > 20180117-unknown-revn) > Updates: Updates available > Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11 > Runtime: Java(TM) SE Runtime Environment 9.0.1+11 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) > User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev > Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev >Reporter: Gili >Assignee: Anton V. Kirilchik >Priority: Major > > 1. Given a Maven project with a Java file open in the editor > 2. The user mistakenly hits CTRL+SHIFT+U which opens the "Create/Update > Tests" dialog > 3. User hits ESC to cancel the operation. > 4. The following lines are added to pom.xml: > {code} > > org.seleniumhq.selenium > selenium-java > test > 2.44.0 > > > com.opera > operadriver > test > 1.5 > > > > org.seleniumhq.selenium > > selenium-remote-driver > > > > > junit > junit > test > 4.11 > > {code} > Expected behavior: pom.xml should not be modified if operation is aborted -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Assigned] (NETBEANS-295) Create/Update Tests dialog updates pom.xml even if operation is aborted
[ https://issues.apache.org/jira/browse/NETBEANS-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anton V. Kirilchik reassigned NETBEANS-295: --- Assignee: Anton V. Kirilchik > Create/Update Tests dialog updates pom.xml even if operation is aborted > --- > > Key: NETBEANS-295 > URL: https://issues.apache.org/jira/browse/NETBEANS-295 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven > Environment: Product Version: Apache NetBeans IDE Dev (Build > 20180117-unknown-revn) > Updates: Updates available > Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11 > Runtime: Java(TM) SE Runtime Environment 9.0.1+11 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) > User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev > Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev >Reporter: Gili >Assignee: Anton V. Kirilchik >Priority: Major > > 1. Given a Maven project with a Java file open in the editor > 2. The user mistakenly hits CTRL+SHIFT+U which opens the "Create/Update > Tests" dialog > 3. User hits ESC to cancel the operation. > 4. The following lines are added to pom.xml: > {code} > > org.seleniumhq.selenium > selenium-java > test > 2.44.0 > > > com.opera > operadriver > test > 1.5 > > > > org.seleniumhq.selenium > > selenium-remote-driver > > > > > junit > junit > test > 4.11 > > {code} > Expected behavior: pom.xml should not be modified if operation is aborted -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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