Commit Graph

20 Commits

Author SHA1 Message Date
Jan Lahoda
39cd1635bf 8293578: Duplicate ldc generated by javac
Reviewed-by: mcimadamore
2022-09-16 11:37:45 +00:00
Joe Darcy
cc2861a993 8290901: Reduce use of -source in langtools tests
Reviewed-by: jjg
2022-07-29 17:35:22 +00:00
Vicente Romero
b2e582a882 8259905: Compiler treats 'sealed' keyword as 'var' keyword
Reviewed-by: jlahoda
2021-01-29 16:50:27 +00:00
Mikael Vidstedt
3318314c7c 8237589: Fix copyright header formatting
Reviewed-by: jjg, serb, iris, jwilhelm
2020-01-21 14:23:01 -08:00
Jan Lahoda
b34b2d993c 8223305: Compiler support for Switch Expressions
Reviewed-by: mcimadamore, vromero
2019-06-10 05:09:52 +02:00
Vicente Romero
9846588b31 8210031: implementation for JVM Constants API
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: jrose, mcimadamore, darcy, mchung, rriggs, dholmes, forax
2018-12-09 12:36:24 -05:00
Jonathan Gibbons
73fa99ae86 8213263: fix legal headers in test/langtools
Reviewed-by: darcy
2018-11-01 14:32:55 -07:00
Maurizio Cimadamore
43248585b4 8195293: Issue more comprehensive warnings for use of \"var\" in earlier source versions
Issue warnings when 'var' used as a type name in type argument positions

Reviewed-by: jlahoda
2018-06-20 11:47:07 +01:00
Bernard Blaser
7dc011ccca 8202372: Diagnostic with incorrect line info generated when compiling lambda expression
Add tree position to speculative lambda tree

Reviewed-by: vromero, jlahoda
2018-05-02 15:29:55 +01:00
Maurizio Cimadamore
484ec0738e 8200355: local variable inference regression test generates classfile in test folder
LVTI harness should generate files in jtreg scratch dir

Reviewed-by: vromero
2018-03-28 14:24:17 +01:00
Maurizio Cimadamore
b7e53c1204 8200199: javac suggests to use var even when var is used
Local var analyzer should use synthetic var type position to decide if analysis is needed

Reviewed-by: jlahoda, vromero
2018-03-28 14:08:26 +01:00
Shinya Yoshida
ae2d2c8ff5 8199910: Compiler crashes with -g option and variables of intersection type inferred by var
Javac should skip non-denotable types in the LocalVariableTypeTable attribute

Reviewed-by: jlahoda
2018-03-23 16:53:54 +00:00
Vicente Romero
25da45e26f 8198512: compiler support for local-variable syntax for lambda parameters
Reviewed-by: mcimadamore
2018-02-22 15:49:32 -05:00
Vicente Romero
4b6ab35c85 8198479: JDK build is broken by 8194892
Reviewed-by: sundar
2018-02-21 00:29:04 -05:00
Vicente Romero
2591c21c01 8194892: add compiler support for local-variable syntax for lambda parameters
Reviewed-by: mcimadamore
2018-02-20 11:45:16 -05:00
Joe Darcy
aa4c936f54 8189146: Have use of "var" in 9 and earlier source versions issue a warning for type declarations
Reviewed-by: mcimadamore, jjg
2018-01-16 17:27:06 -08:00
Maurizio Cimadamore
3534ed0379 8191802: Upward projection result is A<? extends Number> instead of A<? super Integer>
Code in Types.TypeProjection doesn't match the latest spec text

Reviewed-by: vromero
2017-11-29 17:31:23 +00:00
Maurizio Cimadamore
e196ae9be6 8191834: Assigning a void expression to a "var" crashes the compiler
Local variable type inference should give error on void initializers

Reviewed-by: sundar
2017-11-24 16:14:33 +00:00
Maurizio Cimadamore
f48f3c6552 8189838: Stack overflow when computing upward projection of an intersection type with fbounds
Bad logic for detecting loop in type-variable upper bounds

Reviewed-by: vromero
2017-10-26 18:42:40 +01:00
Maurizio Cimadamore
c825188cd8 8177466: Add compiler support for local variable type-inference
Add support for 'var' in implicitly typed local variable declarations

Reviewed-by: vromero, jlahoda
2017-09-26 12:52:53 +01:00