Commit Graph

97 Commits

Author SHA1 Message Date
Maurizio Cimadamore
caa22f1483 6763518: Impossible to suppress raw-type warnings
Check.validate(Type) should be invoked after -Xlint is augmented in Attr.visitVarDef

Reviewed-by: darcy
2008-10-28 14:05:59 +00:00
Jonathan Gibbons
49c8929c4a 6764226: ListTest fails on javap output with bad characters
Reviewed-by: darcy
2008-10-27 14:25:59 -07:00
Maurizio Cimadamore
a21aaaa7dc 6762569: Javac crashes with AssertionError in Types.containedBy
Types.containedBy should be more liberal with UndetVars

Reviewed-by: jjg
2008-10-24 12:46:51 +01:00
Maurizio Cimadamore
418461fae2 6758789: Some method resolution diagnostic should be improved
Recent work on diagnostics left out some resolution corner cases

Reviewed-by: jjg
2008-10-24 12:46:34 +01: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
Maurizio Cimadamore
3a7c0b423c 6680106: StackOverFlowError for Cyclic inheritance in TypeParameters with ArrayType Bounds
Javac ends up in an infinite loop while attributing mutually referring array type-parameter bounds

Reviewed-by: jjg
2008-10-24 12:45:47 +01:00
Maurizio Cimadamore
5a17e28602 6557954: Inner class type parameters doesn't get substituted when checking type well-formedness
Validator.visitTypeApply should substitute all formal typevars with actual parameters

Reviewed-by: jjg
2008-10-23 18:29:11 +01:00
Maurizio Cimadamore
0408a1adae 6548436: Incorrect inconvertible types error
Types.rewrite quantifiers should cope with captured type-variables properly

Reviewed-by: jjg
2008-10-23 18:10:23 +01:00
Maurizio Cimadamore
b2ffad7180 6487370: javac incorrectly gives ambiguity warning with override-equivalent abstract inherited methods
Javac should not compare erased return types when checking for ambiguity errors during overload resolution

Reviewed-by: jjg
2008-10-23 18:00:05 +01:00
Maurizio Cimadamore
90e6379916 6711619: javac doesn't allow access to protected members in intersection types
Accordingly to new accessibility rules all members of intersection types (but private ones) should be accessible

Reviewed-by: jjg
2008-10-23 17:59:43 +01:00
Maurizio Cimadamore
be7b82ffe4 6732484: Bound error on wildcard code
Check.checkExtends should cope with captured type-variables

Reviewed-by: jjg
2008-10-23 17:59:16 +01:00
Jonathan Gibbons
7d2872604d 6759996: ignore empty entries on paths
Reviewed-by: darcy
2008-10-20 13:42:45 -07:00
Jonathan Gibbons
fac7f6fd8a 6760930: empty element on bootclasspath breaks test/tools/apt/Discovery/discovery.sh
Reviewed-by: darcy
2008-10-17 16:06:32 -07:00
Jonathan Gibbons
8175eb6c0e 6760805: empty element on bootclasspath breaks test/tools/apt/Compile/compile.sh
Reviewed-by: darcy
2008-10-17 10:34:06 -07:00
Jonathan Gibbons
c6c8882d70 6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe
Reviewed-by: darcy
2008-10-16 16:53:56 -07:00
Maurizio Cimadamore
1cfe36b8a1 6760226: test/tools/javap/T6622260.java fails with specific locale settings
Changed the regression test in order to make it more robust w.r.t. to locale settings

Reviewed-by: jjg
2008-10-16 18:07:37 +01:00
Jonathan Gibbons
72ffb28a4d 6759810: bad regression test causes source file to be deleted
Reviewed-by: mcimadamore
2008-10-16 07:39:53 -07:00
Jonathan Gibbons
a75a5f00d6 6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath
Reviewed-by: darcy
2008-10-15 13:20:03 -07:00
Jonathan Gibbons
a2201c5ae7 6759795: test/tools/apt/Basic/print.sh may fail depending on jtreg options
Reviewed-by: darcy
2008-10-15 11:13:23 -07:00
Jonathan Gibbons
55ef4bc22e 6748541: javadoc should be reusable
Reviewed-by: bpatel
2008-10-15 08:07:59 -07:00
Maurizio Cimadamore
c09e705e04 6586091: javac crashes with StackOverflowError
Types.adapt should avoid infinite loops by exploiting a local cache

Reviewed-by: jjg
2008-10-09 16:21:04 +01:00
Maurizio Cimadamore
68c9df4110 6731573: diagnostic output should optionally include source line
Added an -XD option to optionally prints out source lines in error messages

Reviewed-by: jjg
2008-10-09 16:19:13 +01:00
Maurizio Cimadamore
7a442ce178 6406133: JCDiagnostic.getMessage ignores locale argument
Compiler API should take into account locale settings

Reviewed-by: jjg
2008-10-09 16:07:38 +01:00
Maurizio Cimadamore
ab5f1cb24b 6724345: incorrect method resolution for enum classes entered as source files
Enum's abstract methods shouldn't be skipped during method resolution

Reviewed-by: jjg
2008-10-09 16:04:29 +01:00
Maurizio Cimadamore
67339c0aab 6738538: javac crashes when using a type parameter as a covariant method return type
Capture conversion should be applied when acccessing a member of an intersection type

Reviewed-by: jjg
2008-10-09 16:02:29 +01:00
Maurizio Cimadamore
9315b88d67 6751514: Unary post-increment with type variables crash javac during lowering
Lower.abstractRval should take into account parenthesized expressions

