[jira] [Resolved] (NETBEANS-3208) Add Snap package to download page

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger resolved NETBEANS-3208.
--
Resolution: Fixed

Fixed on download page for NetBeans 11.1.

> Add Snap package to download page
> -
>
> Key: NETBEANS-3208
> URL: https://issues.apache.org/jira/browse/NETBEANS-3208
> Project: NetBeans
>  Issue Type: Improvement
>  Components: website
>Affects Versions: 11.1, 11.2
> Environment: N/A
>Reporter: John Neffenger
>Assignee: John Neffenger
>Priority: Minor
>  Labels: pull-request-available, website
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> The [NetBeans Snap package|https://snapcraft.io/netbeans] is very convenient 
> for those with Linux systems. This is a request to list it as an alternative 
> on the [Downloading Apache 
> NetBeans|https://netbeans.apache.org/download/nb111/nb111.html] page and the 
> corresponding page for version 11.2 when it is published.
> Please see the following message from the mailing list for details:
> [Re: [DISCUSS] Experimental installers for 
> 11.0|https://mail-archives.apache.org/mod_mbox/netbeans-dev/201904.mbox/%3CCACkjAxSNz4WtP7WQ4PXLCAqGb%3D9dfXNRqKChDhWd%2BJSvyKVVVg%40mail.gmail.com%3E]
>  ??Should we also mention the Snap package for Linux users???
>  ??Yes and the difference there is that the Snap package is officially 
> supported by Apache NetBeans. Maybe if that screenshot of Apache NetBeans 10 
> can be changed to 11.0, then we should definitely add it to the Downloads 
> page.??



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-3208) Add Snap package to download page

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger closed NETBEANS-3208.


> Add Snap package to download page
> -
>
> Key: NETBEANS-3208
> URL: https://issues.apache.org/jira/browse/NETBEANS-3208
> Project: NetBeans
>  Issue Type: Improvement
>  Components: website
>Affects Versions: 11.1, 11.2
> Environment: N/A
>Reporter: John Neffenger
>Assignee: John Neffenger
>Priority: Minor
>  Labels: pull-request-available, website
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> The [NetBeans Snap package|https://snapcraft.io/netbeans] is very convenient 
> for those with Linux systems. This is a request to list it as an alternative 
> on the [Downloading Apache 
> NetBeans|https://netbeans.apache.org/download/nb111/nb111.html] page and the 
> corresponding page for version 11.2 when it is published.
> Please see the following message from the mailing list for details:
> [Re: [DISCUSS] Experimental installers for 
> 11.0|https://mail-archives.apache.org/mod_mbox/netbeans-dev/201904.mbox/%3CCACkjAxSNz4WtP7WQ4PXLCAqGb%3D9dfXNRqKChDhWd%2BJSvyKVVVg%40mail.gmail.com%3E]
>  ??Should we also mention the Snap package for Linux users???
>  ??Yes and the difference there is that the Snap package is officially 
> supported by Apache NetBeans. Maybe if that screenshot of Apache NetBeans 10 
> can be changed to 11.0, then we should definitely add it to the Downloads 
> page.??



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-3209) Add JAVA_HOME and ANT_HOME note

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger resolved NETBEANS-3209.
--
Resolution: Fixed

Fixed in the GitHub README file and on the Web site page about building from 
source.

> Add JAVA_HOME and ANT_HOME note
> ---
>
> Key: NETBEANS-3209
> URL: https://issues.apache.org/jira/browse/NETBEANS-3209
> Project: NetBeans
>  Issue Type: Improvement
>  Components: website
>Affects Versions: 11.2
> Environment: N/A
>Reporter: John Neffenger
>Assignee: John Neffenger
>Priority: Minor
>  Labels: pull-request-available, website
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This is a request to add a brief note about the JAVA_HOME and ANT_HOME 
> environment variables to the build instructions on the Web site and the 
> GitHub repository. The changes on the two pages are as follows:
> [Apache NetBeans source and daily 
> builds|https://netbeans.apache.org/download/dev/index.html]
> You can of course build Apache NetBeans from source. To do so:
> # Clone the [https://github.com/apache/netbeans] GitHub repository.
> # Install Oracle’s Java or Open JDK (v8, v11).
> # Install Apache Ant 1.10 or greater ([https://ant.apache.org/]).
> # Set JAVA_HOME and ANT_HOME appropriately or leave them undefined.
> [Apache NetBeans|https://github.com/apache/netbeans/blob/master/README.md] 
> (GitHub README.md)
> Requirements
> * Git
> * Ant 1.9.9 or above
> * JDK 8 or 11 (to build NetBeans)
> * JDK 9 or above (to run NetBeans)
> * MinGW (optional), to build Windows Launchers
> *Note:* Set JAVA_HOME and ANT_HOME appropriately or leave them undefined.
> The hidden effect of the JAVA_HOME and ANT_HOME environment variables can be 
> a trap for developers not familiar with their use by Apache Ant. The build 
> fails if JAVA_HOME or ANT_HOME point to a different version than the one 
> required by NetBeans, even when the correct version is found on the PATH 
> environment variable.
> Ant will override whatever is found on the PATH with the values of JAVA_HOME 
> or ANT_HOME, as shown below:
> {noformat}
> $ which ant
> /usr/bin/ant
> $ ant -diagnostics | grep -e ant.version -e java.version
> ant.version: Apache Ant(TM) version 1.9.6 compiled on July 20 2018
> ant.java.version: 1.8
> java.version : 1.8.0_222
> $ export JAVA_HOME=$HOME/opt/jdk-13
> $ export ANT_HOME=$HOME/opt/apache-ant-1.10.7
> $ which ant
> /usr/bin/ant
> $ ant -diagnostics | grep -e ant.version -e java.version
> ant.version: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
> ant.java.version: 13
> java.version : 13
> java.version.date : 2019-09-17
> {noformat}
> Now that a new JDK is released every six months, the JAVA_HOME environment 
> variable on a developer's workstation is more likely to point to a version 
> other than JDK 8 or 11 required by NetBeans. And because NetBeans is a 
> graphical application often run and debugged from another copy of NetBeans, 
> it is more likely to be built directly on a developer's workstation rather 
> than on a separate build system.
> Please see the following message from the mailing list for details:
>  [Re: Building NetBeans 11.1 from source fails with compile 
> errors|https://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3C26c1f141-b021-4473-059f-41ec0b5e3613%40status6.com%3E]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-3209) Add JAVA_HOME and ANT_HOME note

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger closed NETBEANS-3209.


> Add JAVA_HOME and ANT_HOME note
> ---
>
> Key: NETBEANS-3209
> URL: https://issues.apache.org/jira/browse/NETBEANS-3209
> Project: NetBeans
>  Issue Type: Improvement
>  Components: website
>Affects Versions: 11.2
> Environment: N/A
>Reporter: John Neffenger
>Assignee: John Neffenger
>Priority: Minor
>  Labels: pull-request-available, website
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This is a request to add a brief note about the JAVA_HOME and ANT_HOME 
> environment variables to the build instructions on the Web site and the 
> GitHub repository. The changes on the two pages are as follows:
> [Apache NetBeans source and daily 
> builds|https://netbeans.apache.org/download/dev/index.html]
> You can of course build Apache NetBeans from source. To do so:
> # Clone the [https://github.com/apache/netbeans] GitHub repository.
> # Install Oracle’s Java or Open JDK (v8, v11).
> # Install Apache Ant 1.10 or greater ([https://ant.apache.org/]).
> # Set JAVA_HOME and ANT_HOME appropriately or leave them undefined.
> [Apache NetBeans|https://github.com/apache/netbeans/blob/master/README.md] 
> (GitHub README.md)
> Requirements
> * Git
> * Ant 1.9.9 or above
> * JDK 8 or 11 (to build NetBeans)
> * JDK 9 or above (to run NetBeans)
> * MinGW (optional), to build Windows Launchers
> *Note:* Set JAVA_HOME and ANT_HOME appropriately or leave them undefined.
> The hidden effect of the JAVA_HOME and ANT_HOME environment variables can be 
> a trap for developers not familiar with their use by Apache Ant. The build 
> fails if JAVA_HOME or ANT_HOME point to a different version than the one 
> required by NetBeans, even when the correct version is found on the PATH 
> environment variable.
> Ant will override whatever is found on the PATH with the values of JAVA_HOME 
> or ANT_HOME, as shown below:
> {noformat}
> $ which ant
> /usr/bin/ant
> $ ant -diagnostics | grep -e ant.version -e java.version
> ant.version: Apache Ant(TM) version 1.9.6 compiled on July 20 2018
> ant.java.version: 1.8
> java.version : 1.8.0_222
> $ export JAVA_HOME=$HOME/opt/jdk-13
> $ export ANT_HOME=$HOME/opt/apache-ant-1.10.7
> $ which ant
> /usr/bin/ant
> $ ant -diagnostics | grep -e ant.version -e java.version
> ant.version: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
> ant.java.version: 13
> java.version : 13
> java.version.date : 2019-09-17
> {noformat}
> Now that a new JDK is released every six months, the JAVA_HOME environment 
> variable on a developer's workstation is more likely to point to a version 
> other than JDK 8 or 11 required by NetBeans. And because NetBeans is a 
> graphical application often run and debugged from another copy of NetBeans, 
> it is more likely to be built directly on a developer's workstation rather 
> than on a separate build system.
> Please see the following message from the mailing list for details:
>  [Re: Building NetBeans 11.1 from source fails with compile 
> errors|https://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3C26c1f141-b021-4473-059f-41ec0b5e3613%40status6.com%3E]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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

2019-10-12 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16950127#comment-16950127
 ] 

Geertjan Wielenga commented on NETBEANS-236:


So let's try and get a clue about how to reproduce NETBEANS-2290, can you go 
over to that issue and provide steps to reproduce it?

> 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, 11.2
>Reporter: Gili
>Assignee: Gili
>Priority: Minor
> Attachments: defaults.zip
>
>
> 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
(v8.3.4#803005)

-
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] [Updated] (NETBEANS-236) Incorrect brace spacing in try-with-resources

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger updated NETBEANS-236:

Fix Version/s: (was: 9.0)

> 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, 11.2
>Reporter: Gili
>Assignee: Gili
>Priority: Minor
> Attachments: defaults.zip
>
>
> 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
(v8.3.4#803005)

-
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] [Updated] (NETBEANS-236) Incorrect brace spacing in try-with-resources

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger updated NETBEANS-236:

Environment: (was: build 152)

> 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, 11.2
>Reporter: Gili
>Assignee: Gili
>Priority: Major
> Fix For: 9.0
>
> Attachments: defaults.zip
>
>
> 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
(v8.3.4#803005)

-
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] [Updated] (NETBEANS-236) Incorrect brace spacing in try-with-resources

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger updated NETBEANS-236:

Priority: Minor  (was: Major)

> 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, 11.2
>Reporter: Gili
>Assignee: Gili
>Priority: Minor
> Fix For: 9.0
>
> Attachments: defaults.zip
>
>
> 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
(v8.3.4#803005)

-
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] [Updated] (NETBEANS-236) Incorrect brace spacing in try-with-resources

2019-10-12 Thread John Neffenger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Neffenger updated NETBEANS-236:

Affects Version/s: 11.2

> 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, 11.2
> Environment: build 152
>Reporter: Gili
>Assignee: Gili
>Priority: Major
> Fix For: 9.0
>
> Attachments: defaults.zip
>
>
> 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
(v8.3.4#803005)

-
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] [Created] (NETBEANS-3235) Cannot run and debug Java modular projects (Ant)

2019-10-12 Thread Cyril APAN (Jira)
Cyril APAN created NETBEANS-3235:


 Summary: Cannot run and debug Java modular projects (Ant)
 Key: NETBEANS-3235
 URL: https://issues.apache.org/jira/browse/NETBEANS-3235
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.1
 Environment: Windows 10, OpenJDK 13
Reporter: Cyril APAN
 Attachments: JavaModularApplication1.zip

I created a Java modular project in NetBeans 11.1, added a modular-info file 
and a simple class file (see attached zip file). I can compile it successfully 
but clicking on the Run or Debug buttons doesn't do anything. No actions are 
performed when trying to run or debug from menu entries as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-2099) System.out.flush() doesn't flush all data to output window

2019-10-12 Thread Laszlo Kishalmi (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laszlo Kishalmi resolved NETBEANS-2099.
---
Resolution: Cannot Reproduce

Tested in 11.2-beta2 with the built in Maven and Maven 3.5. I cannot reproduce 
it.
Though you need to realize that the system output in this case goes through 
Maven first then through the IDE. Also the flush is really OS dependent. Some 
OS is happily end the process before its output buffer is actually flushed.

> System.out.flush() doesn't flush all data to output window
> --
>
> Key: NETBEANS-2099
> URL: https://issues.apache.org/jira/browse/NETBEANS-2099
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Output Window
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE 10.0 (Build 
> incubator-netbeans-release-380-on-20181217)
> Java: 11.0.1; OpenJDK 64-Bit Server VM 11.0.1+13
> Runtime: OpenJDK Runtime Environment 11.0.1+13
> System: Windows 8.1 version 6.3 running on amd64; Cp1252; en_US (nb)
>Reporter: Stephan van Hulst
>Assignee: Laszlo Kishalmi
>Priority: Minor
>
> Consider the following application:
> {code:java}
> public static void main(String... args) {
>     System.out.print("Hello\nWorld!");
>     System.out.flush();
> }{code}
> After executing the first statement, the following line is printed to the 
> output window:
> {code}
> Hello
> {code}
> After executing the second statement, I expect the remainder of the printed 
> string to appear in the output window:
> {code}
> Hello
> World!
> {code}
> The flush does not appear to have any effect, however.
> When executing this program from the Windows command line, it works as 
> expected.
> Since the documentation of {{OutputStream.flush()}} mentions that the 
> behavior of flush is operating system dependent, this is not really a bug, 
> but it would be really nice if it flushed to the output window the same way 
> it flushes to the command line window.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-3234) Apache NetBeans running on JDK 11 cannot access package classes

2019-10-12 Thread Jira


[ 
https://issues.apache.org/jira/browse/NETBEANS-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16949996#comment-16949996
 ] 

Matthias Bläsing commented on NETBEANS-3234:


The call-chain on JDK 11 is this:
 * Package.getAnnotation(Class)
 * Package.getPackageInfo()
 * ClassLoader.loadClass(Module, String) (JDK9+)
 * ClassLoader.findClass(String, String) (JDK9+)
 * ClassLoader.findClass(String)

A naive suggestion: Why not move everything that is currently located in 
org.netbeans.ProxyClassLoader.loadClass(String, boolean), apart from the 
ClassLoader.resolveClass(Class) calls to a new 
org.netbeans.ProxyClassLoader.findClass(String), which delivers the missing 
override. Then org.netbeans.ProxyClassLoader.loadClass(String, boolean) would 
first call into the new findClass method and optionally resolve the returned 
class.

> Apache NetBeans running on JDK 11 cannot access package classes
> ---
>
> Key: NETBEANS-3234
> URL: https://issues.apache.org/jira/browse/NETBEANS-3234
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Boris Heithecker
>Priority: Blocker
>
> If a package-info element is defined in some package, it cannot be properly 
> accessed at runtime:  
>  
> java.lang.Package p = AnyClass.class.getPackage();
>  
> should return a package object representing the actual package-info element 
> of that package. It is, for example, used by the JAXB runtime to read 
> XmlSchema annotations at package level. 
>  
> This has been tested in oracle jdk11.0.4. Class java.lang.Package in Java 11 
> has a private field called "packageInfo" of type "Class", which should 
> hold a reference to the actual package-info class object, i.e. 
> AnyPackage.package-info. In NetBeans, always wrongly references 
> "java.lang.Package$1PackageInfoProxy", which is a fallback reference set if 
> no actual package-info could be found. 
>  
> The reason is most likely that neither 
>  
> org.netbeans.JarClassLoader
> nor org.netbeans.ProxyClassLoader
> nor org.netbeans.StandardModule$OneModuleClassLoader (all in 
> platform/o.n.bootstrap)
>  
> override method "java.lang.ClassLoader.findClass(String name)". The default 
> implementation throws an exceptions which causes the above fallback reference 
> to be set. 
>  
> This is a serious issue. If it is not fixed, the platform will not be fully 
> comptabile, among others, with the JAXB RI and also JAX-WS RI. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-2894) Warning - could not install some modules

2019-10-12 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16949993#comment-16949993
 ] 

Geertjan Wielenga commented on NETBEANS-2894:
-

Please use 11.2 beta2 which fixes this problem, beta 2 available: 
bit.ly/apache-netbeans-11-2-beta-2

The reason for this is licensing -- the JS parser we were using before could 
not be relicensed to Apache and therefore the user needed to install it 
themselves. We have fixed this with a correctly licensed parser in 11.2, use 
the beta above.

> Warning - could not install some modules
> 
>
> Key: NETBEANS-2894
> URL: https://issues.apache.org/jira/browse/NETBEANS-2894
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Andreas Ernst
>Priority: Major
>
> If i remember correcly, on some start of NetBeans, NetBeans wants to install 
> a module, this works.
> But after a new start of NetBeans i get this error:
>  
> Warning - could not install some modules:
>  Nashorn Integration - No module providing the capability 
> com.oracle.js.parser.implementation could be found.
>  27 further modules could not be installed due to the above problems.
> Warning - could not install some modules:
>      org.netbeans.libs.nashorn - No module providing the capability 
> com.oracle.js.parser.implementation could be found.
>      org.netbeans.modules.javascript2.doc - The module 
> org.netbeans.libs.nashorn would also need to be installed.
>      org.netbeans.modules.javascript2.extdoc - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.sdoc - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.jsdoc - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.model - The module 
> org.netbeans.libs.nashorn would also need to be installed.
>      org.netbeans.modules.javascript2.model - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.knockout - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.prototypejs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.editor - The module 
> org.netbeans.libs.nashorn would also need to be installed.
>      org.netbeans.modules.javascript2.editor - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.editor - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.jquery - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.jquery - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.extjs - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.extjs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.nodejs - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.nodejs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.html.angular - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.html.angular - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.html.knockout - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.html.knockout - The module 
> org.netbeans.modules.javascript2.knockout would also need to be installed.
>      org.netbeans.modules.javascript2.source.query - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.requirejs - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.requirejs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.kit - The module 
> org.netbeans.modules.javascript2.prototypejs would also need to be installed.
>      org.netbeans.modules.javascript2.kit 

[jira] [Commented] (NETBEANS-2894) Warning - could not install some modules

2019-10-12 Thread flexJoly (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16949991#comment-16949991
 ] 

flexJoly commented on NETBEANS-2894:


I get this error once a week or so. (this time it is directly after the last 
windows update)

And then javascript is not recognized anymore. 

 

I do not understand why Netbeans is "installing" modules while everything is 
already installed and worked. Everything is working normally and then just the 
next day at startup it is giving this error.

> Warning - could not install some modules
> 
>
> Key: NETBEANS-2894
> URL: https://issues.apache.org/jira/browse/NETBEANS-2894
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Andreas Ernst
>Priority: Major
>
> If i remember correcly, on some start of NetBeans, NetBeans wants to install 
> a module, this works.
> But after a new start of NetBeans i get this error:
>  
> Warning - could not install some modules:
>  Nashorn Integration - No module providing the capability 
> com.oracle.js.parser.implementation could be found.
>  27 further modules could not be installed due to the above problems.
> Warning - could not install some modules:
>      org.netbeans.libs.nashorn - No module providing the capability 
> com.oracle.js.parser.implementation could be found.
>      org.netbeans.modules.javascript2.doc - The module 
> org.netbeans.libs.nashorn would also need to be installed.
>      org.netbeans.modules.javascript2.extdoc - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.sdoc - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.jsdoc - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.model - The module 
> org.netbeans.libs.nashorn would also need to be installed.
>      org.netbeans.modules.javascript2.model - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.knockout - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.prototypejs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.editor - The module 
> org.netbeans.libs.nashorn would also need to be installed.
>      org.netbeans.modules.javascript2.editor - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.editor - The module 
> org.netbeans.modules.javascript2.doc would also need to be installed.
>      org.netbeans.modules.javascript2.jquery - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.jquery - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.extjs - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.extjs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.nodejs - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.nodejs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.html.angular - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.html.angular - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.html.knockout - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.html.knockout - The module 
> org.netbeans.modules.javascript2.knockout would also need to be installed.
>      org.netbeans.modules.javascript2.source.query - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.requirejs - The module 
> org.netbeans.modules.javascript2.editor would also need to be installed.
>      org.netbeans.modules.javascript2.requirejs - The module 
> org.netbeans.modules.javascript2.model would also need to be installed.
>      org.netbeans.modules.javascript2.kit - The module 
> org.netbeans.modules.javascript2.prototypejs would also need to be installed.
>      org.netbeans.modules.javascript2.kit - The module 
> 

[jira] [Commented] (NETBEANS-3234) Apache NetBeans running on JDK 11 cannot access package classes

2019-10-12 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16949989#comment-16949989
 ] 

Geertjan Wielenga commented on NETBEANS-3234:
-

And are you sure this should be a blocker for the release of 11.2?

> Apache NetBeans running on JDK 11 cannot access package classes
> ---
>
> Key: NETBEANS-3234
> URL: https://issues.apache.org/jira/browse/NETBEANS-3234
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Boris Heithecker
>Priority: Blocker
>
> If a package-info element is defined in some package, it cannot be properly 
> accessed at runtime:  
>  
> java.lang.Package p = AnyClass.class.getPackage();
>  
> should return a package object representing the actual package-info element 
> of that package. It is, for example, used by the JAXB runtime to read 
> XmlSchema annotations at package level. 
>  
> This has been tested in oracle jdk11.0.4. Class java.lang.Package in Java 11 
> has a private field called "packageInfo" of type "Class", which should 
> hold a reference to the actual package-info class object, i.e. 
> AnyPackage.package-info. In NetBeans, always wrongly references 
> "java.lang.Package$1PackageInfoProxy", which is a fallback reference set if 
> no actual package-info could be found. 
>  
> The reason is most likely that neither 
>  
> org.netbeans.JarClassLoader
> nor org.netbeans.ProxyClassLoader
> nor org.netbeans.StandardModule$OneModuleClassLoader (all in 
> platform/o.n.bootstrap)
>  
> override method "java.lang.ClassLoader.findClass(String name)". The default 
> implementation throws an exceptions which causes the above fallback reference 
> to be set. 
>  
> This is a serious issue. If it is not fixed, the platform will not be fully 
> comptabile, among others, with the JAXB RI and also JAX-WS RI. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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] [Comment Edited] (NETBEANS-3234) Apache NetBeans running on JDK 11 cannot access package classes

2019-10-12 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16949987#comment-16949987
 ] 

Geertjan Wielenga edited comment on NETBEANS-3234 at 10/12/19 9:57 AM:
---

{quote}//Fails in NetBeans 11.1 on oracle jdk11.0.4
//Succeeds with NetBeans platform 8.2 on oracle jdk1.8.0_162
assert annot != null;{quote}

I can reproduce, but not when I run your example with NetBeans 11.1 on JDK 8.


was (Author: geertjanwielenga):
{quote}//Fails in NetBeans 11.1 on oracle jdk11.0.4
//Succeeds with NetBeans platform 8.2 on oracle jdk1.8.0_162
assert annot != null;{quote}

I can reproduce, but not when I run NetBeans 11.1 on JDK 8.

> Apache NetBeans running on JDK 11 cannot access package classes
> ---
>
> Key: NETBEANS-3234
> URL: https://issues.apache.org/jira/browse/NETBEANS-3234
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Boris Heithecker
>Priority: Blocker
>
> If a package-info element is defined in some package, it cannot be properly 
> accessed at runtime:  
>  
> java.lang.Package p = AnyClass.class.getPackage();
>  
> should return a package object representing the actual package-info element 
> of that package. It is, for example, used by the JAXB runtime to read 
> XmlSchema annotations at package level. 
>  
> This has been tested in oracle jdk11.0.4. Class java.lang.Package in Java 11 
> has a private field called "packageInfo" of type "Class", which should 
> hold a reference to the actual package-info class object, i.e. 
> AnyPackage.package-info. In NetBeans, always wrongly references 
> "java.lang.Package$1PackageInfoProxy", which is a fallback reference set if 
> no actual package-info could be found. 
>  
> The reason is most likely that neither 
>  
> org.netbeans.JarClassLoader
> nor org.netbeans.ProxyClassLoader
> nor org.netbeans.StandardModule$OneModuleClassLoader (all in 
> platform/o.n.bootstrap)
>  
> override method "java.lang.ClassLoader.findClass(String name)". The default 
> implementation throws an exceptions which causes the above fallback reference 
> to be set. 
>  
> This is a serious issue. If it is not fixed, the platform will not be fully 
> comptabile, among others, with the JAXB RI and also JAX-WS RI. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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-3234) Apache NetBeans running on JDK 11 cannot access package classes

2019-10-12 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16949987#comment-16949987
 ] 

Geertjan Wielenga commented on NETBEANS-3234:
-

{quote}//Fails in NetBeans 11.1 on oracle jdk11.0.4
//Succeeds with NetBeans platform 8.2 on oracle jdk1.8.0_162
assert annot != null;{quote}

I can reproduce, but not when I run NetBeans 11.1 on JDK 8.

> Apache NetBeans running on JDK 11 cannot access package classes
> ---
>
> Key: NETBEANS-3234
> URL: https://issues.apache.org/jira/browse/NETBEANS-3234
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Boris Heithecker
>Priority: Blocker
>
> If a package-info element is defined in some package, it cannot be properly 
> accessed at runtime:  
>  
> java.lang.Package p = AnyClass.class.getPackage();
>  
> should return a package object representing the actual package-info element 
> of that package. It is, for example, used by the JAXB runtime to read 
> XmlSchema annotations at package level. 
>  
> This has been tested in oracle jdk11.0.4. Class java.lang.Package in Java 11 
> has a private field called "packageInfo" of type "Class", which should 
> hold a reference to the actual package-info class object, i.e. 
> AnyPackage.package-info. In NetBeans, always wrongly references 
> "java.lang.Package$1PackageInfoProxy", which is a fallback reference set if 
> no actual package-info could be found. 
>  
> The reason is most likely that neither 
>  
> org.netbeans.JarClassLoader
> nor org.netbeans.ProxyClassLoader
> nor org.netbeans.StandardModule$OneModuleClassLoader (all in 
> platform/o.n.bootstrap)
>  
> override method "java.lang.ClassLoader.findClass(String name)". The default 
> implementation throws an exceptions which causes the above fallback reference 
> to be set. 
>  
> This is a serious issue. If it is not fixed, the platform will not be fully 
> comptabile, among others, with the JAXB RI and also JAX-WS RI. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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] [Created] (NETBEANS-3234) Apache NetBeans running on JDK 11 cannot access package classes

