Skip to content

Commit 166534c

Browse files
committed
Hacky handling of type annotations.
Otherwise, the build fails with: Compiling up to 4 files for COMPILE_CREATE_SYMBOLS Creating ct.sym classes Exception in thread "main" java.lang.IllegalStateException: Unhandled attribute: RuntimeVisibleTypeAnnotations at build.tools.symbolgenerator.CreateSymbols.readAttribute(CreateSymbols.java:2734) at build.tools.symbolgenerator.CreateSymbols.inspectClassFile(CreateSymbols.java:2292) at build.tools.symbolgenerator.CreateSymbols.loadFromDirectoryHandleClassFile(CreateSymbols.java:1719) at build.tools.symbolgenerator.CreateSymbols.loadVersionClassesFromDirectory(CreateSymbols.java:1680) at build.tools.symbolgenerator.CreateSymbols.createSymbols(CreateSymbols.java:254) at build.tools.symbolgenerator.CreateSymbols.main(CreateSymbols.java:4780) gmake[3]: *** [Gendata.gmk:79: .../jdk/build/linux-x86_64-server-release/support/symbols/ct.sym] Error 1 gmake[2]: *** [make/Main.gmk:147: jdk.compiler-gendata] Error 2 gmake[2]: *** Waiting for unfinished jobs....
1 parent 2b9dfc4 commit 166534c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,6 +2597,10 @@ private boolean readAttribute(ClassFile cf, FeatureDescription feature, Attribut
25972597
((MethodDescription) feature).classParameterAnnotations =
25982598
parameterAnnotations2Description(cf.constant_pool, attr);
25992599
break;
2600+
case "RuntimeInvisibleTypeAnnotations":
2601+
case "RuntimeVisibleTypeAnnotations":
2602+
// TODO(wdietl): What should happen to type annotations?
2603+
break;
26002604
case Attribute.Module: {
26012605
assert feature instanceof ModuleHeaderDescription;
26022606
ModuleHeaderDescription header =

0 commit comments

Comments
 (0)