Merge pull request #18554 from smowton/smowton/admin/test-gbk-xml-extraction

Java: Add tests for XML and Java extraction with GBK charset
This commit is contained in:
Chris Smowton
2025-02-21 17:27:32 +00:00
committed by GitHub
15 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Test.java:
# 0| [CompilationUnit] Test
# 1| 1: [Class] Test

View File

@@ -0,0 +1 @@
semmle/code/java/PrintAst.ql

View File

@@ -0,0 +1,4 @@
public class Test {
}
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@@ -0,0 +1 @@
//semmle-extractor-options: --encoding GBK

View File

@@ -0,0 +1 @@
| Test.java:4:1:4:7 | // \u4f60\u597d\u4e16\u754c |

View File

@@ -0,0 +1,4 @@
import java
from Javadoc c
select c