Files
luaj/TODO

21 lines
990 B
Plaintext
Raw Permalink Normal View History

2023-04-23 15:03:15 +02:00
The current version doesn't compile with:
ant jar-jme|all
The Java compiler complains with an obscure error:
[javac] /Users/ducos/Projects/luaj/build/jme/src/org/luaj/vm2/LuaValue.java:532: error: cannot access StringBuilder
[javac] public String tojstring() { return typename() + ": " + Integer.toHexString(hashCode()); }
This is because, in recent versions of Java, the concatenation of strings is automatically performed
with java.lang.StringBuilder
Unfortunately, this class is not available in the JME environment.
2023-04-23 15:04:55 +02:00
A workaround would be to replace the + concatenation with the String.concat() method, like this:
2023-04-23 15:03:15 +02:00
- public String tojstring() { return typename() + ": " + Integer.toHexString(hashCode()); }
+ public String tojstring() { return typename().concat(": ").concat(Integer.toHexString(hashCode())); }
But it has to be done everywhere in the code.
Maybe there is a more straightforward method, with a compiler's flag.