Friday Jun 05, 2009

Rich diagnostics landed on javac

I and Jon presented our langtools BOF - thanks for everyone who decided to attend despite the unfortunate schedule (we were running in parallel with the 'after dark' bash!). The BOF has been mainly focused on the javac diagnostic improvements in JDK 7 (which are currently in the langtools workspace and planned for integration in M4). We showed a demo which (I hope) gave a feeling of the enhanced capabilities of the javac's new diagnostic subsystem. See the slides for more details. Some pointed out the need for full-blown XML diagnostics in modern build systems - stay tuned, as we are actually planning to do some work in this area in the JDK7 timeframe.

Monday Oct 06, 2008

Diagnosing Raw Types

Raw types - generic type whose actual type parameters are missing - have been introduced in JDK 5.0 in order to provide better support for migration compatibility. Since raw types can lead to heap-pollution, their use is strongly discouraged, and generally considered as a poor programming practice. However javac does little in order to prevent the programmer from accidental usages of raw types.[Read More]

Friday Aug 08, 2008

Improving javac diagnostics

There are a lot of requests of improvements on the diagnostics that are generated by javac. The javac diagnostic system has suffered (starting from the JDK 5.0 release) from a lack of integration with the new language constructs (like generics, wildcards, etc.) and because of that issue, some of the diagnostics that are generated by javac are difficult to understand (at best). I remember of myself scratching my head when I first saw an error like this:

incompatible types:
required: capture#492 of ? extends Object
found: Object

In this entry I'll show you what I'm working on, and what is the impact of that work on the current javac diagnostic system.[Read More]
About

Maurizio Cimadamore is a member of the langtools team based in Santa Clara, CA. His efforts are mainly focused on the type-system area of the Java compiler.

Search

Categories
Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today