Commit Graph

552 Commits

Author SHA1 Message Date
Tim Bell
57af527fbb Merge 2009-01-24 16:35:52 -08:00
Tim Bell
e6ce4c2488 6797463: 6557199 breaks the jax-ws workspace
Reviewed-by: jjg
2009-01-24 11:07:32 -08:00
Jonathan Gibbons
cf1252d823 6795365: NetBeans projects in langtools repository are not NB6.5-friendly
Reviewed-by: mcimadamore
2009-01-23 11:23:10 -08:00
Jonathan Gibbons
72a1863490 6796965: dev-time wrapper script for javac broken
Reviewed-by: ksrini
2009-01-22 15:45:44 -08:00
Xiomara Jayasena
3112e3e065 Added tag jdk7-b44 for changeset 9d204be2281a 2009-01-22 14:42:22 -08:00
Jonathan Gibbons
f495424a45 6795030: Files in langtools build can be compiled ignoring java.home settings
Reviewed-by: mcimadamore
2009-01-21 08:21:41 -08:00
Jonathan Gibbons
15099c9ffe 6795903: fix latent build warnings in langtools repository
Reviewed-by: darcy
2009-01-20 18:23:13 -08:00
Jonathan Gibbons
981f025a85 6794582: javadoc should read files using a FileManager
Reviewed-by: darcy, bpatel
2009-01-20 15:17:45 -08:00
Maurizio Cimadamore
19b769a375 6557199: Fails to reject bad override of generic method
Javac does not correctly implement JLS3 8.4.5

Reviewed-by: jjg
2009-01-20 17:49:49 +00:00
Maurizio Cimadamore
dffa62753f 6795580: parser confused by square brackets in qualified generic cast
Parser rejects cast with qualified generic array types

Reviewed-by: jjg
2009-01-20 17:49:09 +00:00
Jonathan Gibbons
a1f31b73db 6794959: add new switch -XDexpectKeys=key,key...
Reviewed-by: mcimadamore
2009-01-19 19:36:14 -08:00
Joe Darcy
6644396543 6583626: Improve serialization support in javax.lang.model.type exception classes
Reviewed-by: jjg
2009-01-16 14:05:55 -08:00
Tim Bell
1fab872b02 Merge 2009-01-16 10:38:31 -08:00
Jonathan Gibbons
b4747d3188 6794520: MessageRetriever should be upgraded to use varargs Object..
Reviewed-by: bpatel
2009-01-15 18:06:36 -08:00
Bhavesh Patel
de73102ff4 6786682: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - HTML tag should have lang attribute
Reviewed-by: jjg
2009-01-15 17:21:11 -08:00
Xiomara Jayasena
0590d5d822 Added tag jdk7-b43 for changeset a02ba404f9c6 2009-01-15 11:46:43 -08:00
Maurizio Cimadamore
34719749c5 6558559: Extra "unchecked" diagnostic
Fixed Types.sideCast in order to suppress redundant unchecked warnings

Reviewed-by: jjg
2009-01-13 13:31:35 +00:00
Mark Mahieu
9dff8d691f 6723444: javac fails to substitute type variables into a constructor's throws clause
Added constructor's actual type info to NewClass AST node

Reviewed-by: jjg
2009-01-13 13:28:42 +00:00
Maurizio Cimadamore
f6cd370370 6665356: Cast not allowed when both qualifying type and inner class are parameterized
Fixed parser and cats conversion in order to allow cast between generic inner classes

Reviewed-by: jjg
2009-01-13 13:28:20 +00:00
Maurizio Cimadamore
795b53a014 6765045: Remove rawtypes warnings from langtools
Removed all occurrences of rawtypes warnings from langtools

Reviewed-by: jjg, bpatel
2009-01-13 13:27:14 +00:00
Bhavesh Patel
a23159ffac Merge 2009-01-08 16:34:58 -08:00
Bhavesh Patel
a2a9e39ec7 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
Reviewed-by: jjg
2009-01-08 16:26:59 -08:00
Peter Runge
dda3b0af66 6512707: "incompatible types" after (unrelated) annotation processing
Reviewed-by: darcy
2009-01-07 14:48:29 -08:00
Tim Bell
1d9a30a4d2 Merge 2008-12-19 10:39:02 -08:00
Xiomara Jayasena
94649662ec Added tag jdk7-b42 for changeset f5855e0473e3 2008-12-18 21:34:20 -08:00
Xiomara Jayasena
b905401ddc Merge 2008-12-15 17:13:21 -08:00
Xiomara Jayasena
7582e6a1eb 6785258: Update copyright year
Update copyright for files that have been modified starting July 2008 to Dec 2008

Reviewed-by: katleman, ohair, tbell
2008-12-15 16:55:33 -08:00
Tim Bell
47b467dff2 Merge 2008-12-05 21:59:59 -08:00
Tim Bell
ecc1d3a67c Merge 2008-12-05 09:52:51 -08:00
Xiomara Jayasena
8ffbb1eee1 Added tag jdk7-b41 for changeset 6471e8a4578f 2008-12-04 11:10:35 -08:00
Jonathan Gibbons
9ed3284766 6778638: javadoc regression tests require tabs
Reviewed-by: darcy
2008-12-02 14:35:22 -08:00
Mark Wielaard
69e0e018d4 6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
Reviewed-by: ohair
2008-12-01 12:15:14 -08:00
Maurizio Cimadamore
71eb016652 6776289: Regression: javac7 doesnt resolve method calls properly
Superclass' private methods shouldn't be considered during method resolution

Reviewed-by: jjg
2008-11-26 11:07:07 +00:00
Tim Bell
da14ef4113 Merge 2008-11-21 15:21:41 -08:00
Xiomara Jayasena
6683daa8c7 Added tag jdk7-b40 for changeset 5db12b3a75ea 2008-11-20 11:39:58 -08:00
Maurizio Cimadamore
454f269528 6768932: Add support for multiline diagnostics
Added basic support for multiline/tabular diagnostics

Reviewed-by: jjg
2008-11-12 14:17:03 +00:00
Tim Bell
68e605f7a4 Merge 2008-11-07 11:45:49 -08:00
Xiomara Jayasena
803f241db6 Added tag jdk7-b39 for changeset 628049ac53ed 2008-11-06 12:10:41 -08:00
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
Tim Bell
c85afdbe86 Merge 2008-10-24 20:47:47 -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
Tim Bell
d01291bb6e Merge 2008-10-23 21:56:41 -07: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
Xiomara Jayasena
2531ec2c03 Added tag jdk7-b38 for changeset 62c548002ecb 2008-10-23 10:13:23 -07: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
Tim Bell
b99ff1ffeb Merge 2008-10-17 16:47:54 -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
ad3ca8d8f2 6759775: RegularFileObject.inferBinaryName gives bad result on empty path
Reviewed-by: mcimadamore
2008-10-16 07:30:13 -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
Maurizio Cimadamore
0f7dc30816 6759682: APT: compiler message file broken after refactoring of com.sun.tools.javac.util.Message
JavacMessages should refresh its own bundle cache when a new resource bundle is added by APT

Reviewed-by: jjg
2008-10-15 17:23:55 +01:00
Jonathan Gibbons
55ef4bc22e 6748541: javadoc should be reusable
Reviewed-by: bpatel
2008-10-15 08:07:59 -07:00
Maurizio Cimadamore
1dc1dcab49 6759143: com.sun.tools.javac.util.Messages is obsolete and should be removed
Push for 6406133 should have removed com.sun.tools.javac.util.Messages

