1582 Commits

Author SHA1 Message Date
Jan Lahoda
b40c63e9fb 8166700: NPE during invoking getEnclosedElements() on javax.lang.model.element.Element instance representing a package
Should not strip first parameter of a local class constructor for local classes in initializers.

Reviewed-by: jjg
2016-11-10 17:27:01 +01:00
Maurizio Cimadamore
57bee7c4b9 8169093: Generics, javac not matching actual and formal arguments
Make diagnostic for type-args arity mismatch consistent with the class case

Reviewed-by: vromero
2016-11-07 16:08:18 +00:00
Maurizio Cimadamore
9b0354380e 8168854: javac erroneously reject a a service interface inner class in a provides clause
Java SE 9 proposed spec changes do not explicitly forbid a service interface to be an inner class - javac should follow

Reviewed-by: jjg
2016-11-07 11:16:23 +00:00
Jonathan Gibbons
e781b9f262 8167975: align javac --add-* modules options with launcher
Reviewed-by: jlahoda
2016-11-03 13:59:15 -07:00
Jan Lahoda
0c7e5fac7e 8166635: getEnclosedElements() on package causes BadClassFile error
Properly reading typevars from enclosing scopes for local classes.

Reviewed-by: mcimadamore
2016-11-03 11:46:20 +01:00
Jan Lahoda
7cffceb22f 8169074: Build is failing after JDK-8166538
Reverting d7c9720c4223

Reviewed-by: darcy
2016-11-02 20:21:45 +01:00
Jan Lahoda
5daafbe43b 8166538: Improve error reporting for compiling against unexported package
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
2016-11-02 16:48:57 +01:00
Vicente Romero
32ca4bf4c7 8132562: javac fails with CLASSPATH with double-quotes as an environment variable
Reviewed-by: jjg
2016-11-01 10:14:42 -04:00
Maurizio Cimadamore
12e8fccd6c 8168774: Polymorhic signature method check crashes javac
Check for polysig method assumes arity is greater than zero

Reviewed-by: vromero
2016-10-26 15:41:25 +01:00
Maurizio Cimadamore
47f7c2e668 8168134: Inference: javac incorrectly propagating inner constraint with primitive target
Check for propagation doesn't take into account primitive type constraints

Reviewed-by: vromero
2016-10-26 12:27:51 +01:00
Srikanth Adayapalam
5bc203a934 8166367: Missing ExceptionTable attribute in anonymous class constructors
Reviewed-by: vromero
2016-10-26 11:22:50 +05:30
Maurizio Cimadamore
d072e7faa4 8168480: Speculative attribution of lambda causes NPE in Flow
Flow attempts to analyze too much of a lambda body during attribution

Reviewed-by: vromero
2016-10-24 14:47:48 +01:00
Joe Darcy
5078ccdb18 8168499: Workaround intermittent failures of IntersectionTargetTypeTest.java
Reviewed-by: rfield, amlu, mcimadamore
2016-10-22 12:27:52 -07:00
Jonathan Gibbons
734e231c93 8168343: 3 javac tests fail when run on an exploded image
Reviewed-by: darcy
2016-10-20 16:31:42 -07:00
Jonathan Gibbons
a60ef42892 8145471: javac changes for enhanced deprecation
Reviewed-by: smarks, tbell, mcimadamore, jlahoda
2016-10-20 13:44:51 -07:00
Vicente Romero
d130403704 8026721: Enhance Lambda serialization
Reviewed-by: jjg, briangoetz
2016-03-02 18:25:01 -05:00
Maurizio Cimadamore
80ce1c8be2 8167000: Refine handling of multiple maximally specific abstract methods
Bring the compiler in sync with spec changes in JDK-7034913

Reviewed-by: vromero, dlsmith
2016-10-17 15:02:46 +01:00
Mandy Chung
b79835c56b 8164689: Retrofit jar, jlink, jmod as a ToolProvider
Reviewed-by: alanb, jjg
2016-10-12 15:37:27 -07:00
Jan Lahoda
5794656914 8167320: Trying to document only java.base causes a NPE in javac
Ensure ModuleSymbol.getDirectives completes the Symbol

Reviewed-by: ksrini, jjg
2016-10-11 10:31:10 +02:00
Jonathan Gibbons
6fef223c3f 8159855: Create an SPI for tools
Reviewed-by: mchung
2016-10-07 16:49:39 -07:00
Jan Lahoda
6a0ceb74e8 8153362: Add javac -Xlint warning to list exposed types which are not accessible
Adding implementation to -Xlint:exports, to warn about exposing inaccessible types in API

Reviewed-by: jjg
2016-10-06 14:03:58 +02:00
Mandy Chung
a3f3f797b5 8166860: Add magic number to jmod file
Reviewed-by: alanb, jjg
2016-10-04 18:56:03 -07:00
Jonathan Gibbons
5bce3820cc 8166472: javac/javadoc expands @files incorrectly
Reviewed-by: henryjen, ksrini
2016-10-04 16:47:09 -07:00
Jan Lahoda
279b6faa56 8073844: fatal annotation processing errors do not stop compilation
JavacProcessingEnvironment lets the should-stop policy decide when the compilation should stop.

Reviewed-by: jjg
2016-10-04 17:40:29 +02:00
Jan Lahoda
c58a8aae3e 8152911: javac assertion error when compiling overlay sources
Avoid creating ModuleSymbols with unspecified name, to avoid conflicts with predefined ModuleSymbol for the java.base module.

Reviewed-by: jjg
2016-10-04 16:25:19 +02:00
Srikanth Adayapalam
517cfed246 8166363: Method with reordered type parameter bounds compiles with @Override annotation but does not actually override superclass method
Reviewed-by: vromero
2016-09-28 09:05:20 +05:30
Srikanth Adayapalam
e179ac0384 8164519: Rendering of supertype_target for annotated extends clause
Eliminate inconsistencies in handling annotated super class.

Reviewed-by: jlahoda
2016-09-27 04:34:09 +05:30
Jan Lahoda
35439dec91 8047347: com.sun.source.util.Trees breaks the compiler
Clearing synthetic constructors and super constructor calls between annotation processing rounds.

Reviewed-by: jjg
2016-09-23 15:35:32 +02:00
Srikanth Adayapalam
7ddb0f7c17 8163027: AssertionError while compiling a program that uses try with resources
Reviewed-by: vromero
2016-09-21 05:26:26 +05:30
Srikanth Adayapalam
ed537dc705 8156568: Update javac to support compiling against a modular JAR that is a multi-release JAR
Reviewed-by: jjg
2016-09-20 12:12:18 +05:30
Srikanth Adayapalam
4688e355c5 8166108: VerifyError passing anonymous inner class to supertype constructor
Anonymous classes instantitated in explicit constructor calls cannot have enclosing instance

Reviewed-by: vromero
2016-09-20 05:28:54 +05:30
Srikanth Adayapalam
ac462ed848 8164742: ServiceConfigurationError on invoke of getServiceLoader method of StandardJavaFileManager
Reviewed-by: jlahoda
2016-09-19 05:31:53 +05:30
Dan Smith
eb56700eba 8138822: Source version error missing version number
Reviewed-by: jjg
2016-09-16 11:58:23 -06:00
Srikanth Adayapalam
83dbcb5c1b 8160699: java.lang.VerifyError: Inconsistent stackmap frames at branch target
Ensure out of scope locals are not treated as being alive

Reviewed-by: mcimadamore
2016-09-14 20:00:20 +05:30
Srikanth Adayapalam
e4870c84e3 8138667: java.lang.IllegalAccessError: tried to access method (for a protected method)
Reviewed-by: mcimadamore
2016-09-13 19:32:03 +05:30
Vicente Romero
29aa24a3c1 8162546: change hidden options -Xdebug to --debug, -XshouldStop to --should-stop, and -diags to --diags
Reviewed-by: mcimadamore
2016-09-06 17:04:43 -07:00
Vicente Romero
7e27dd569e 8160454: JSR269 jigsaw update: javax.lang.model.element.ModuleElement.getDirectives() causes NPE on unnamed modules
Reviewed-by: jjg
2016-09-02 05:43:54 -07:00
Srikanth Adayapalam
876bb73271 8164073: Javac should unconditionally warn if deprecated javadoc tag is used without @Deprecated annotation
Reviewed-by: mcimadamore
2016-09-02 07:49:15 +05:30
Jan Lahoda
161e3c650a 8165008: javac -Xmodule compiles the module in a way that reads the unnamed module
Ensuring proper separation between named modules and the unnamed module when using -Xmodule

Reviewed-by: jjg
2016-08-29 15:53:03 +02:00
Amy Lu
9f1556675e 8165193: Workaround intermittent failures of JavacTreeScannerTest and SourceTreeScannerTest due to C2 memory usage
Reviewed-by: darcy
2016-09-01 13:18:42 +08:00
Mandy Chung
2a62da3a63 8165109: langtools/test switches to use new CLI options
Reviewed-by: jjg, amlu
2016-08-30 20:49:41 -07:00
Jan Lahoda
bbf85261aa 8164951: Build broken after JDK-8164745
Reverting the fix for JDK-8164745 to investigate a build failure.

Reviewed-by: jjg
2016-08-29 18:14:26 +02:00
Jan Lahoda
4404741f80 8164745: javac -Xmodule compiles the module in a way that reads the unnamed module
Ensuring proper separation between named modules the unnamed module when using -Xmodule

Reviewed-by: jjg
2016-08-29 15:53:03 +02:00
Jonathan Gibbons
1386ffb4f2 8164887: update tests to remove use of old-style options
Reviewed-by: mchung
2016-08-26 15:54:36 -07:00
Maurizio Cimadamore
2c2d5c4917 8164399: inference of thrown variable does not work correctly
Logic for inferring thrown variables should exclude non proper bounds as per JLS 18.1

Reviewed-by: vromero, dlsmith
2016-08-25 11:51:19 +01:00
Vicente Romero
7328ed21cb 8161501: JSR269 jigsaw update: javax.lang.model.element.ModuleElement.getEnclosedElements() on unnamed module with unnamed package
Reviewed-by: jjg
2016-08-24 17:41:52 -07:00
Vicente Romero
ddbef393bc 8047338: javac is not correctly filtering non-members methods to obtain the function descriptor
Reviewed-by: mcimadamore
2016-08-24 12:23:10 -07:00
Sandeep Konchady
865b439a69 8163991: Fix license and copyright headers under test/jdk/javadoc/ and test/tools/javac/
Reviewed-by: anazarov, iris, jjg, shurailine
2016-08-23 10:19:49 +01:00
Jan Lahoda
f65c3ae869 8164550: tools/javac/modules/InheritRuntimeEnvironmentTest.java fails on Windows after JDK-8153391
Empty classpath is not working on Windows; using a classpath consisting on a sole empty dir

Reviewed-by: mcimadamore
2016-08-22 15:16:30 +02:00
Jan Lahoda
53cd7b54fa 8153391: an image created for \"jdk.compiler\" fails to run javac
Improving errors produced by javac when the zipfs implementation is missing in the JDK image.

Reviewed-by: jjg
2016-08-22 09:59:43 +02:00