2019-10-12 Thread Boris Heithecker (Jira)
Boris Heithecker created NETBEANS-3234:
--

 Summary: Apache NetBeans running on JDK 11 cannot access package 
classes
 Key: NETBEANS-3234
 URL: https://issues.apache.org/jira/browse/NETBEANS-3234
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.1
Reporter: Boris Heithecker


If a package-info element is defined in some package, it cannot be properly 
accessed at runtime:  
 
java.lang.Package p = AnyClass.class.getPackage();
 
should return a package object representing the actual package-info element of 
that package. It is, for example, used by the JAXB runtime to read XmlSchema 
annotations at package level. 
 
This has been tested in oracle jdk11.0.4. Class java.lang.Package in Java 11 
has a private field called "packageInfo" of type "Class", which should hold 
a reference to the actual package-info class object, i.e. 
AnyPackage.package-info. In NetBeans, always wrongly references 
"java.lang.Package$1PackageInfoProxy", which is a fallback reference set if no 
actual package-info could be found. 
 
The reason is most likely that neither 
 
org.netbeans.JarClassLoader
nor org.netbeans.ProxyClassLoader
nor org.netbeans.StandardModule$OneModuleClassLoader (all in 
platform/o.n.bootstrap)
 
override method "java.lang.ClassLoader.findClass(String name)". The default 
implementation throws an exceptions which causes the above fallback reference 
to be set. 
 
This is a serious issue. If it is not fixed, the platform will not be fully 
comptabile, among others, with the JAXB RI and also JAX-WS RI. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
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