BradWalker commented on code in PR #4331:
URL: https://github.com/apache/netbeans/pull/4331#discussion_r913886027
##########
java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorVisitor.java:
##########
@@ -5512,7 +5512,7 @@ public Value getValue(Field field) {
@Override
public Map<Field, Value> getValues(List<? extends Field> list) {
- List[] listByTypes = new List[types.length];
+ List<Field>[] listByTypes = new List[types.length];
Review Comment:
Tried and was unable to make it work..
```
[nb-javac] Compiling 190 source files to
/home/bwalker/src/netbeans/java/debugger.jpda/build/classes
[repeat]
/home/bwalker/src/netbeans/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorVisitor.java:5515:
error: cannot create array with '<>'
[repeat] List<Field>[] listByTypes = new List<>[types.length];
[repeat] ^
[repeat] 1 error
[nbmerge] Failed to build target: all-debugger.jpda
```
If I fill in the diamond operator with Field, I get a generic array creation
error.
I tried..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists