-
Bug
-
Resolution: Fixed
-
P3
-
16
-
None
-
b31
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8270510 | 18 | Hannes Wallnoefer | P3 | Resolved | Fixed | b07 |
JDK-8270762 | 17.0.1 | Hannes Wallnoefer | P3 | Resolved | Fixed | b03 |
From javadoc-dev
Hello,
When I was creating tests forJDK-8259216 (namely this example), I encountered another problem, where instance inner class parameterized types (generics) in javadoc omit outer classes' generic information.
An example:
Tree.java
public class Tree<T> {
public class Node {
T data;
Node left;
Node right;
// etc..
}
Node root;
// etc..
}
User.java
public class User {
public void take(Tree<Integer>.Node now, Tree<String>.Node other) {}
public void take(Tree<Integer> now, Tree<String> other) {}
}
Observe the javadoc method summaries (same for details) are
void take(Tree.Node now, Tree.Node other)
void take(Tree<java.lang.Integer> now, Tree<java.lang.String> other)
while it's the most reasonable from the test code above that both should include the generic information.
Hello,
When I was creating tests for
An example:
Tree.java
public class Tree<T> {
public class Node {
T data;
Node left;
Node right;
// etc..
}
Node root;
// etc..
}
User.java
public class User {
public void take(Tree<Integer>.Node now, Tree<String>.Node other) {}
public void take(Tree<Integer> now, Tree<String> other) {}
}
Observe the javadoc method summaries (same for details) are
void take(Tree.Node now, Tree.Node other)
void take(Tree<java.lang.Integer> now, Tree<java.lang.String> other)
while it's the most reasonable from the test code above that both should include the generic information.
- backported by
-
JDK-8270510 Handling type arguments from outer classes for inner class in javadoc
-
- Resolved
-
-
JDK-8270762 Handling type arguments from outer classes for inner class in javadoc
-
- Resolved
-