Closed traue closed 1 month ago
Interesting, @traue could you provide input files that allow us to reproduce this bug?
Hi @tsaglam, thanks for your reply!
I'm using jPlag 5.0.0 and Java 21
$ java -version
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment Homebrew (build 21.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.2, mixed mode, sharing)
I thought it was a folder naming issue, but I renamed each one and the same exception was shown
Attached are the files I am using.
Best regards
T.
It looks like some submissions aren't valid Java code (i.e. cut off at the beginning). Javac does error recovery but then emits AST nodes with no proper source position.
I guess JPlag should fail more gracefully here, but I also assume that the submissions aren't supposed to be like that.
@SirYwell you are right, the code does not compile. @traue in most cases (also depending on the language), JPlag cannot deal with invalid code. However, the error messages returned by JPlag are not helpful. For that, we can provide a fix. However, regarding invalid code, it is best to filter it out beforehand.
Closed by #1768.
Hi,
I'm getting the fowling issue on terminal:
Command:
Shows:
I'm using JDK 21
Any ideas?
Best regart
T.