Reviewed-by: jjg
2008-10-14 17:05:48 +01:00
Tim Bell
4fddc7cbee Merge 2008-10-10 13:29:11 -07:00
Xiomara Jayasena
16155a7d48 Added tag jdk7-b37 for changeset 076a3cde30d5 2008-10-09 11:13:34 -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
Jonathan Gibbons
1a0a9d1a6f 6748546: javadoc API should be classloader-friendly
Reviewed-by: bpatel
2008-10-06 16:57:15 -07:00
Tim Bell
ebc51f0813 Merge 2008-10-04 22:59:05 -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
Jonathan Gibbons
02332d6aa7 6748601: javadoc API should allow varargs use
Reviewed-by: bpatel
2008-10-01 16:26:33 -07:00
Tim Bell
b670ed41d6 Merge 2008-09-29 22:11:26 -07:00
Peng Li
e7058ee0c3 6739427: -Xlint:processing not recognized as an option
Reviewed-by: darcy, jjg
2008-09-29 11:38:56 -07:00
Maurizio Cimadamore
82a7a9f030 6753718: raw type warnings should be suprresed during a langtools build
Fixed build.properties in order to suppress raw type warnings

Reviewed-by: jjg
2008-09-29 15:30:27 +01: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
a8d5a91270 6735840: Need a type/symbol visitor printer
Added type/symbol visitor printer with support for localization

Reviewed-by: jjg
2008-09-29 11:48:09 +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
Tim Bell
5e2a37a5a0 Merge 2008-09-26 15:32:47 -07:00
Xiomara Jayasena
f3455aa584 Added tag jdk7-b36 for changeset 7798f9e88bf9 2008-09-25 12:54:13 -07: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
4cea49cf1c 6744408: Extra ouput is appearing in stderr
Reviewed-by: bpatel
2008-09-18 18:39:44 -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
Tim Bell
4350001c77 Merge 2008-09-12 23:32:51 -07:00
Tim Bell
513053fd42 Merge 2008-09-12 14:35:51 -07:00
Xiomara Jayasena
092df72269 Added tag jdk7-b35 for changeset 59749505f3e8 2008-09-11 11:26:00 -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
Tim Bell
9f4b8c2379 Merge 2008-09-04 14:56:35 -07:00
Jonathan Gibbons
756eea5eec 6743107: clean up use of static caches in file manager
Reviewed-by: mcimadamore
2008-09-03 10:46:25 -07:00
Tim Bell
e80aebd528 Merge 2008-08-31 12:00:43 -07:00
Tim Bell
309cfe4fd1 Merge 2008-08-29 12:42:27 -07:00
Davide Angelocola
39d8c22579 6597471: unused imports in javax.tools.JavaCompiler
6597531: unused imports and unused private const. in com.sun.tools.javac.Server.java

Reviewed-by: mcimadamore
2008-08-29 11:10:12 -07:00
Xiomara Jayasena
969313d8cc Added tag jdk7-b34 for changeset 1f47a876c043 2008-08-28 11:05:35 -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
Tim Bell
9015c7d020 Merge 2008-08-14 22:17:02 -07:00
Xiomara Jayasena
2a6a483ba0 Added tag jdk7-b33 for changeset e1305f648e12 2008-08-14 09:26:42 -07:00
Tim Bell
52da428ead Merge 2008-08-10 18:36:19 -07:00
Maurizio Cimadamore
c448d362ba 6732461: broken message file for annotation processing
Regression in sqe test introduced in 6720185

Reviewed-by: jjg
2008-08-08 17:52:02 +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
Tim Bell
bedd4eef34 Merge 2008-08-07 18:03:32 -07:00
Tim Bell
44a80db3ca Merge 2008-08-07 09:45:08 -07:00
Jonathan Gibbons
1788cb3419 6733995: legal notice repair on langtools/src/share/classes/com/sun/tools/javap/JavapTask.java
Reviewed-by: ksrini
2008-08-05 17:07:13 -07:00
Maurizio Cimadamore
ad5fef1fce 6730423: Diagnostic formatter should be an instance field of JCDiagnostic
JCDiagnostic.fragment should be deprecated and the diagnostic factory should be used instead

