Vicente Romero
5b199f3cb8
8038182: javac crash with FunctionDescriptorLookupError for invalid functional interface
...
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore
2014-06-19 15:39:37 +01:00
Jan Lahoda
2f910049e8
8031967: For some sources compiler compiles for ever
...
Avoid creating DeferredTypes for method calls with method calls as receivers if the site can be determined reliably
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore, vromero
2014-05-30 12:54:16 +02:00
Paul Govereau
649331e00f
8041704: wrong error message when mixing lambda expression and inner class
...
Reviewed-by: vromero
2014-05-27 18:57:44 +01:00
Sonali Goel
378c3fe62f
8043336: Missing bug id in test/tools/javac/lambda/TargetType23.java
...
Reviewed-by: jjg, vromero, dlsmith
2014-05-22 15:42:10 -07:00
Dan Smith
9798cbad4c
8034223: Most-specific should not have any special treatment for boxed vs. unboxed types
...
Rewrite most-specific logic to conform to JLS 8 15.12.2.5
Reviewed-by: vromero
2014-05-13 15:29:09 -06:00
Vicente Romero
9cf78d324c
8028503: javac, for method references a primitive type can be added as a bound
...
Reviewed-by: jjg, dlsmith
2014-05-10 01:24:35 +01:00
Robert Field
89be14bfe5
8029852: Bad code generated (VerifyError) when lambda instantiates enclosing local class and has captured variables
...
8029725: Lambda reference to containing local class causes javac infinite recursion
Reviewed-by: vromero, jlahoda, dlsmith
2014-04-30 23:02:14 -07:00
Robert Field
e8adfd1234
8036942: javac generates incorrect exception table for multi-catch statements inside a lambda
...
Union type info lost and also union type is not processed by TreeMaker.Type -- address by using existing tree, thus by-passing such issues.
Reviewed-by: vromero, jlahoda
2014-04-30 18:19:23 -07: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
Robert Field
360461f136
8038420: Lambda returning post-increment generates wrong code
...
Reviewed-by: vromero, jlahoda
2014-04-15 15:55:24 -07:00
Robert Field
300fbf0889
8037935: Javac -- final local String var referenced in binary/unary op in lambda produces code that does not verify
...
Remove over-zealous Attr optimization breaking lambdas
Reviewed-by: jjg, vromero
2014-04-15 15:52:52 -07:00
Alexander Zuev
d9d9742c75
8031425: Two langtools/javac tests fail by timeout on Windows
...
Reviewed-by: jjg, vromero
2014-04-01 10:00:43 -07:00
Matherey Nunez
69f2f2fad4
8027175: Existing regression tests in tl/langtools and tl/jdk need to be updated for @bug keyword
...
Reviewed-by: jjg, ksrini
2014-01-27 12:45:03 -08:00
Abhijit Saha
69a1d18d40
Merge
2014-01-16 21:46:01 -08:00
Joe Darcy
87dec1fa1a
8031745: Remove unneeded/obsolete -source/-target options in javac tests, part 1
...
Reviewed-by: jjg, sogoel
2014-01-16 18:00:25 -08:00
Abhijit Saha
c575ece03d
Merge
2014-01-14 08:08:32 -08: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
Robert Field
8d4ba575b6
8030626: java.lang.VerifyError: Bad return type when lambda's body is in parentheses
...
Properly type convert the body of a lambda expression (forward port to JDK9 of 8029558)
Reviewed-by: vromero
2013-12-22 21:57:01 -08:00
Vicente Romero
6255412f38
8029721: javac crash for annotated parameter type of lambda in a field
...
Reviewed-by: rfield, jfranck
2013-12-18 19:22:58 +00:00
Jan Lahoda
0f0e04b6a0
8028235: Better error recovery for parsing 'void' as a type of the lambda parameter
...
Handle "void" as a primitive type in JavacParser.analyzeParens.
Reviewed-by: vromero
2013-12-17 10:58:26 +01:00
Robert Field
14ae524304
8028739: javac generates incorrect descriptor for MethodHandle::invoke
...
Introduce special handling for signature polymorphic methods
Reviewed-by: jjg
2013-11-22 17:07:35 -08:00
Vicente Romero
e6e0508e1a
8026231: Look at 'static' flag when checking method references
...
Reviewed-by: jjg, dlsmith
2013-11-15 11:08:12 +00:00
Jan Lahoda
d3eb4e0816
8027142: Invokedynamic instructions don't get line number table entries
...
When emitting invokedynamic instruction, write pendingStatPos, if set, into the LineNumberTable. Invokedynamic itself does not set the pendingStatPos.
Reviewed-by: jjg, jrose, ksrini, vromero
2013-11-09 15:24:38 +01:00
Robert Field
c9ceea7ac7
8022720: Method refeerences - private method should be accessible (nested classes)
...
Reviewed-by: jjg, ksrini
2013-10-23 10:28:10 -07:00
Robert Field
69709943c3
8023668: Desugar serializable lambda bodies using more robust naming scheme
...
Lambda / bridged method-reference naming overhaul
Reviewed-by: ksrini, briangoetz
2013-10-22 16:53:21 -07:00
Vicente Romero
48b6b38e52
8025290: javac implicit versus explicit lambda compilation error
...
Reviewed-by: jjg, dlsmith
2013-10-22 13:54:49 +01:00
Vicente Romero
43754fccbd
8026956: test tools/javac/lambda/TargetType58.java is failing after a libs change
...
Reviewed-by: jfranck
2013-10-21 15:55:02 +01:00
Vicente Romero
027b935c1b
8024809: javac, some lambda programs are rejected by flow analysis
...
Reviewed-by: jjg, dlsmith
2013-10-19 17:43:09 +01:00
Jonathan Gibbons
cf30c20337
8026749: Missing LV table in lambda bodies
...
Reviewed-by: vromero, jlahoda
2013-10-18 15:03:34 -07:00
Jonathan Gibbons
ef68cc1fc1
8026704: Build failure with --enable-debug
...
Reviewed-by: ksrini
2013-10-16 10:47:21 -07:00
Vicente Romero
1868655b89
8024947: javac should issue the potentially ambiguous overload warning only where the problem appears
...
Reviewed-by: jjg
2013-10-15 21:02:21 +01:00
Vicente Romero
53cc43916a
8025816: javac crash with method reference with a type variable as the site
...
Reviewed-by: jjg
2013-10-15 19:36:45 +01:00
Jonathan Gibbons
0837163643
8025998: Missing LV table in lambda bodies
...
Reviewed-by: vromero
2013-10-14 23:07:43 -07:00
Robert Field
a8e63b82f1
8012557: Implement lambda methods on interfaces as private
...
8016320: Method reference in subinterface of type I.super::foo produces exception at runtime
Now that the VM supports interface instance private methods, lambda methods and lambda bridges are always private. Access is now through invokespecial.
Reviewed-by: vromero, jlahoda
2013-10-10 23:26:56 -07:00
Robert Field
9a6f8e8463
8025548: langtools test tools/javac/lambda/methodReference/BridgeMethod.java incorrectly assumes no other methods generated in lambda class
...
Reviewed-by: vromero
2013-09-27 13:06:38 -07:00
Vicente Romero
cae732b133
8024497: crash returning this-referencing lambda from default method
...
Reviewed-by: jjg, rfield
2013-09-27 10:24:56 +01:00
Sonali Goel
e60e01be01
8011738: Write test to check for bootstrap attributes for lambda expressions in class file
...
Reviewed-by: mcimadamore
2013-09-26 15:04:15 -07:00
Andreas Lundblad
48774216f2
6386236: Please rename com.sun.tools.javac.util.ListBuffer.lb()
...
Static factory method ListBuffer.lb removed. Replaced by constructor calls.
Reviewed-by: jfranck, jjg
2013-09-23 10:42:38 +02:00
Vicente Romero
70e873ec73
8024696: Missing null check in bound method reference capture
...
Reviewed-by: jjg, briangoetz
2013-09-22 12:53:03 +01:00
Vicente Romero
204f4422ba
8023558: Javac creates invalid bootstrap methods for complex lambda/methodref case
...
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: jjg
2013-09-12 22:40:29 +01:00
Andreas Lundblad
fae7d60062
8005222: Fixed bugs should have tests with bugid in @bug tag
...
Reviewed-by: jfranck, jjg
2013-09-10 13:47:51 +02:00
Jan Lahoda
a9e5e17bd2
8019521: Enhanced rethrow disabled in lambdas
...
Fixing effectively final detection inside lambdas, small cleanup related to thrown types detection in lambdas
Reviewed-by: mcimadamore, jjg
2013-09-09 23:13:45 +02:00
Brian Goetz
b03e5fc290
8015322: Javac template test framework
...
Putback of the javac template test framework from the Lambda repository
Reviewed-by: jjg
2013-09-09 17:11:55 -04:00
Vicente Romero
1704a9454c
8024154: Fix for 8016177: structural most specific and stuckness breaks 6 langtools tests
...
Reviewed-by: jjg, jfranck
2013-09-09 16:32:08 +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
06caeea3d6
8023389: Javac fails to infer type for lambda used with intersection type and wildcards
...
Reviewed-by: jjg, vromero
2013-09-03 23:31:33 +01:00
Maurizio Cimadamore
0382c78ff1
8016177: structural most specific and stuckness
...
Reviewed-by: jjg, vromero
2013-09-02 22:38:36 +01:00
Henry Jen
8873ff4e48
8014566: Remove @ignore tags from MethodReference66 and InInterface when 8013875 is fixed
...
Reviewed-by: briangoetz, jjg
2013-08-28 10:17:23 -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
58d92c516a
8021567: Javac doesn't report \"java: reference to method is ambiguous\" any more
...
Javac incorrectly forgets about constant folding results within lambdas
Reviewed-by: jjg, vromero
2013-08-12 17:28:31 +01:00