Re: NetBeans 11.1 with Java 11 fails to read package annotations

2019-10-12 Thread Boris Heithecker
Filed an issue https://issues.apache.org/jira/browse/NETBEANS-3234 On Sat, 12 Oct 2019 at 11:12, Boris Heithecker wrote: > So if I'm not taken completely wrong, the reason is that > neither org.netbeans.JarClassLoader nor org.netbeans.ProxyClassLoader nor > org.netbeans.StandardModule$OneModuleC

Re: NetBeans 11.1 with Java 11 fails to read package annotations

2019-10-12 Thread Boris Heithecker
So if I'm not taken completely wrong, the reason is that neither org.netbeans.JarClassLoader nor org.netbeans.ProxyClassLoader nor org.netbeans.StandardModule$OneModuleClassLoader (all in platform/o.n.bootstrap) override "protected Class findClass(String name) throws ClassNotFoundException" in java

Re: NetBeans 11.1 with Java 11 fails to read package annotations

2019-10-12 Thread Geertjan Wielenga
On Sat, Oct 12, 2019 at 9:45 AM Boris Heithecker wrote: > It fails even if I switch to JDK 11 and NetBeans 8.2. > NetBeans 8.2 does not support JDK 11. Gj > Boris > > Geertjan Wielenga schrieb am Sa., 12. Okt. 2019, > 09:14: > > > So first start by using the same JDK for both to see whethe

Re: NetBeans 11.1 with Java 11 fails to read package annotations

2019-10-12 Thread Boris Heithecker
I got a little closer to the problem now. So, take this line and debug it a) in plain Java 11, and b) in this NetBeans platform (any version but running on JDK 11): java.lang.Package p = Main.class.getPackage(); Class java.lang.Package in Java 11 differs in many aspects from Java 8. In Java 11, i

Re: NetBeans 11.1 with Java 11 fails to read package annotations

2019-10-12 Thread Boris Heithecker
It's definitely not a JDK problem. The code works fine in a non-platform application with jdk11.0.4. It's a problem of the combination JDK 11 plus NetBeans Platform. It fails even if I switch to JDK 11 and NetBeans 8.2. Boris Geertjan Wielenga schrieb am Sa., 12. Okt. 2019, 09:14: > So first sta

Re: NetBeans 11.1 with Java 11 fails to read package annotations

2019-10-12 Thread Geertjan Wielenga
So first start by using the same JDK for both to see whether it is a JDK problem (probably since JDK 11 is very different to JDK 8) or not. Gj On Sat, 12 Oct 2019 at 08:50, Boris Heithecker wrote: > Hi all, > it seems that a NetBeans 11.1 platform app running on Java 11 (oracle > jdk11.0.4) doe