Reviewed-by: jjg
2008-08-05 12:54:40 +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
Xiomara Jayasena
8a7edaa6c1 Added tag jdk7-b32 for changeset aded486da6fd 2008-08-04 13:45:10 -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
c936a75ed0 6720185: DiagnosticFormatter refactoring
Brand new hierarchy of diagnostic formatters for achieving better reusability

Reviewed-by: jjg
2008-07-28 10:22:10 +01: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
Jonathan Gibbons
f3eff961d3 6726015: JavaCompiler: replace desugarLater by compileStates
Reviewed-by: mcimadamore
2008-07-23 19:55:30 -07:00
Tim Bell
d732419d95 Merge 2008-07-22 11:41:45 -07:00
Tim Bell
97ff80a1d9 Merge 2008-07-18 11:25:41 -07:00
Xiomara Jayasena
d7394859b3 Added tag jdk7-b31 for changeset bcb5c0d7c1ab 2008-07-17 11:28:51 -07:00
Jonathan Gibbons
a6f6acaf27 6657907: javadoc has unchecked warnings
Reviewed-by: bpatel
2008-07-15 19:22:51 -07:00
Jonathan Gibbons
43dbd05dde 6724071: refactor Log into a front end and back end
Reviewed-by: darcy
2008-07-15 09:50:36 -07:00
Jonathan Gibbons
72e64424e0 6725036: javac returns incorrect value for lastModifiedTime() when source is a zip file archive
Reviewed-by: darcy
2008-07-11 14:59:48 -07:00
Jonathan Gibbons
efd2515395 6724551: Use Queues instead of Lists to link compiler phases
Reviewed-by: darcy
2008-07-10 16:50:38 -07:00
Jonathan Gibbons
aa985271fd 6724327: eliminate use of shell tests for simple golden file tests
Reviewed-by: darcy
2008-07-10 11:25:23 -07:00
Jonathan Gibbons
02ef4bbc8c 4501661: disallow mixing -public, -private, and -protected options at the same time
Reviewed-by: ksrini
2008-07-08 18:06:19 -07:00
Jonathan Gibbons
d1e9333931 6716452: (classfile) need a method to get the index of an attribute
Reviewed-by: ksrini
2008-07-08 17:53:03 -07:00
Jonathan Gibbons
a2ef1138ad 6715753: unknown option error can be a little more helpful
Reviewed-by: ksrini
2008-07-08 17:25:50 -07:00
Jonathan Gibbons
23aea10d3e 6715757: javap does not print "extends java.lang.Object"
Reviewed-by: ksrini
2008-07-08 17:14:22 -07:00
Jonathan Gibbons
fdd75a4bbb 6715251: javap should be consistent with javac and return 2 if given no arguments
Reviewed-by: ksrini
2008-07-08 16:59:27 -07:00
Tim Bell
bfe81fd61c Merge 2008-07-04 15:06:27 -07:00
Xiomara Jayasena
bd5973ed58 Added tag jdk7-b30 for changeset 372aa565a221 2008-07-03 11:01:49 -07:00
Xiomara Jayasena
4d965a7153 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:56:02 -07:00
Tim Bell
ab32cfbffe Merge 2008-06-25 23:30:55 -07:00
Jonathan Gibbons
dd0f4f4cc6 6507179: javadoc -source 1.3 does not work with jdk6
Reviewed-by: mcimadamore
2008-06-25 14:24:53 -07:00
Tim Bell
e27161b934 Merge 2008-06-20 16:36:18 -07:00
Xiomara Jayasena
8b4b14af5c Added tag jdk7-b29 for changeset 94987e5c1597 2008-06-20 08:45:15 -07:00
Maurizio Cimadamore
f33c28c7fb 6294779: Problem with interface inheritance and covariant return types
Problematic overriding check when two methods defined in two distinct superinterfaces are overriden by an interface

