mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8170987: Module system implementation refresh (12/2016)
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com> Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com> Co-authored-by: Srikanth Adayapalam <srikanth.adayapalam@oracle.com> Co-authored-by: Mandy Chung <mandy.chung@oracle.com> Reviewed-by: mcimadamore
This commit is contained in:
parent
353a59448d
commit
2381943e61
147 changed files with 2438 additions and 1528 deletions
|
@ -618,6 +618,36 @@ public class ByteCodeTest {
|
|||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String visitModule(CONSTANT_Module_info c, Integer p) {
|
||||
|
||||
String value = slist.get(p);
|
||||
if (value == null) {
|
||||
try {
|
||||
value = visit(cfpool.get(c.name_index), c.name_index);
|
||||
slist.set(p, value);
|
||||
} catch (ConstantPoolException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String visitPackage(CONSTANT_Package_info c, Integer p) {
|
||||
|
||||
String value = slist.get(p);
|
||||
if (value == null) {
|
||||
try {
|
||||
value = visit(cfpool.get(c.name_index), c.name_index);
|
||||
slist.set(p, value);
|
||||
} catch (ConstantPoolException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String visitString(CONSTANT_String_info c, Integer p) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue