-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Java: More details about nested arrays #6552
Copy link
Copy link
Closed
Labels
Description
Given a multi-dimensional array, the extractor doesn't seem to provide enough information about nested sub-arrays.
For example:
public class Test {
void test() {
byte[][] array = new byte[][] {
new byte[] { 1, 2 },
new byte[] { 3, 4 ,5 }
};
}
}The following query shows only IntegerLiteral and TypeAccess for the nested arrays:
import java
from ArrayCreationExpr array
select array.getInit().getAnInit().getAChildExpr().getAPrimaryQlClass()Instead, ArrayCreationExpr should be used to represent the nested arrays, shouldn't it?
This issue was found here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.