Reviewed-by: jjg
2008-06-20 11:25:03 +01:00
Jonathan Gibbons
cfd8c6e652 6716866: some javac regression tests fail to compile with re-orged file manager
Reviewed-by: darcy
2008-06-19 15:52:31 -07:00
Jonathan Gibbons
2e420d4001 6715767: javap on java.lang.ClassLoader crashes
Reviewed-by: ksrini
2008-06-18 16:53:08 -07:00
Jonathan Gibbons
27b7da6dfc 6714365: refactor JavacFileManager to move nested classes to top level
Reviewed-by: mcimadamore
2008-06-18 07:23:25 -07:00
Jonathan Gibbons
d39e209011 6625520: javac handles missing entries on classpath badly
Reviewed-by: mcimadamore
2008-06-17 10:44:32 -07:00
Tim Bell
dc6f119d59 Merge 2008-06-16 22:23:33 -07:00
Jonathan Gibbons
c8fdd80cc2 6714364: refactor javac File handling code into new javac.file package
Reviewed-by: mcimadamore
2008-06-16 13:28:00 -07:00
Tim Bell
7cad138c70 Merge 2008-06-12 13:19:16 -07:00
Xiomara Jayasena
f7134c8cfd Added tag jdk7-b28 for changeset 9ab834e560b8 2008-06-10 10:37:23 -07:00
Tim Bell
94e7336593 Merge 2008-06-06 15:17:35 -07:00
Jonathan Gibbons
92cea6ce44 6711276: langtools has incorrect -Werror switch
Reviewed-by: ksrini
2008-06-05 13:46:26 -07:00
Jonathan Gibbons
0a7516d744 4075303: Use javap to enquire aboput a specific inner class
4348375: Javap is not internationalized
4459541: "javap -l" shows line numbers as signed short; they should be unsigned
4501660: change diagnostic of -help as 'print this help message and exit'
4776241: unused source file in javap..
4870651: javap should recognize generics, varargs, enum
4876942: javap invoked without args does not print help screen
4880663: javap could output whitespace between class name and opening brace
4975569: javap doesn't print new flag bits
6271787: javap dumps LocalVariableTypeTable attribute in hex, needs to print a table
6305779: javap: support annotations
6439940: Clean up javap implementation
6469569: wrong check of searchpath in JavapEnvironment
6474890: javap does not open .zip files in -classpath
6587786: Javap throws error : "ERROR:Could not find <classname>" for JRE classes
6622215: javap ignores certain relevant access flags
6622216: javap names some attributes incorrectly
6622232: javap gets whitespace confused
6622260: javap prints negative bytes incorrectly in hex

Reviewed-by: ksrini
2008-06-03 13:26:47 -07:00
Tim Bell
39482b230d Merge 2008-06-02 22:35:16 -07:00
Maurizio Cimadamore
e3ba3ecd1d 6677785: REGRESSION: StackOverFlowError with Cyclic Class level Type Parameters when used in constructors
This regression has been caused by previous fix of 6660289

Reviewed-by: jjg
2008-05-30 11:08:40 +01:00
Maurizio Cimadamore
afb636d599 6507024: casting an array to a generic type results in a 'capture#69 of ?' type error
Types.isSubtypeUnchecked() should handle type-variables subtyping properly

Reviewed-by: jjg
2008-05-30 10:42:43 +01:00
Maurizio Cimadamore
617daebc69 6665223: Static import of inherited protected method causes compiler exception
Buggy accessibility check causes NPE during resolution of imported static methods

