Maurizio Cimadamore
82db21e08d
8068995: Cleanup method reference lookup code
...
Simplify method reference code lookup and generate better/more uniform diagnostics
Reviewed-by: vromero
2015-01-15 13:58:11 +00:00
Maurizio Cimadamore
56a33e4541
8058542: Devise scheme for better diagnostic creation
...
Add support for generating (at build-time) an enum-like class containing all javac diagnostics, which allows for safe diagnostic creation.
Reviewed-by: jlahoda, jjg, vromero, erikj, jfranck
2015-01-08 14:43:05 +00:00
Maurizio Cimadamore
3076062240
8064365: Better support for finder capabilities in target-typing context
...
Add new framework to allow for easy creation of finder-like capabilities.
Reviewed-by: jjg, jlahoda
2014-12-12 18:07:24 +00:00
Jan Lahoda
59b3453845
8061549: Disallow _ as a one-character identifier
...
Underscore is no longer a one-charater identifier with -source 9
Reviewed-by: mcimadamore, jjg
2014-12-08 18:02:07 +01:00
Chris Hegarty
189df3ac57
Merge
2014-12-03 19:28:40 +00:00
Chris Hegarty
8bc2b3ff3a
8049367: Modular Run-Time Images
...
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jlahoda, ksrini
2014-12-03 14:25:46 +00:00
Jan Lahoda
d739446063
7101822: Compiling depends on order of imports
...
7177813: Static import to local nested class fails
MemberEnter overhaul - TypeEnter is split out of MemberEnter; the TypeEnter consists of several Phases which ensure actions are done in the correct order.
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore, jfranck, aeremeev
2014-12-03 13:46:12 +01:00
Jonathan Gibbons
bdf693fcc5
8061876: replace java.io.File with java.nio.file.Path (again)
...
Reviewed-by: ksrini, jlahoda
2014-11-21 10:38:43 -08:00
Jan Lahoda
a2b0a2413e
7196163: Project Coin: Allow effectively final variables to be used as resources in try-with-resources
...
Allowing final variables as operands to try-with-resources; also reviewed by Sergei Pikalev.
Reviewed-by: darcy, mcimadamore, vromero
2014-11-19 13:46:04 +01:00
Maurizio Cimadamore
ed9c1bb743
8064464: regression with type inference of conditional expression
...
Bad classification of conditional leads to spurious error
Reviewed-by: jlahoda
2014-11-12 12:41:32 +00:00
Jonathan Gibbons
a75d2dbd39
8062676: Tests which leak lots of file managers should be fixed (group 2)
...
Reviewed-by: darcy
2014-11-05 19:12:45 -08:00
Jonathan Gibbons
b96daffd2e
8063039: incorrect message reference or broken message file
...
Reviewed-by: ksrini
2014-11-05 19:09:09 -08:00
Jonathan Gibbons
8bd23f1681
8062348: langtools tests should close file manager (group 1)
...
Reviewed-by: darcy
2014-10-29 17:25:23 -07:00
Jan Lahoda
83abeb739b
8054563: Update RunCodingRules.java for source code reorg
...
Tests RunCodingRules and MessageInfo fixed to work in the new source code structure.
Reviewed-by: jjg
2014-09-04 08:48:29 +02:00
Jan Lahoda
eb1f1c05ed
8048805: Request to investigate and update lexer error recovery in javac
...
8046620: Further investigation needed for few error messages for negative unicode tests in langtools regression ws
8048803: javac should report complete character code in the error messages
Improving error reporting and recovery in the lexer
Co-authored-by: Sonali Goel <sonali.goel@oracle.com>
Reviewed-by: jjg, mcimadamore
2014-07-14 12:02:58 +02:00
Neil Toda
b4b2f994ca
8011044: Remove support for 1.5 and earlier source and target options
...
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: darcy, jjg
2014-07-10 13:57:27 -07:00
Joe Darcy
b963c0bc59
7196160: Project Coin: allow @SafeVarargs on private methods
...
Reviewed-by: jjg
2014-06-24 10:51:00 -07:00
Dan Smith
6e1ae5955e
8037385: constant pool errors with -target 1.7 and static default methods
...
Add error check for static interface methods invoked from -source 7
Reviewed-by: vromero, mcimadamore
2014-06-10 12:41:39 -06:00
Jonathan Gibbons
15853aca13
7026941: 199: path options ignored when reusing filemanager across tasks
...
Reviewed-by: jlahoda, jfranck
2014-06-08 15:02:34 -07:00
Vicente Romero
0996901f29
8029102: Enhance compiler warnings for Lambda
...
Reviewed-by: briangoetz, jjg, jlahoda, ahgross
2014-04-28 14:48:51 +01:00
Paul Govereau
b349726850
8038023: Compiler crash ClassCastException
...
Add additional checks on results of ClassReader.readPool
Reviewed-by: vromero
2014-04-22 19:52:15 +01:00
Vicente Romero
a50db59b59
8029718: Should always use lambda body structure to disambiguate overload resolution
...
Reviewed-by: dlsmith, jjg, jlahoda
2014-04-21 22:51:49 +01:00
Jan Lahoda
e5c8101894
8038455: Use single Context for all rounds of annotation processing
...
One set of javac services, as well as created ClassSymbols, is reused for all rounds of processing now.
Reviewed-by: jjg, jfranck, darcy, vromero
2014-04-08 14:06:11 +02:00
Paul Govereau
8e6660eb56
8023945: javac wrongly allows a subclass of an anonymous class
...
Reviewed-by: jjg
2014-04-04 19:13:53 -04:00
Jan Lahoda
e339370175
8035890: jdk8 javac -source 7 compiles test case it should not
...
Ensuring source level checks are performed in two additional cases related to type annotations, adding specialized error message for annotations after method type parameters.
Reviewed-by: jfranck, jjg
2014-03-31 21:27:25 +02:00
Paul Govereau
e0bc15202b
6898851: Compiling against this corrupt class file causes a stacktrace from javac
...
Added check for index out-of-bounds erros in ClassReader
Reviewed-by: jjg
2014-03-19 11:34:27 -04:00
Jan Lahoda
74250736aa
8031383: Error recovery in JavacParser could be improved
...
Improving error recovery in JavacParser by avoiding artificial nextToken in JavacParser.reportSyntaxError.
Co-authored-by: Dusan Balek <dusan.balek@oracle.com>
Reviewed-by: jjg, jfranck
2014-02-28 20:25:24 +01:00
Paul Govereau
dd0e29f8b7
6533516: Warning needed for file with future time stamps
...
Reviewed-by: jjg, vromero
2014-02-26 18:05:02 -08:00
Jan Lahoda
e20546fe2a
8033961: Formatting of -Xlint: command line help
...
Improving formatting of command line help for -Xlint, including a short description of each lint.
Reviewed-by: jjg
2014-02-13 13:38:48 +01:00
Jan Lahoda
4724c454cd
8030091: Request to update error messages from javac for negative varargs test cases
...
Introducing a new error message for vararg parameter not being the last parameter, improving error message for unexpected character after a parameter.
Reviewed-by: jjg, sogoel
2014-02-02 12:12:01 +01:00
Abhijit Saha
c575ece03d
Merge
2014-01-14 08:08:32 -08:00
Jan Lahoda
e32b40185e
8029376: Full attribution of unresolvable annotations
...
8029161: javac crashing when processing broken annotations
Attributing values of annotation attributes regardless how broken the annotation is.
Reviewed-by: jjg, jfranck
2014-01-10 11:31:09 +01:00
Steve Sides
4cbb43a7e3
8029230: Update copyright year to match last edit in jdk8 langtools repository for 2013
...
Reviewed-by: ksrini
2013-12-24 09:17:37 -08:00
Eric McCorkle
44f29ffde7
8027439: Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
...
8027253: javac illegally accepts array as bound
Backing out change allowing arrays in intersection types
Reviewed-by: vromero
2013-11-11 09:47:46 -05:00
Werner Dietl
e5c34a89eb
8026564: import changes from type-annotations forest
...
Co-authored-by: Steve Sides <steve.sides@oracle.com>
Reviewed-by: jjg
2013-10-15 15:57:13 -07:00
Eric McCorkle
ad8c918fb1
8019461: Clean up javac diagnostics
...
7196553: Review error messages for repeating annotations
Changes to the diagnostic messages to improve clarity and JLS coherence
Reviewed-by: jjg
2013-10-10 13:55:41 -04:00
Jan Lahoda
5ec0ba7c47
8025087: Annotation processing api returns default modifier for interface static method
...
ClassReader must not set Flags.DEFAULT for interface static methods
Reviewed-by: vromero, jjg
2013-10-09 13:09:31 +02:00
Vicente Romero
696179bbda
8023679: Improve error message for '_' used as a lambda parameter name
...
Reviewed-by: jjg, dlsmith
2013-10-02 17:04:51 +01:00
Maurizio Cimadamore
4cc7a55aab
8023549: Compiler emitting spurious errors when constructor reference type is inferred and explicit type arguments are supplied
...
Reviewed-by: jjg, vromero
2013-09-04 00:01:05 +01:00
Maurizio Cimadamore
0382c78ff1
8016177: structural most specific and stuckness
...
Reviewed-by: jjg, vromero
2013-09-02 22:38:36 +01:00
Jonathan Gibbons
3dd18b5d8c
8024093: Two *.rej files checked in to langtools/test directory
...
Reviewed-by: mchung
2013-08-30 15:14:51 -07:00
Joe Darcy
557cb9c6b1
8011043: Warn about use of 1.5 and earlier source and target values
...
Reviewed-by: jjg
2013-08-20 12:15:19 -07:00
Jan Lahoda
59e0637339
8015809: More user friendly compile-time errors for uncaught exceptions in lambda expression
...
Producing individual errors for uncaught undeclared exceptions inside lambda expressions, rather than one error for the whole lambda
Reviewed-by: mcimadamore
2013-08-15 22:33:43 +02:00
Maurizio Cimadamore
4e85a5ae43
6537020: JCK tests: a compile-time error should be given in case of ambiguously imported fields (types, methods)
...
Hiding check does not support interface multiple inheritance
Reviewed-by: jjg
2013-08-12 17:25:07 +01:00
Vicente Romero
5540c7cbe1
8013179: assertion failure in javac when compiling with -source 1.6 -target 1.6
...
Reviewed-by: jjg
2013-07-31 10:52:01 +01:00
Maurizio Cimadamore
da6bbaf42b
8020843: javac crashes on accessibility check with method reference with typevar receiver
...
Method reference overload check doesn't walk through type-variable receivers
Reviewed-by: jjg
2013-07-25 14:51:40 +01:00
Kumar Srinivasan
c6c6fe7b5e
8017216: javac doesn't fill in end position for some errors of type not found
...
8019421: Javac doesn't fill in end position for some annotation related errors
8019422: Javac doesn't fill in end position for uninitialized variable errors
Reviewed-by: jjg, mcimadamore
2013-07-19 07:22:53 -07:00
Maurizio Cimadamore
80407ef47d
8013576: Add stat support to LambdaToMethod
...
LambdaToMethod should emit info to help diagnose/test lambda metafactory problems
Reviewed-by: jjg, vromero
2013-06-10 15:57:32 +01:00
Vicente Romero
a24da77752
7060779: test/tools/javac/diags/Example.java leaves directories in tempdir
...
Reviewed-by: mcimadamore
2013-05-21 12:17:18 +01:00
Maurizio Cimadamore
ec458693f7
8012003: Method diagnostics resolution need to be simplified in some cases
...
Unfold method resolution diagnostics when they mention errors in poly expressions
Reviewed-by: jjg, vromero
2013-05-15 14:00:31 +01:00