src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java

changeset 1313
873ddd9f4900
parent 581
f2fdd52e4e87
child 1452
de1ec6fc93fe
     1.1 --- a/src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java	Mon Aug 27 10:59:13 2012 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java	Fri Aug 31 10:37:46 2012 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -206,9 +206,7 @@
    1.11              }
    1.12              ClassSymbol cs = (ClassSymbol) sym;
    1.13              if (addLegacyAnnotation) {
    1.14 -                cs.attributes_field = (cs.attributes_field == null)
    1.15 -                    ? List.of(proprietary)
    1.16 -                    : cs.attributes_field.prepend(proprietary);
    1.17 +                cs.annotations.prepend(List.of(proprietary));
    1.18              }
    1.19              writeClass(pool, cs, writer);
    1.20          }

mercurial