Reviewed-by: jjg
2008-05-30 10:29:27 +01:00
Tim Bell
92579e1577 Merge 2008-05-28 00:02:28 -07:00
Jonathan Gibbons
e7c264308c 6705935: javac reports path name of entry in ZipFileIndex incorectly
Reviewed-by: darcy
2008-05-22 17:40:53 -07:00
Jonathan Gibbons
e3cb6a2c82 6657909: javap has unchecked compilation warnings
Reviewed-by: mcimadamore
2008-05-22 16:06:00 -07:00
Jonathan Gibbons
aefbc41695 6705945: com.sun.tools.javac.zip files do not have valid copyright
Reviewed-by: mcimadamore
2008-05-22 15:51:41 -07:00
Xiomara Jayasena
2bd5006eac Added tag jdk7-b27 for changeset ae44a6d84438 2008-05-22 09:37:57 -07:00
Tim Bell
fcc59caffc Merge 2008-05-12 18:07:48 -07:00
Tim Bell
a51865fc90 Merge 2008-04-25 15:22:39 -07:00
Xiomara Jayasena
74c68ed959 Added tag jdk7-b26 for changeset a19298c17815 2008-04-24 12:12:28 -07:00
Maurizio Cimadamore
c2e37f139a 6682380: Foreach loop with generics inside finally block crashes javac with -target 1.5
A missing type-erasure in Lower.java causes the compiler to crash since JDK6

Reviewed-by: jjg
2008-04-23 17:10:03 +01:00
Tim Bell
01af1b8223 Merge 2008-04-15 17:48:22 -07:00
Tim Bell
0d23d8c962 Merge 2008-04-11 15:08:21 -07:00
Xiomara Jayasena
7e94966c91 Added tag jdk7-b25 for changeset 2afbdd3321d0 2008-04-09 11:19:15 -07:00
Maurizio Cimadamore
38763bd637 6559182: Cast from a raw type with non-generic supertype to a raw type fails unexpectedly
Javac doesn't conform to JLS 4.8 - all the supertypes of a raw type must be erased

Reviewed-by: jjg
2008-04-09 15:30:44 +01:00
Maurizio Cimadamore
e63129f7b5 6683438: Bad regression test for CR 6611449
The regression test for CR 6611449 contains some inconstistencies

Reviewed-by: jjg
2008-04-09 15:04:35 +01:00
Maurizio Cimadamore
d09cfea3c2 6657499: javac 1.6.0 fails to compile class with inner class
Lookup of member inner classes silently fails leading to an unwanted erasure to take place

Reviewed-by: jjg
2008-04-09 14:57:37 +01:00
Maurizio Cimadamore
bafc1f6d00 6450290: Capture of nested wildcards causes type error
A missing capture conversion makes javac to think that some expressions are well-formed even when they aren't

Reviewed-by: jjg
2008-04-09 14:45:50 +01:00
Maurizio Cimadamore
70bdf8ae8d 6481655: Parser confused by combination of parens and explicit type args
Bug in the parser caused by the fact that explicit type arguments are disabled when parsing parenthesized expressions

Reviewed-by: jjg
2008-04-09 14:05:24 +01:00
Maurizio Cimadamore
11b40a75ac 6365166: javac (generic) unable to resolve methods
Unignore regression test as this bug has been fixed by CR 6278587

Reviewed-by: jjg
2008-04-09 13:53:45 +01:00
Maurizio Cimadamore
3c80eb1a9e 5009937: hiding versus generics versus binary compatibility
Missing implementation of JLS 8.4.8.3 (different arguments with same erasure not always triggering a compiler error)

Reviewed-by: jjg
2008-04-09 13:41:45 +01:00
Maurizio Cimadamore
2daecbb697 6531075: Missing synthetic casts when accessing fields/methods of intersection types including type variables
Bug when javac generates code involving intersection types

Reviewed-by: jjg
2008-04-09 13:19:01 +01:00
Kumar Srinivasan
f62ccad5cd 6570242: Regression test failures with Javac on win32
Takes this test out of service until the reall bug is fixed

Reviewed-by: jjg
2008-04-03 18:01:55 -07:00
Maurizio Cimadamore
1be460dbdd 6531090: Cannot access methods/fields of a captured type belonging to an intersection type
Fixed lookup of field/methods on intersection types

