I had a go at this today. This package has multiple issues. I tried to
work around the RuntimeExceptions by returning true instead of throwing
an exception. Very bad I know.

It turned out that not only one but four classes are not properly
generated at build time. Those will cause missing symbol errors later.
Then there are several removed or deprecated sun.* classes that either
cause a build failure or warnings.

I'm attaching a simple patch that makes more of those errors visible.

lwjgl 2.9.3 is a legacy release from 2015. It is the last version of the
2.x series and no longer supported. Upstream moved to lwjgl 3. If nobody
can fix this we should consider to remove lwjgl because the new version
3 would require new Kotlin build dependencies and more.

Markus
From: Markus Koschany <a...@debian.org>
Date: Mon, 23 Apr 2018 22:30:13 +0200
Subject: java9

---
 src/java/org/lwjgl/util/generator/GeneratorProcessor.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/java/org/lwjgl/util/generator/GeneratorProcessor.java b/src/java/org/lwjgl/util/generator/GeneratorProcessor.java
index dc03404..754b262 100644
--- a/src/java/org/lwjgl/util/generator/GeneratorProcessor.java
+++ b/src/java/org/lwjgl/util/generator/GeneratorProcessor.java
@@ -87,11 +87,8 @@ public class GeneratorProcessor extends AbstractProcessor {
 			first_round = false;
 			return true;
 		} catch (Exception e) {
-			if ( lastFile == null ) {
-				throw new RuntimeException(e);
-			} else {
-				throw new RuntimeException("\n-- Failed to process template: " + lastFile.asType().toString() + " --", e);
-			}
+			System.out.println("\n-- Failed to process template: " + lastFile.asType().toString() + " --");
+			return true;
 		}
 	}
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to