Reviewed-by: jjg
2008-10-09 15:56:20 +01:00
Jonathan Gibbons
98ab03e7e5 6749967: regression tests for apt should be same-vm friendly
Reviewed-by: darcy
2008-10-07 15:39:19 -07:00
Tim Bell
7fe650bc36 Merge 2008-10-04 22:49:54 -07:00
Xiomara Jayasena
4dcb55b4b5 6754988: Update copyright year
Update for files that have been modified starting July 2008

Reviewed-by: ohair, tbell
2008-10-02 19:58:40 -07:00
Maurizio Cimadamore
5fc92453b6 6747671: -Xlint:rawtypes
Add an Xlint option for detecting all raw types usages (ccc-approved)

Reviewed-by: jjg
2008-09-29 12:00:29 +01:00
Maurizio Cimadamore
ec0853a113 6500343: compiler generates bad code when translating conditional expressions
TransTypes needs to deal with intersection types coming from conditional expressions

Reviewed-by: jjg
2008-09-29 11:34:43 +01:00
Jonathan Gibbons
fc58b54ba3 6420151: need to improve byfile compile policy to eliminate footprint issues
Reviewed-by: mcimadamore
2008-09-23 10:44:51 -07:00
Jonathan Gibbons
2fecfdfb50 6728697: tools/javac/versionOpt.sh fails on OpenJDK builds
Reviewed-by: darcy
2008-09-18 13:47:43 -07:00
Jonathan Gibbons
3ca95fc7a6 6574134: Allow for alternative implementation of Name Table with garbage collection of name bytes
Reviewed-by: darcy, mcimadamore
2008-09-16 18:35:18 -07:00
Jonathan Gibbons
b0419018b0 6724118: change JavaCompiler to not use Scanner directly
6736119: refactor Parser and Parser.Factory

Reviewed-by: mcimadamore
2008-09-09 10:40:50 -07:00
Jonathan Gibbons
8166ad7ece 6557752: Original type of an AST should be made available even if it is replaced with an ErrorType
Reviewed-by: mcimadamore
2008-09-09 10:28:21 -07:00
Jonathan Gibbons
fc7983c405 6508981: cleanup file separator handling in JavacFileManager
Reviewed-by: mcimadamore
2008-08-26 14:52:59 -07:00
Maurizio Cimadamore
b9c79ae213 6733837: Recent work on javac diagnostic affected javac output
Problems with diagnostic path and tab character in the source code

Reviewed-by: darcy, jjg
2008-08-22 11:46:29 +01:00
Maurizio Cimadamore
054a64704a 6734819: Javac performs flows analysis on already translated classes
Regression in JavaCompiler.desugar introduced in 6726015

Reviewed-by: jjg
2008-08-08 17:48:04 +01:00
Maurizio Cimadamore
a7cdf34685 6676362: Spurious forward reference error with final var + instance variable initializer
Some javac forward reference errors aren't compliant with the JLS

Reviewed-by: jjg
2008-08-08 17:43:24 +01:00
Maurizio Cimadamore
fe12031643 6718364: inference fails when a generic method is invoked with raw arguments
Bug in the implementation of Types.isSubtypeUnchecked

Reviewed-by: jjg
2008-08-08 17:38:20 +01:00
Maurizio Cimadamore
b267c3b746 6695838: javac does not detect cyclic inheritance involving static inner classes after import clause
Javac fails to detect some errors due to the order in which a class' static imports are entered

Reviewed-by: jjg
2008-08-08 15:16:25 +01:00
Jonathan Gibbons
b6dbc8cf63 4884240: additional option required for javap
Reviewed-by: ksrini
2008-08-04 17:54:15 -07:00
Jonathan Gibbons
44444bd9c0 4111861: static final field contents are not displayed
Reviewed-by: ksrini
2008-08-04 15:09:02 -07:00
Jonathan Gibbons
7c754d9268 6627362: javac generates code that uses array.clone, which is not available on JavaCard
6627364: javac needs Float and Double on the bootclasspath even when not directly used
6627366: javac needs Cloneable and Serializable on the classpath even when not directly used

Reviewed-by: darcy
2008-08-01 15:23:18 -07:00
Maurizio Cimadamore
fbde930522 6675483: Javac rejects multiple type-variable bound declarations starting with an enum type
Intersection types bounded by an enum are erroeously considered harmful by javac

Reviewed-by: jjg
2008-07-25 12:22:09 +01:00
Maurizio Cimadamore
5f46dc3001 6500701: Enhanced for loop with generics generates faulty bytecode
Lower is too strict when translating enhanced causing CCE to be thrown at runtime

Reviewed-by: jjg
2008-07-25 12:05:43 +01:00
Maurizio Cimadamore
3bc508df8a 6717241: some diagnostic argument is prematurely converted into a String object
Removed early toString() conversions applied to diagnostic arguments

Reviewed-by: jjg
2008-07-24 19:06:57 +01:00
Maurizio Cimadamore
9879011723 6594284: NPE thrown when calling a method on an intersection type
Javac should report an error when the capture of an actual type parameter does not exist

Reviewed-by: jjg
2008-07-24 11:12:41 +01:00
Maurizio Cimadamore
fec04e0a18 6651719: Compiler crashes possibly during forward reference of TypeParameter
Compiler should apply capture conversion when checking for bound conformance

Reviewed-by: jjg
2008-07-24 10:35:38 +01:00