Well, it seems, my issue was caused by a specific Gradle project open.
On 3/17/22 18:20, Laszlo Kishalmi wrote:
Thanks!
Finally, I was able to build 17.0.2 and an nbm out of that.
Unfortunately it could not fix my issue. So I tested it further.
At the end I was not able to reproduce the issue with a vanilla
NetBeans 13.
Interestingly, the solution was to close my other open projects.
(However the exception happened while parsing GradleBaseProject.java
which is in the same project as GradleFiles.java)
Now I'd try to figure out which of my open project caused the issue...
On 3/16/22 21:22, Michael Bien wrote:
my local copy points at:
commit 4cee18550fee6331a582c9eaf648fc91b1f80107 (HEAD -> master,
origin/master, origin/HEAD)
Author: Jaroslav Tulach <[email protected]>
Date: Wed Jan 12 15:01:44 2022 +0100
Concentrating the bootclasspath manipulation into a single place
I built it the last time a few weeks ago when NB 13 was at rc 2 I
believe. Might be worth to give it another try with the hash above to
exclude that HEAD has issues with JDK 17 (its being prepared for JDK
18).
-mbien
On 17.03.22 05:01, Laszlo Kishalmi wrote:
Thanks Michael!
Took your advice, got this one as a result:
-separate-jars:
[copy] Copying 1 file to
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/build/classes/META-INF/versions/11/javax/lang/model
[jar] Building jar:
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/dist/nb-javac-jdk-17.0.2+8-api.jar
[jar] Building jar:
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/dist/nb-javac-jdk-17.0.2+8-impl.jar
[delete] Deleting:
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/dist/nb-javac.jar
-verify-source-version-classes:
BUILD FAILED
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/build.xml:309:
Patched version of SourceVersion should be different!
I'm clueless from here.
BTW I've used the master branch from
https://github.com/JaroslavTulach/nb-javac as the oracle/nb-javac
seems to be outdated.
On 3/16/22 17:33, Michael Bien wrote:
On 17.03.22 01:29, Laszlo Kishalmi wrote:
On 3/16/22 15:43, Neil C Smith wrote:
On Wed, 16 Mar 2022, 22:13 Laszlo Kishalmi,
<[email protected]>
wrote:
I've tried to deactivate the nb-javac plugin to take the
advantage of my
local 17.0.2 JSK installation, but even after restart the nb-javac
plugin is active.
You need to uninstall it rather than deactivate it, otherwise it
just gets
reactivated by the module system (it's recommended by another
module IIRC).
That could be an issue with Snap packaging, since the package it
is a read-only filesystem. That was an option before 13, as
nb-javac was installed in the user directory.
I'm going to check if I could build a module with 17.0.2 somehow...
building nb-javac is fairly easy, check it out and modify:
diff --git
a/make/langtools/netbeans/nb-javac/nbproject/project.properties
b/make/langtools/netbeans/nb-javac/nbproject/project.properties
index d7aef9a..b501da6 100644
--- a/make/langtools/netbeans/nb-javac/nbproject/project.properties
+++ b/make/langtools/netbeans/nb-javac/nbproject/project.properties
@@ -1,6 +1,5 @@
-
-jdk.git.url=https://github.com/openjdk/jdk
-jdk.git.commit=jdk-18+25
+jdk.git.url=https://github.com/openjdk/jdk17u/
+jdk.git.commit=jdk-17.0.2+8
nb-javac-ver=${jdk.git.commit}
build with:
JAVA_HOME=~/dev/java/jdk-17.0.2.8.1-corretto/ ant -f
./make/langtools/netbeans/nb-javac clean
JAVA_HOME=~/dev/java/jdk-17.0.2.8.1-corretto/ ant -f
./make/langtools/netbeans/nb-javac jar
-mbien
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists