mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #15740 from smowton/smowton/feature/call-and-type-telemetry
Java: add extraction quality telemetry; improve stringification of some erroneous expressions
This commit is contained in:
@@ -15,3 +15,4 @@ public class Test {
|
||||
// Diagnostic Matches: Erroneous node in tree: (ERROR)
|
||||
// Diagnostic Matches: In file Test.java:8:15 no end location for JCMethodInvocation : yield(x)
|
||||
// Diagnostic Matches: 1 errors during annotation processing
|
||||
// Diagnostic Matches: Unknown or erroneous type for expression of kind ErrorExpr
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
| Test.java:0:0:0:0 | 2 javac errors |
|
||||
| Test.java:6:5:6:15 | Unknown or erroneous type for expression of kind TypeAccess |
|
||||
| Test.java:6:23:6:39 | Unexpected symbol for constructor: new NoSuchClass() |
|
||||
| Test.java:6:23:6:39 | Unknown or erroneous type for expression of kind ClassInstanceCreation |
|
||||
| Test.java:6:27:6:37 | Unknown or erroneous type for expression of kind TypeAccess |
|
||||
| file://:0:0:0:0 | 2 errors during annotation processing |
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
| Test.java:6:5:6:15 | <TypeAccess of ErrorType> |
|
||||
| Test.java:6:23:6:39 | <ClassInstanceExpr that calls a missing constructor> |
|
||||
| Test.java:6:27:6:37 | <TypeAccess of ErrorType> |
|
||||
| Test.java:7:12:7:14 | nsc |
|
||||
|
||||
@@ -7,9 +7,9 @@ Test.java:
|
||||
# 5| 3: [TypeAccess] NoSuchClass
|
||||
# 5| 5: [BlockStmt] { ... }
|
||||
# 6| 0: [LocalVariableDeclStmt] var ...;
|
||||
# 6| 0: [TypeAccess] NoSuchClass
|
||||
# 6| 0: [TypeAccess] <TypeAccess of ErrorType>
|
||||
# 6| 1: [LocalVariableDeclExpr] nsc
|
||||
# 6| 0: [ClassInstanceExpr] <ClassInstanceExpr that calls a missing constructor>
|
||||
# 6| -3: [TypeAccess] NoSuchClass
|
||||
# 6| -3: [TypeAccess] <TypeAccess of ErrorType>
|
||||
# 7| 1: [ReturnStmt] return ...
|
||||
# 7| 0: [VarAccess] nsc
|
||||
|
||||
@@ -12,3 +12,5 @@ public class Test {
|
||||
// Diagnostic Matches: Unexpected symbol for constructor: new NoSuchClass()
|
||||
// Diagnostic Matches: 2 javac errors
|
||||
// Diagnostic Matches: 2 errors during annotation processing
|
||||
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess
|
||||
// Diagnostic Matches: Unknown or erroneous type for expression of kind ClassInstanceCreation
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
| Test.java:0:0:0:0 | 1 javac errors |
|
||||
| Test.java:4:13:4:30 | Unable to extract method reference Unavailable.f()::g with no owner type |
|
||||
| Test.java:4:13:4:30 | Unknown or erroneous type for expression of kind MemberReference |
|
||||
| Test.java:4:13:4:30 | Unknown or erroneous type for expression of kind TypeAccess |
|
||||
|
||||
@@ -8,3 +8,5 @@ public class Test {
|
||||
|
||||
// Diagnostic Matches: 1 javac errors
|
||||
// Diagnostic Matches: Unable to extract method reference Unavailable.f()::g with no owner type
|
||||
// Diagnostic Matches: Unknown or erroneous type for expression of kind MemberReference
|
||||
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess
|
||||
|
||||
Reference in New Issue
Block a user