Commit Graph

27 Commits

Author SHA1 Message Date
Maurizio Cimadamore
d4c5fca16a 7175433: Inference cleanup: add helper class to handle inference variables
Add class to handle inference variables instantiation and associated info

Reviewed-by: jjg, dlsmith
2012-09-25 11:55:34 +01:00
Maurizio Cimadamore
b03ad3ae09 7175911: Simplify error reporting API in Check.CheckContext interface
Make error messages generated during Check.checkType more uniform and more scalable

Reviewed-by: jjg, dlsmith
2012-08-02 18:22:41 +01:00
Maurizio Cimadamore
7e32f8e585 7166552: Inference: cleanup usage of Type.ForAll
Remove hack to callback into type-inference from assignment context

Reviewed-by: dlsmith, jjg
2012-05-31 17:42:14 +01:00
Maurizio Cimadamore
9b1e54dae3 7151492: Encapsulate check logic into Attr.ResultInfo
ResultInfo class should be used to make attribution code transparent w.r.t. check logic being used

Reviewed-by: jjg, dlsmith
2012-03-26 15:28:22 +01:00
Maurizio Cimadamore
1a335eb047 7097436: Project Coin: duplicate varargs warnings on method annotated with @SafeVarargs
Duplicate aliasing check during subtyping leads to spurious varargs diagnostic

Reviewed-by: jjg
2011-10-17 12:54:33 +01:00
Maurizio Cimadamore
1ee0f8da66 7043922: Regression: internal compiler error for nested anonymous inner class featuring varargs constructor
Attributing a constructor call does not clean up the compiler's attribution context

Reviewed-by: jjg
2011-05-16 09:38:04 +01:00
Maurizio Cimadamore
d3d252186b 7042566: Regression: new ambiguity between varargs method
Erroneous ambiguity error when choosing most specific varargs method

Reviewed-by: jjg
2011-05-11 13:10:57 +02:00
Kelly O'Hair
b49579c56c 7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes
2011-04-06 20:33:44 -07:00
Jim Holmlund
6d172a6a63 7018753: tools/javac/varargs/warning/Warn5.java times out on slow machines
Use a single file manager for all JavacTasks

Reviewed-by: jjg, mcimadamore
2011-02-24 08:40:49 -08:00
Maurizio Cimadamore
1e776bc78a 6313164: javac generates code that fails byte code verification for the varargs feature
Method applicability check should fail if formal varargs element type is not accessible

Reviewed-by: jjg
2011-01-28 12:03:49 +00:00
Maurizio Cimadamore
6bd5b48ca7 7013865: varargs: javac crashes during overload resolution with generic varargs
Fixed regression with varargs overload resolution that leads javac to crash

Reviewed-by: jjg
2011-01-24 15:45:41 +00:00
Maurizio Cimadamore
96d0749bfc 6569633: Varargs: parser error when varargs element type is an array
Explicit error message when old-style array syntax is mixed with varargs

Reviewed-by: jjg
2011-01-24 15:45:24 +00:00
Kelly O'Hair
84b5875f26 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:54:52 -08:00
Maurizio Cimadamore
6ef5228632 6993978: Project Coin: Compiler support of annotation to reduce varargs warnings
Reviewed-by: jjg, darcy
2010-12-13 15:11:00 -08:00
Maurizio Cimadamore
450d85b95a 6199075: Unambiguous varargs method calls flagged as ambiguous
Javac does not implement overload resolution w.r.t. varargs methods as described in the JLS

Reviewed-by: jjg
2010-12-10 15:24:17 +00:00
Maurizio Cimadamore
5cdc149cc1 5088429: varargs overloading problem
Compiler implementation for overload resolution w/ varargs method does not match JLS

Reviewed-by: jjg
2010-12-06 11:51:02 +00:00
Jonathan Gibbons
be8a607fef 6900037: javac should warn if earlier -source is used and bootclasspath not set
Reviewed-by: darcy
2010-11-29 14:15:36 -08:00
Jonathan Gibbons
0dd9ef9b43 6944312: Potential rebranding issues in openjdk/langtools repository sources
Reviewed-by: darcy
2010-06-10 16:08:01 -07:00
Maurizio Cimadamore
875dc24cfc 6945418: Project Coin: Simplified Varargs Method Invocation
Add new mandatory warning for unsafe vararg method declaration. Warning can be suppressed as usual (@SuppressWarnings("varargs")/-Xlint:-varargs)

Reviewed-by: jjg, darcy
2010-06-10 09:29:23 +01:00
Kelly O'Hair
bd4f4be9d7 6943119: Rebrand source copyright notices
Reviewed-by: darcy
2010-05-25 15:54:51 -07:00
Maurizio Cimadamore
dea5e42c57 6730476: invalid "unchecked generic array" warning
Reifiable-ness of varargs element type should be checked after JLS3 15.12.2.8

Reviewed-by: jjg
2010-04-21 12:24:56 +01:00
Jonathan Gibbons
2ed0d63583 6933914: fix missing newlines
Reviewed-by: ohair
2010-03-10 16:23:18 -08:00
Jonathan Gibbons
af2f2e8d36 6875336: some tests should use /nodynamiccopyright/
Reviewed-by: darcy
2009-08-27 11:08:27 -07:00
Maurizio Cimadamore
ac4b216060 6806876: ClassCastException occurs in assignment expressions without any heap pollutions
Intersection types should be considered as non-reifiable by javac

Reviewed-by: jjg
2009-08-11 01:11:37 +01:00
Joe Darcy
05ea258bbb 6843761: Update langtools tests to remove unncessary -source and -target options
Reviewed-by: jjg
2009-05-27 22:34:43 -07:00
Maurizio Cimadamore
dd2a864f51 6746184: javac fails to compile call to public varargs method
Javac's resolution process should go through all steps described in JLS 15.12.2.2

Reviewed-by: jjg
2008-10-24 12:46:07 +01:00
J. Duke
f57b87e8f6 Initial load 2007-12-01 00:00:00 +00:00