161 Commits

Author SHA1 Message Date
Maurizio Cimadamore
a74aa28243 6722234: javac diagnostics need better integration with the type-system
Added RichDiagnosticFormatter which provides better formatting capabilities for javac types/symbols

Reviewed-by: jjg
2009-05-21 10:56:36 +01:00
Jonathan Gibbons
6fbe9f979e 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 13:36:23 -07:00
Jonathan Gibbons
131c3e10ee 6832154: refactor Paths to be just a utility class for JavacFileManager
Reviewed-by: darcy
2009-05-19 15:07:15 -07:00
Jonathan Gibbons
9de58af34f 6843013: missing files in fix for 6824493
Reviewed-by: darcy
2009-05-19 13:53:00 -07:00
Jonathan Gibbons
72b623769a 6824493: experimental support for additional info for instructions
Reviewed-by: mcimadamore
2009-05-19 11:50:54 -07:00
Jonathan Gibbons
f05e74203e 6841419: classfile: add constant pool iterator
Reviewed-by: mcimadamore
2009-05-19 11:43:50 -07:00
Kevin Looney
58eddef3f4 6841420: classfile: add new methods to ConstantClassInfo
Reviewed-by: mcimadamore
2009-05-19 11:33:13 -07:00
Kevin Looney
c1b42c6d84 6841422: classfile: add Type visitor
Reviewed-by: mcimadamore
2009-05-19 11:27:10 -07:00
John R Rose
5ba10ad9ad 6829189: Java programming with JSR 292 needs language support
Language changes documented in http://wikis.sun.com/display/mlvm/ProjectCoinProposal

Reviewed-by: jjg, darcy, mcimadamore
2009-05-04 21:04:04 -07:00
Lana Steuck
e7903bf295 Merge 2009-04-13 22:35:14 -07:00
Lana Steuck
1965d90445 Merge 2009-04-09 13:13:47 -07:00
Dmitry Cherepanov
193bce6e2e 6663040: Using com.sun.awt.AWTUtilities do not give warning while compilation
Reviewed-by: yan, anthony
2009-04-07 10:27:18 +04:00
Jonathan Gibbons
851190bb2e 6813059: replace use of JavaCompiler.errorCount with shouldContinue
Reviewed-by: mcimadamore
2009-03-31 11:16:15 -07:00
Jonathan Gibbons
681d216332 6817950: refactor ClassReader to improve attribute handling
Reviewed-by: mcimadamore
2009-03-31 11:07:55 -07:00
Jonathan Gibbons
dcd2283896 6819246: improve support for decoding instructions in classfile library
Reviewed-by: ksrini
2009-03-30 15:08:09 -07:00
Maurizio Cimadamore
584c02dfa8 6400189: raw types and inference
Fixed resolution problem with raw overriding (CCC)

Reviewed-by: jjg
2009-03-25 10:29:28 +00:00
Maurizio Cimadamore
d0892edd69 6816548: Uninitialized register when performing casting + auto(un)boxing
Constant value of final variable is lost during lowering

Reviewed-by: jjg
2009-03-25 10:28:52 +00:00
Maurizio Cimadamore
8321605121 6182950: methods clash algorithm should not depend on return type
Fixed code that checks for duplicate method declarations

Reviewed-by: jjg
2009-03-25 10:28:36 +00:00
Bhavesh Patel
34d8fbb5e2 6820360: Fix for definition list tags nesting adds an extra list tag for package summary page
Reviewed-by: jjg
2009-03-20 15:50:50 -07:00
Bhavesh Patel
fd5bc72005 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
Reviewed-by: jjg
2009-03-19 19:00:54 -07:00
Tim Bell
e005d5df51 Merge 2009-03-09 23:53:41 -07:00
Xiomara Jayasena
56fcf6c052 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:29:06 -07:00
Maurizio Cimadamore
a46fd793cc 6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
Create new combo type/symbol visitor printer used by all diagnostic formatters

Reviewed-by: jjg
2009-03-05 17:25:37 +00:00
Maurizio Cimadamore
938af6ca9f 6807255: LineNumberTable wrong if enhanced-for-loops are used
End position of iterable for-each loop was not set properly

Reviewed-by: jjg
2009-03-05 17:25:13 +00:00
Maurizio Cimadamore
5ff31e060f 6804733: javac generates spourious diagnostics for ill-formed type-variable bounds
Fixed algorithm for checking cycles in typevar declarations

Reviewed-by: jjg
2009-03-05 17:24:40 +00:00
Maurizio Cimadamore
7b461338a0 6467183: javac fails to raise unchecked warning on cast of parameterized generic subclass
Cleanup code for generating unchecked cast warnings

Reviewed-by: jjg
2009-03-05 17:24:08 +00:00
Bhavesh Patel
5020864887 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
Reviewed-by: jjg
2009-02-27 18:57:17 -08:00
Joe Darcy
178049faf3 6498938: Faulty comparison of TypeMirror objects in getElementsAnnotatedWith implementation
Reviewed-by: jjg
2009-02-24 17:48:53 -08:00
Joe Darcy
0b44eecef2 6501749: 6501749 Filer should state connection between created files and root elements
Reviewed-by: jjg
2009-02-24 17:16:18 -08:00
Joe Darcy
f73daa0e58 6460529: Provide mixin interfaces for getQualifiedName and getTypeParameters
Reviewed-by: jjg
2009-02-20 11:56:09 -08:00
Bhavesh Patel
11a5dc38c7 6802694: Javadoc doclet does not display deprecated information with -nocomment option for serialized form
Reviewed-by: jjg
2009-02-18 13:47:27 -08:00
Maurizio Cimadamore
198f2427b4 6769027: Source line should be displayed immediately after the first diagnostic line
Added support for customizing diagnostic output via API/command line flags

Reviewed-by: jjg
2009-02-13 11:57:33 +00:00
Joe Darcy
553a2dfa66 6794071: Provide exception superclass for UnknownFooExceptions
Reviewed-by: jjg
2009-02-06 12:49:48 -08:00
Jonathan Gibbons
21507b2ba7 6595666: fix -Werror
Reviewed-by: mcimadamore
2009-02-06 10:23:57 -08:00
Maurizio Cimadamore
4021098c46 6729401: Compiler error when using F-bounded generics with free type variables
Javac applies wrong substitution to recursive type-variable bounds

Reviewed-by: jjg
2009-01-29 12:19:14 +00:00
Maurizio Cimadamore
c5d6131368 6557182: Unchecked warning *and* inconvertible types
Redundant warnings are generated when casting from intersection types

Reviewed-by: jjg
2009-01-29 12:18:19 +00:00
Maurizio Cimadamore
552a7a0e19 6315770: javac inference allows creation of strange types: Integer & Runnable
Javac does not apply glb correctly as per JLS3 15.12.2.8

Reviewed-by: jjg
2009-01-29 12:17:57 +00:00
Jonathan Gibbons
4aefa80bf1 6176978: current Javadoc's invocation and extension (Doclet) mechanisms are problematic
Reviewed-by: darcy
2009-01-27 18:38:39 -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
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
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
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