[jira] [Commented] (NETBEANS-6285) Netbeans 12.6 seems no properly run on JDK 8

2022-01-05 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach commented on NETBEANS-6285:
---

I've just built recent NetBeans:
{code}
netbeans$ git log | head -n 1
commit 76183f342a62d9f0e6732d7b500430d34d813b54
netbeans$ JAVA_HOME=/jdk-11/ ant build
{code}
and then verified whether the classfiles are correct using the 
[ValidateClassFilesTest introduced by 
PR-2761|https://github.com/apache/netbeans/pull/2761]:
{code}
netbeans$ ant -f platform/o.n.core/ -Dtest.type=qa-functional test-single 
-Dtest.includes=**/ValidateClassFilesTest*
{code}
they are - e.g. they all shall have [major classpath version 
52|https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers]
 and thus be targetted for JDK8. The same applies to 
{{org.netbeans.modules.java.source.parsing.FileObjects}}:
{code}
netbeans$ cd nbbuild
nbbuild$ javap -v -c -cp 
netbeans/java/modules/org-netbeans-modules-java-source-base.jar 
org/netbeans/modules/java/source/parsing/FileObjects | head -n7
Classfile 
jar:file:/netbeans/java/modules/org-netbeans-modules-java-source-base.jar!/org/netbeans/modules/java/source/parsing/FileObjects.class
  Last modified 6.1.2022; size 29135 bytes
  MD5 checksum 8b8fe1fd32aa92135598fe1947a5c420
  Compiled from "FileObjects.java"
public class org.netbeans.modules.java.source.parsing.FileObjects
  minor version: 0
  major version: 52
{code}
however, there is really a call to {{CharBuffer.flip()}}:
{code}
nbbuild$ javap -c -cp 
netbeans/java/modules/org-netbeans-modules-java-source-base.jar 
org/netbeans/modules/java/source/parsing/FileObjects | grep flip -C3
 132: invokevirtual #75 // Method 
java/nio/CharBuffer.append:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
 135: bipush32
 137: invokevirtual #76 // Method 
java/nio/CharBuffer.append:(C)Ljava/nio/CharBuffer;
 140: invokevirtual #77 // Method 
java/nio/CharBuffer.flip:()Ljava/nio/CharBuffer;
 143: invokespecial #73 // Method 
org/netbeans/modules/java/source/parsing/FileObjects$MemoryFileObject."":(Ljava/lang/String;Ljava/lang/String;Ljava/net/URI;JLjava/nio/CharBuffer;)V
 146: areturn
{code}
this is caused by nb-javac passing bootclasspath option when compiling the 
module and thus disabling usage of {{--release}}:
{code}
netbeans$ JAVA_HOME=~/bin/jdk-11 ant -f java/java.source.base/ -v build | grep 
-- -X.*bootclasspath
 [nb-javac] 
'-Xbootclasspath/p:/home/devel/NetBeansProjects/netbeans/java/libs.javacapi/external/nb-javac-jdk-17.0.1-ga-api.jar:/home/devel/NetBeansProjects/netbeans/java/libs.javacapi/external/nb-javac-jdk-17.0.1-ga.jar'
{code}


> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Assignee: Jaroslav Tulach
>Priority: Major
> Attachments: messages.log
>
>
> After a full fresh install of NB12.6 and trying to run with Azul Open JDK 1.8 
> 312, there are several ClassNotFoundExceptions in the logs. It seems that NB 
> looks for missing methods that make NB not longer properly. For example, it 
> is no longer possible to properly format Java sources files due to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2022-01-05 Thread Neil C Smith (Jira)


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

Neil C Smith commented on NETBEANS-6285:


[~jmborer] you can bring it up on dev@ but I don't see anyone putting the time 
into a new Maven release for this bug even if we were to ship updates to the 
IDE. In theory, most of the platform will still support JDK 8 from NB13 
(modules that require JDK 11 will be marked in their manifest) - but it won't 
be officially supported.

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a full fresh install of NB12.6 and trying to run with Azul Open JDK 1.8 
> 312, there are several ClassNotFoundExceptions in the logs. It seems that NB 
> looks for missing methods that make NB not longer properly. For example, it 
> is no longer possible to properly format Java sources files due to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2022-01-04 Thread Jean-Marc Borer (Jira)


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

Jean-Marc Borer commented on NETBEANS-6285:
---

[~neilcsmith] another option could be to release the maven dependencies with 
_jdk8_ qualifier as well. 

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a full fresh install of NB12.6 and trying to run with Azul Open JDK 1.8 
> 312, there are several ClassNotFoundExceptions in the logs. It seems that NB 
> looks for missing methods that make NB not longer properly. For example, it 
> is no longer possible to properly format Java sources files due to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2022-01-04 Thread Neil C Smith (Jira)


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

Neil C Smith commented on NETBEANS-6285:


[~jmborer] for platform applications, if you have to continue supporting JDK 8, 
you could build the platform on JDK 8 to work around this. It sounds like our 
switch to building binaries on JDK 11 in preparation for NB13 has a few quirks.

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a full fresh install of NB12.6 and trying to run with Azul Open JDK 1.8 
> 312, there are several ClassNotFoundExceptions in the logs. It seems that NB 
> looks for missing methods that make NB not longer properly. For example, it 
> is no longer possible to properly format Java sources files due to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2022-01-03 Thread Jean-Marc Borer (Jira)


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

Jean-Marc Borer commented on NETBEANS-6285:
---

Remember that it is not only the IDE that get impacted. We have several NB 
platform apps, that we upgrade on a regular base and still have to use Java 8. 
It means that we cannot use any version after 12.5 without upgrading to JDK 9+. 
This should definitely be documented or clearly stated in the release notes.

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a full fresh install of NB12.6 and trying to run with Azul Open JDK 1.8 
> 312, there are several ClassNotFoundExceptions in the logs. It seems that NB 
> looks for missing methods that make NB not longer properly. For example, it 
> is no longer possible to properly format Java sources files due to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2022-01-03 Thread Thomas Schapitz (Jira)


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

Thomas Schapitz commented on NETBEANS-6285:
---

@voters Please extend your votes to the cause NETBEANS-6349

Possible workarounds: use JDK >= 9 or NB Versions 12.3 or earlier.

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a fully fresh install of NB12.6 and trying to run on Azul Open JDK 312, 
> there are several ClassNotFoundExceptions in the logs. It seems that NB looks 
> for missing methods that makes NB not longer properly. For example, it is no 
> longer possible to properly format Java sources files do to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2021-12-31 Thread Thomas Schapitz (Jira)


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

Thomas Schapitz commented on NETBEANS-6285:
---

See reasoning and workaround in NETBEANS-6349

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a fully fresh install of NB12.6 and trying to run on Azul Open JDK 312, 
> there are several ClassNotFoundExceptions in the logs. It seems that NB looks 
> for missing methods that makes NB not longer properly. For example, it is no 
> longer possible to properly format Java sources files do to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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-6285) Netbeans 12.6 seems no properly run on JDK 8

