changeset 2017:65f36a905e1e default tip

revert and just change Compiled.VERSION
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 02 Oct 2025 14:15:48 -0600
parents 470a089c95aa
children
files src/luan/impl/Compiled.java src/luan/impl/LuanCompiler.java
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/impl/Compiled.java	Thu Oct 02 13:52:24 2025 -0600
+++ b/src/luan/impl/Compiled.java	Thu Oct 02 14:15:48 2025 -0600
@@ -133,7 +133,7 @@
 	}
 
 
-	private static final int VERSION = 7;
+	private static final int VERSION = 8;
 	private static final File tmpDir;
 	static {
 		File f = new File(System.getProperty("java.io.tmpdir"));
--- a/src/luan/impl/LuanCompiler.java	Thu Oct 02 13:52:24 2025 -0600
+++ b/src/luan/impl/LuanCompiler.java	Thu Oct 02 14:15:48 2025 -0600
@@ -47,8 +47,6 @@
 		}
 		return closure;
 	}
-
-	private static final String fileVersion = "1";
 
 	private static synchronized Class getClass(String sourceText,String sourceName)
 		throws LuanException
@@ -65,7 +63,7 @@
 			byte[] a = MessageDigest.getInstance("MD5").digest(key.getBytes());
 			String s = Base64.getUrlEncoder().encodeToString(a);
 //System.err.println("qqqqqqqqqq "+sourceName);
-			fileName = s + "." + fileVersion + ".luanc";
+			fileName = s + ".luanc";
 		} catch(NoSuchAlgorithmException e) {
 			throw new RuntimeException(e);
 		}