History log of /openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
Revision Date Author Comments
# 4235:0b74aa85c3c5 30-Jun-2017 vromero

8182047: javac compile error on type-parameter-exceptions in lambda expressions
Reviewed-by: mcimadamore


# 4229:c342fff3c5f7 27-Jun-2017 sadayapalam

8058408: Compiler should emit a clearer message for invalid parenthesized expression
Reviewed-by: sadayapalam
Contributed-by: priya.lakshmi.muthuswamy@oracle.com


# 4211:123f40b60a18 19-Jun-2017 jlahoda

8181911: Lambda Analyzer causes compile-time error
Summary: When copying Env<AttrContext> for Analyzer, detach returnResult from the outer context.
Reviewed-by: mcimadamore


# 4202:2bd34895dda2 15-Jun-2017 jlahoda

8170326: Inconsistencies between code, compiler.properties and comments
Summary: Converting uses of Log and JCDiagnostic.Factory methods to use CompilerProperties instead of plain Strings, fixing inconsistencies, adding crules analyzer to ensure CompilerProperties are used whenever possible.
Reviewed-by: mcimadamore


# 4102:b873436b362b 06-Apr-2017 mcimadamore

8177933: Stackoverflow during compilation, starting jdk-9+163
Summary: Avoid extra method call in Attr.attribTree
Reviewed-by: vromero


# 4077:24582dd2649a 24-Mar-2017 vromero

8176714: javac is wrongly assuming that field JCMemberReference.overloadKind has been assigned to
Reviewed-by: mcimadamore


# 4076:6d160fbd7d2e 24-Mar-2017 mcimadamore

8177097: Generic method reference returning wildcard parameterized type does not compile
Summary: Captured cache should not be used during 'fake' attr checks
Reviewed-by: vromero, jjg


# 4046:6b51827c339c 10-Mar-2017 vromero

8175198: Javac incorrectly allows receiver parameters in annotation methods
Reviewed-by: mcimadamore


# 4036:d8aeea31f9b5 08-Mar-2017 mcimadamore

8175317: javac does not issue unchecked warnings when checking method reference return types
Summary: Missing Warner object on method reference return type check
Reviewed-by: vromero


# 4022:18f898e31741 03-Mar-2017 vromero

8175790: field JCVariableDecl.vartype can't be null after post attribution analysis
Reviewed-by: mcimadamore


# 3970:706967704e65 09-Feb-2017 mcimadamore

8174249: Regression in generic method unchecked calls
Summary: Erasure for unchecked call occurs too early after JDK-8078093
Reviewed-by: vromero


# 3951:a9477dca2b57 06-Feb-2017 sadayapalam

8173456: com.sun.tools.javac.util.Assert.error during code compilation
Reviewed-by: mcimadamore


# 3875:f94e974fe589 11-Jan-2017 jlahoda

8169197: Improve error reporting for compiling against unexported package
Summary: When a type cannot be found, look into other modules, search for possible viable types, and report them conveniently to the user.
Reviewed-by: mcimadamore, jjg


# 3828:d30434bde0a8 16-Dec-2016 mcimadamore

8171371: Remove redundant type-arguments from generic method calls
Reviewed-by: jjg, rfield, mchung


# 3827:44bdefe64114 16-Dec-2016 mcimadamore

8181370: Convert anonymous inner classes into lambdas/method references
Reviewed-by: jjg, rfield, mchung


# 3822:d8766c39123a 15-Dec-2016 alanb

8170987: Module system implementation refresh (12/2016)
Reviewed-by: mcimadamore
Contributed-by: jonathan.gibbons@oracle.com, jan.lahoda@oracle.com, srikanth.adayapalam@oracle.com, alan.bateman@oracle.com, mandy.chung@oracle.com


# 3801:8fc0a7bf47a9 05-Dec-2016 mcimadamore

8170410: inference: javac doesn't implement 18.2.5 correctly
Summary: javac does not generate constraints of the kind 'throws alpha' as described in the spec
Reviewed-by: vromero, dlsmith


# 3792:d516975e8110 01-Dec-2016 alanb

8169069: Module system implementation refresh (11/2016)
Reviewed-by: mcimadamore, jjg, mchung, anazarov
Contributed-by: jonathan.gibbons@oracle.com, jan.lahoda@oracle.com, alan.bateman@oracle.com, mandy.chung@oracle.com, bhavesh.x.patel@oracle.com, andrey.x.nazarov@oracle.com


# 3741:1fc501869aa8 02-Nov-2016 jlahoda

8169074: Build is failing after JDK-8166538
Summary: Reverting d3dde3f775b8
Reviewed-by: darcy


# 3740:d3dde3f775b8 02-Nov-2016 jlahoda

8166538: Improve error reporting for compiling against unexported package
Summary: When a type cannot be found, look into other modules, search for possible viable types, and report them conveniently to the user.
Reviewed-by: mcimadamore, jjg


# 3711:3fc90eaaf922 02-Mar-2016 vromero

8026721: Enhance Lambda serialization
Reviewed-by: jjg, briangoetz


# 3684:53dd5c5efac3 06-Oct-2016 jlahoda

8153362: Add javac -Xlint warning to list exposed types which are not accessible
Summary: Adding implementation to -Xlint:exports, to warn about exposing inaccessible types in API
Reviewed-by: jjg


# 3657:c313dc636115 20-Sep-2016 sadayapalam

8163027: AssertionError while compiling a program that uses try with resources.
Reviewed-by: vromero


# 3655:535f80a0a2fd 19-Sep-2016 sadayapalam

8166108: VerifyError passing anonymous inner class to supertype constructor
Summary: Anonymous classes instantitated in explicit constructor calls cannot have enclosing instance
Reviewed-by: vromero


# 3591:8382e92dd1f9 16-Aug-2016 jlahoda

8078561: Error message should be generated once when -source 6 is specified
Summary: Code to avoid duplicated errors about features not supported in the current source level moved to Log
Reviewed-by: jjg


# 3578:b56896d30c0f 12-Aug-2016 sadayapalam

8068626: Add javac lint warning when the @Deprecated annotation is used where it is a no-op
Reviewed-by: mcimadamore, ksrini


# 3555:3665ebc22a42 01-Aug-2016 vromero

8161708: javac, consider a different way to handle access code for operators
Reviewed-by: mcimadamore


# 3545:842f0bfe2811 21-Jul-2016 mcimadamore

8161985: Spurious override of Object.getClass leads to NPE
Summary: Attr.adjustMethodReturnType() tweaks return types w/o checking what method is being patched
Reviewed-by: vromero


# 3453:2d1a6b746310 31-May-2016 mcimadamore

8145489: NPE while compiling annotations with qualified names in package-info.java
Summary: Spurious method reference check in Attr.visitSelect is causing NPE
Reviewed-by: vromero


# 3435:da5d8d3e445f 26-May-2016 sadayapalam

8154052: Java compiler error displays line from the wrong file
Summary: Compiler should update the diagnostic source properly.
Reviewed-by: mcimadamore


# 3427:a8b7c9938b74 23-May-2016 mcimadamore

8157149: Inference: weird propagation of thrown inference variables
Summary: Overhaul of treatment of thrown inference variables
Reviewed-by: vromero


# 3397:5c3dfebefa4a 16-May-2016 mcimadamore

8153884: Expression lambda erroneously compatible with void-returning descriptor
Summary: Fix lambda compatibility check for void returning expressions
Reviewed-by: vromero


# 3347:8214105024db 18-Apr-2016 alundblad

7152104: javac should not warn about missing serialVersionUID for anonymous inner classes
Summary: Javac no longer issues warnings for missing serialVersionUID in anonymous classes.
Reviewed-by: jlahoda


# 3304:b40b4ce0daab 23-Mar-2016 alundblad

8027999: Poorly worded error message when attempting to assign to this
Summary: Changed the error message when trying to assign to this.
Reviewed-by: jjg


# 3294:9adfb22ff08f 17-Mar-2016 alanb

8142968: Module System implementation
Summary: Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, jan.lahoda@oracle.com, vicente.romero@oracle.com, andreas.lundblad@oracle.com, andrey.x.nazarov@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, kumar.x.srinivasan@oracle.com, sundararajan.athijegannathan@oracle.com


# 3257:3cdfbbdb6f61 22-Feb-2016 vromero

8149600: javac, remove unused options, step 2
Reviewed-by: jjg, mcimadamore


# 3230:6ee9f8822081 28-Jan-2016 mcimadamore

8148213: Regression: nested unchecked call does not trigger erasure of return type
Summary: FreeTypeListener was deferred too much and caused loss of unchecked warning while in the middle of overload
Reviewed-by: vromero


# 3213:b0b517a7a9ee 20-Jan-2016 mcimadamore

8147546: regression when type-checking generic calls inside nested declarations occurring in method context
Summary: Attr.visitClassDef should set a temporary ArgumentAttr cache when in speculative mode
Reviewed-by: vromero


# 3212:b2b1e27e324c 20-Jan-2016 mcimadamore

8147493: regression when type-checking unchecked method calls
Summary: Shared warner in Attr.checkMethod leads to spurious inference errors
Reviewed-by: vromero


# 3101:bcefe0a2b55c 13-Nov-2015 sadayapalam

8073616: Duplicate error message: cannot inherit from final (class) F
Summary: Ensure that the compiler does not emit duplicate errors at slightly different source positions.
Reviewed-by: mcimadamore


# 3089:66a7e82d10a4 10-Nov-2015 mcimadamore

8141613: Compiler fails to infer generic type
Summary: Repeated capture of same expression leads to erroneous inference constraints
Reviewed-by: vromero


# 3066:820841f0e8bd 22-Oct-2015 alundblad

8087349: Test tools/sjavac/IncCompInheritance.java is failing
Summary: Refactoring of Dependencies framework.
Reviewed-by: mcimadamore


# 3063:161940723360 20-Oct-2015 sadayapalam

8139836: Can't use super::x method reference when x is protected
Summary: Javac incorrectly diasllows reference to a protected method from a super class in method reference expressions.
Reviewed-by: mcimadamore


# 3048:eb3d4a11eea6 07-Oct-2015 sadayapalam

8065219: Deprecated warning in method reference are missing in some cases.
Reviewed-by: mcimadamore


# 3042:d034f4347b09 05-Oct-2015 sadayapalam

8133135: Compiler internall error (NPE) on anonymous class defined by qualified instance creation expression with diamond
Reviewed-by: mcimadamore


# 3031:286fc9270404 15-Sep-2015 mcimadamore

8078093: Severe compiler performance regression Java 7 to 8 for nested method invocations
Summary: Add infrastructure to avoid combinatorial explosion of method argument attributions
Reviewed-by: jlahoda, vromero, dlsmith


# 3007:48f213c93965 10-Aug-2015 vromero

8053906: javac is accepting a self-referencing variable initializer inside a lambda expression
Reviewed-by: jlahoda


# 2994:dd96ac308ab8 24-Jul-2015 vromero

8132215: class InferenceContext should live in a separate file
Reviewed-by: mcimadamore, jlahoda


# 2981:d1e5707cd4eb 13-Jul-2015 avstepan

8080880: some docs cleanup for langtools
Summary: minor cleanup for docs
Reviewed-by: jjg


# 2976:431f00f9cbd2 08-Jul-2015 sadayapalam

8130745: Revert fix pushed for JDK-8074346
Reviewed-by: jlahoda


# 2962:c6f2ffcc44b9 15-Jun-2015 sadayapalam

8074346: Type annotation on a qualified type causes spurious 'cannot find symbol' errors
Summary: Issue clear diagostic when package names in a qualified type name are illegally annotated
Reviewed-by: mcimadamore, jlahoda


# 2956:8d7f82e6d1b5 05-Jun-2015 sadayapalam

8081521: Compiler has trouble compiling nested diamond allocation constructs involving anonymous classes.
Reviewed-by: mcimadamore


# 2941:c11a5cb11750 26-May-2015 sadayapalam

8080726: Redundant error message on private abstract interface method with body.
Reviewed-by: mcimadamore


# 2906:e847f2a2c3d0 28-Apr-2015 sadayapalam

8076279: Refactor Attr.check* methods to receive/handle a CheckMode enumeration
Summary: Internal cleanup to Attr.check to make use of a new abstraction CheckMode
Reviewed-by: mcimadamore


# 2895:ec37a85dbd97 27-Apr-2015 jlahoda

8077605: Initializing static fields causes unbounded recursion in javac
Summary: Improving detection of potential constant variable initializers; preventing infinite recursion on exception during Attr.visitLambda.
Reviewed-by: mcimadamore, vromero


# 2882:7f25537496ff 17-Apr-2015 alundblad

8073534: Confusing / incorrect error message regarding annotations on non-declarations
Summary: Adjusted error message for annotations on non-declarations.
Reviewed-by: jlahoda, dlsmith


# 2877:62e285806e83 07-Apr-2015 jjg

8031744: Annotations on many Language Model elements are not returned
Reviewed-by: jfranck, mcimadamore, emc, jlahoda, jjg
Contributed-by: joel.franck@oracle.com, maurizio.cimadamore@oracle.com


# 2868:816bd88d33a8 30-Mar-2015 sadayapalam

8062373: Project Coin: diamond and anonymous classes
Summary: Allow diamond inference in combination with anonymous class instance creation
Reviewed-by: mcimadamore, vromero
Contributed-by: srikanth.adayapalam@oracle.com, maurizio.cimadamore@oracle.com


# 2866:801b26483eb6 27-Mar-2015 vromero

8075184: javac is mistakenly considering an missing enclosing instance error as an overload error
Reviewed-by: mcimadamore


# 2855:0bc7ba363b7f 19-Mar-2015 mcimadamore

8074100: Turn Type.Mapping into a true visitor
Summary: replace Type.Mapping with a true visitor in Types
Reviewed-by: jlahoda, vromero


# 2854:42098d16d8f9 19-Mar-2015 mcimadamore

8074381: java.lang.AssertionError during compiling
Summary: Add extra functional interface check to prevent crash during code generation
Reviewed-by: vromero


# 2853:03939be983dd 12-Mar-2015 sadayapalam

8074148: Attr.visitBinary flags error at wrong position
Reviewed-by: vromero


# 2849:f5a1cb1309ae 11-Mar-2015 sadayapalam

8050021: Improper "duplicate case label" error
Reviewed-by: jlahoda


# 2838:218d589184d3 27-Feb-2015 mcimadamore

8073842: Invalid method reference when referencing a method on a wildcard type
Summary: Method rteference lookup logic doesn't skip type-variables as required by javac.
Reviewed-by: jlahoda


# 2831:e29b25f6101f 23-Feb-2015 mcimadamore

8071291: Compiler crashes trying to cast UnionType to IntersectionClassType
Summary: Compiler tests for .isCompound but then cast to a more specific Type subclass, resulting in CCE
Reviewed-by: vromero, jlahoda


# 2824:e0b35c562008 15-Feb-2015 mcimadamore

8071241: Investigate alternate strategy for type-checking operators
Summary: Separat operator lookup logic from overload resolution.
Reviewed-by: jjg, jlahoda, sadayapalam


# 2801:1580b10e028a 20-Jan-2015 jfranck

8046977: ClassCastException: typing information needed for method reference bridging not preserved
Reviewed-by: mcimadamore
Contributed-by: srikanth.adayapalam@oracle.com


# 2794:a510d7536fa1 16-Jan-2015 jlahoda

8068517: Compiler may generate wrong InnerClasses attribute for static enum reference
Summary: Making sure enum's abstractness is resolved before writing InnerClasses entry about it.
Reviewed-by: mcimadamore


# 2791:c7a7b3fb997e 15-Jan-2015 mcimadamore

8068995: Cleanup method reference lookup code
Summary: Simplify method reference code lookup and generate better/more uniform diagnostics
Reviewed-by: vromero


# 2778:6a927a9114c1 09-Jan-2015 mcimadamore

8066871: java.lang.VerifyError: Bad local variable type - local final String
Summary: baseType() erroneously called on MethodResultInfo causes lack of constant type info
Reviewed-by: jlahoda, mcimadamore
Contributed-by: srikanth.adayapalam@oracle.com


# 2764:c402b2856ed1 18-Dec-2014 mcimadamore

8066974: Compiler doesn't infer method's generic type information in lambda body
Summary: Add loghic to avoid post-inference triggers on temporarty AST types
Reviewed-by: jlahoda, vromero


# 2758:3c1b5fcf6fad 12-Dec-2014 mcimadamore

8064365: Better support for finder capabilities in target-typing context
Summary: Add new framework to allow for easy creation of finder-like capabilities.
Reviewed-by: jjg, jlahoda


# 2739:9d2192f36e53 03-Dec-2014 jlahoda

7101822: Compiling depends on order of imports
7177813: Static import to local nested class fails
Summary: MemberEnter overhaul - TypeEnter is split out of MemberEnter; the TypeEnter consists of several Phases which ensure actions are done in the correct order.
Reviewed-by: mcimadamore, jfranck, aeremeev
Contributed-by: jan.lahoda@oracle.com, maurizio.cimadamore@oracle.com


# 2738:caa3490d5aee 28-Nov-2014 mcimadamore

8065986: Compiler fails to NullPointerException when calling super with Object<>()
Summary: Missing POLY kind selector on recursive constructor calls with poly arguments
Reviewed-by: vromero


# 2733:69a430162d80 20-Nov-2014 jfranck

8062359: javac Attr crashes with NPE in TypeAnnotationsValidator visitNewClass
Reviewed-by: jlahoda, vromero


# 2727:2bfbb068284d 20-Nov-2014 vromero

8059921: Missing compile error in Java 8 mode for Interface.super.field access
Reviewed-by: mcimadamore, jlahoda


# 2726:f62d01419621 19-Nov-2014 jlahoda

7196163: Project Coin: Allow effectively final variables to be used as resources in try-with-resources
Summary: Allowing final variables as operands to try-with-resources; also reviewed by Sergei Pikalev.
Reviewed-by: darcy, mcimadamore, vromero


# 2717:532a67fe69ec 12-Nov-2014 jlahoda

8064362: WriteableScope.dupUnshared misbehaves on shared Scopes
Summary: When calling dupUnshared on a shared scope, make sure the result does not contain Symbols that don't belong to the scope that is being dupUnshared.
Reviewed-by: mcimadamore


# 2715:601e08b62ba8 11-Nov-2014 mcimadamore

8064464: regression with type inference of conditional expression
Summary: Bad classification of conditional leads to spurious error
Reviewed-by: jlahoda


# 2680:834b3d80c734 24-Oct-2014 jfranck

8054448: (ann) Cannot reference field of inner class in an anonymous class
Reviewed-by: jlahoda, mcimadamore


# 2673:bf8500822576 21-Oct-2014 emc

8054457: Refactor Symbol kinds from small ints to an enum
Summary: Replace bitmap logic in symbol.kind and pkind with an enum-based API
Reviewed-by: mcimadamore, jjg


# 2656:a0125e2a10e8 07-Oct-2014 alundblad

8056258: Analysis of public API does not take super classes into account
8048609: simplify sjavac dependence on javac dependency gathering
Summary: Replaces Attr-/ResolveWithDeps with TaskListeners
Reviewed-by: jfranck, ohrstrom


# 2646:ff1998c1ecab 22-Sep-2014 emc

8048614: Add TypeMetadata to contain type annotations and other type information
Summary: Implement general framework for metadata on types
Reviewed-by: mcimadamore


# 2645:2f8f2ae8a806 22-Sep-2014 jlahoda

8057794: Compiler Error when obtaining .class property
Summary: Ensuring a non-null type and sym for illegal T.class to prevent downstream errors.
Reviewed-by: mcimadamore


# 2628:8df25ec8c930 08-Sep-2014 jfranck

8056021: checkin for JDK-8027262 breaks Checker Framework
Reviewed-by: jjg, mcimadamore


# 2601:8e638f046bf0 26-Aug-2014 jlahoda

8056061: Mark implementations of public interfaces with an annotation
Summary: Adding @DefinedBy annotation to mark methods that implement public API methods; annotating the methods; adding a coding rules analyzer to enforce all such methods are annotated.
Reviewed-by: jjg, mcimadamore, jfranck
Contributed-by: jan.lahoda@oracle.com, jonathan.gibbons@oracle.com


# 2593:035b01d356ee 18-Aug-2014 chegar

Merge


# 2571:10fc81ac75b4 17-Aug-2014 chegar

8054834: Modular Source Code
Reviewed-by: alanb, chegar, ihse, mduigou
Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com