Reviewed-by: jjg
2008-04-02 11:44:23 +01:00
Maurizio Cimadamore
8ef814eb9c 6509042: javac rejects class literals in enum constructors
Javac now distinguish between enum class literals and static fields

Reviewed-by: jjg
2008-04-02 11:38:16 +01:00
Maurizio Cimadamore
70bcd151a0 6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
Improved glb on type-inference

Reviewed-by: jjg
2008-04-02 11:20:52 +01:00
Kumar Srinivasan
8cb91c890d 6618930: (javac) fix test after whitespace normalization
Whitespace normalization left the test unusable, back to service

Reviewed-by: jjg
2008-03-20 08:44:18 -07:00
Jonathan Gibbons
2f36d025ca 6638501: Regression with Javac in JDK6 U4 b03?
Replace some String paths with File paths in Paths.java

Reviewed-by: ksrini
2008-03-14 16:09:30 -07:00
Jonathan Gibbons
d3dcc1c115 6559315: Inconsistent non-standard Sun copyright in src/share/opensource/javac/doc/document.css
Remove obsolete files

Reviewed-by: mcimadamore
2008-03-13 13:42:38 -07:00
Jonathan Gibbons
7dbe0828de 6668794: javac puts localized text in raw diagnostics
6668796: bad diagnostic "bad class file" given for source files

Replace internal use of localized text with JCDiagnostic fragments; fix diagnostic for bad source file

Reviewed-by: mcimadamore
2008-03-12 13:06:00 -07:00
Jonathan Gibbons
4cd40a47ff 6307187: clean up code for -Xlint:options
Introduce common code for handling one-of and any-of options

Reviewed-by: mcimadamore
2008-03-11 13:14:55 -07:00
Jonathan Gibbons
a7ed75b36a 6668802: javac handles diagnostics for last line badly, if line not terminated by newline
Use CharBuffer.limit(), not the length of the backing array

Reviewed-by: mcimadamore
2008-03-06 10:25:04 -08:00
Michael Bailey
7c8027dace 4741726: allow Object += String
Remove code in line with restriction removed from JLS

Reviewed-by: mcimadamore
2008-03-06 10:07:25 -08:00
Maurizio Cimadamore
e82f625583 6663588: Compiler goes into infinite loop for Cyclic Inheritance test case
Interplay between cyclic inheritance and tvar bounds hangs javac

Reviewed-by: jjg
2008-03-04 15:45:20 +00:00
Maurizio Cimadamore
6350088352 6608214: Exception throw while analysing a file with error
Bad error-recovery after bad type-variable bound is detected

Reviewed-by: jjg
2008-03-04 15:19:06 +00:00
Maurizio Cimadamore
00c5620740 6660289: declared bound in inner class referring a type variable of the outer class
NPE caused by a defect in type-variable attribution

Reviewed-by: jjg
2008-03-04 13:00:08 +00:00
Maurizio Cimadamore
9e5259f792 6611449: Internal Error thrown during generic method/constructor invocation
Type-inference should fail since lub is not defined for primitive types

Reviewed-by: jjg
2008-03-04 12:14:13 +00:00
Maurizio Cimadamore
702926ba55 6614974: javac successfully compiles code that throws java.lang.VerifyError when run
Synthetic cast missing when translating autoboxing expressions

Reviewed-by: jjg
2008-03-03 16:03:53 +00:00
Mark Reinhold
c426bbd074 6669216: Add jcheck configuration directories
Reviewed-by: ohair, xdono
2008-02-29 20:04:03 -08:00
Xiomara Jayasena
3d9467a948 Added tag jdk7-b24 for changeset 06bc494ca11e 2007-12-04 16:28:45 -08:00
J. Duke
f57b87e8f6 Initial load 2007-12-01 00:00:00 +00:00