2021-12-20 Thread Emil Hevald (Jira)


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

Emil Hevald commented on NETBEANS-6285:
---

Same, or atleast similar, issue on Oracle JDK 1.8. Even though I don't get the 
class not found, I get quit a few NoSuchMethod for java.nio.CharBuffer.flip. 

 
1.8.0_192; Java HotSpot(TM) 64-Bit Server VM 25.192-b12; Oracle Corporation
 
java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer;
    at 
org.netbeans.modules.java.source.parsing.FileObjects.memoryFileObject(FileObjects.java:516)
    at 
org.netbeans.modules.java.source.parsing.FileObjects.memoryFileObject(FileObjects.java:490)
    at 
org.netbeans.modules.java.source.save.Reformatter.reformat(Reformatter.java:114)
    at 
org.netbeans.modules.java.source.save.Reformatter.reformat(Reformatter.java:107)
    at 
org.netbeans.modules.java.ui.CategorySupport$2.run(CategorySupport.java:280)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)

> Netbeans 12.6 seems no properly run on JDK 8
> 
>
> Key: NETBEANS-6285
> URL: https://issues.apache.org/jira/browse/NETBEANS-6285
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Platform
>Affects Versions: 12.6
>Reporter: Jean-Marc Borer
>Priority: Major
> Attachments: messages.log
>
>
> After a fully fresh install of NB12.6 and trying to run on Azul Open JDK 312, 
> there are several ClassNotFoundExceptions in the logs. It seems that NB looks 
> for missing methods that makes NB not longer properly. For example, it is no 
> longer possible to properly format Java sources files do to a 
> java/nio/CharBuffer method missing.
> Is NB platform supposed to no longer work with Java 8?



--
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