[Bug 1224] New: Source and target versions for building java classes

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Nov 19 21:20:49 PST 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1224

          Priority: P3
            Bug ID: 1224
                CC: unassigned at icedtea.classpath.org
          Assignee: gnu.andrew at redhat.com
           Summary: Source and target versions for building java classes
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: yoshiki at sendme.email.ne.jp
          Hardware: sparc64
            Status: NEW
           Version: 6-1.11.5
         Component: IcedTea
           Product: IcedTea

Some sources of classpath classes are using @Override annotations for
implementing interface methods.  But I found that this was allowed after JDK 6.
 JDK 5 only supports this annotation for overriding a superclass method. 
Therefore, I'm getting an error below during the build step of classpath
classes with GCJ.  Is it possible and enough to change "LANGUAGE_VERSION =
-source 1.5" and "TARGET_CLASS_VERSION = 5" defined in
openjdk-ecj/jdk/make/common/shared/Defs-java.gmk to avoid the issue?

Does anybody advise me how to work around that?


bootstrap/jdk1.6.0/bin/javac -J-XX:ThreadStackSize=2048 -J-Xmx896m -J-Xms128m
-J-XX:PermSize=32m -J-XX:Max
PermSize=160m -g -source 1.5 -target 5 -encoding ascii
-Xbootclasspath:/home/c83001/icedtea/icedtea6-1.11.5/openjdk.build-ecj/classes
-sourcepa
th
/home/c83001/icedtea/icedtea6-1.11.5/generated.build:../../../src/solaris/classes:../../../src/share/classes
-bootclasspath /home/c83001/ice
dtea/icedtea6-1.11.5/bootstrap/jdk1.6.0/jre/lib/rt.jar::/home/c83001/icedtea/icedtea6-1.11.5/openjdk.build-ecj/classes
-d /home/c83001/icedtea/
icedtea6-1.11.5/openjdk.build-ecj/classes
@/home/c83001/icedtea/icedtea6-1.11.5/openjdk.build-ecj/tmp/sun/sun.awt/awt/.classes.list
----------
1. ERROR in ../../../src/share/classes/sun/awt/image/SunVolatileImage.java (at
line 266)
        public Surface getDestSurface() {
                       ^^^^^^^^^^^^^^^^
The method getDestSurface() of type SunVolatileImage must override a superclass
method
----------
----------
2. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 257)
        public int getWidth() {
                   ^^^^^^^^^^
The method getWidth() of type JPEGParam must override a superclass method
----------
3. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 262)
        public int getHeight() {
                   ^^^^^^^^^^^
The method getHeight() of type JPEGParam must override a superclass method
----------
4. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 267)
        public int getHorizontalSubsampling(int component) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getHorizontalSubsampling(int) of type JPEGParam must override a
superclass method
----------
5. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 276)
        public int getVerticalSubsampling(int component) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getVerticalSubsampling(int) of type JPEGParam must override a
superclass method
----------
6. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 285)
        public JPEGQTable getQTable(int tableNum) {
                          ^^^^^^^^^^^^^^^^^^^^^^^
The method getQTable(int) of type JPEGParam must override a superclass method
----------
7. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 293)
        public JPEGQTable getQTableForComponent(int component) {
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getQTableForComponent(int) of type JPEGParam must override a
superclass method
----------
8. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 302)
        public JPEGHuffmanTable getDCHuffmanTable(int tableNum) {
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getDCHuffmanTable(int) of type JPEGParam must override a superclass
method
----------
9. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 310)
        public JPEGHuffmanTable getDCHuffmanTableForComponent(int component) {
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getDCHuffmanTableForComponent(int) of type JPEGParam must override a
superclass method
----------
10. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 319)
        public JPEGHuffmanTable getACHuffmanTable(int tableNum) {
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getACHuffmanTable(int) of type JPEGParam must override a superclass
method
----------
11. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 327)
        public JPEGHuffmanTable getACHuffmanTableForComponent(int component) {
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getACHuffmanTableForComponent(int) of type JPEGParam must override a
superclass method
----------
12. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 336)
        public int getDCHuffmanComponentMapping(int component) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getDCHuffmanComponentMapping(int) of type JPEGParam must override a
superclass method
----------
13. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 344)
        public int getACHuffmanComponentMapping(int component) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getACHuffmanComponentMapping(int) of type JPEGParam must override a
superclass method
----------
14. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 352)
        public int getQTableComponentMapping(int component) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getQTableComponentMapping(int) of type JPEGParam must override a
superclass method
----------
15. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 360)
        public boolean isImageInfoValid() {
                       ^^^^^^^^^^^^^^^^^^
The method isImageInfoValid() of type JPEGParam must override a superclass
method
----------
16. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 365)
        public boolean isTableInfoValid() {
                       ^^^^^^^^^^^^^^^^^^
The method isTableInfoValid() of type JPEGParam must override a superclass
method
----------
17. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 370)
        public boolean getMarker(int marker) {
                       ^^^^^^^^^^^^^^^^^^^^^
The method getMarker(int) of type JPEGParam must override a superclass method
----------
18. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 402)
        public byte[][] getMarkerData(int marker) {
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
The method getMarkerData(int) of type JPEGParam must override a superclass
method
----------
19. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 434)
        public int getEncodedColorID() {
                   ^^^^^^^^^^^^^^^^^^^
The method getEncodedColorID() of type JPEGParam must override a superclass
method
----------
20. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 439)
        public int getNumComponents() {
                   ^^^^^^^^^^^^^^^^^^
The method getNumComponents() of type JPEGParam must override a superclass
method
----------
21. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 444)
        public int getRestartInterval() {
                   ^^^^^^^^^^^^^^^^^^^^
The method getRestartInterval() of type JPEGParam must override a superclass
method
----------
22. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 449)
        public int getDensityUnit() {
                   ^^^^^^^^^^^^^^^^
The method getDensityUnit() of type JPEGParam must override a superclass method
----------
23. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 461)
        public int getXDensity() {
                   ^^^^^^^^^^^^^
The method getXDensity() of type JPEGParam must override a superclass method
----------
24. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 478)
        public int getYDensity() {
                   ^^^^^^^^^^^^^
The method getYDensity() of type JPEGParam must override a superclass method
----------
25. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 494)
        public void setHorizontalSubsampling(int component, int subsample) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setHorizontalSubsampling(int, int) of type JPEGParam must override a
superclass method
----------
26. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 503)
        public void setVerticalSubsampling(int component, int subsample) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setVerticalSubsampling(int, int) of type JPEGParam must override a
superclass method
----------
27. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 512)
        public void setQTable(int tableNum, JPEGQTable qTable) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setQTable(int, JPEGQTable) of type JPEGParam must override a
superclass method
----------
28. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 521)
        public void setDCHuffmanTable(int tableNum, JPEGHuffmanTable huffTable)
{
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setDCHuffmanTable(int, JPEGHuffmanTable) of type JPEGParam must
override a superclass method
----------
29. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 530)
        public void setACHuffmanTable(int tableNum, JPEGHuffmanTable huffTable)
{
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setACHuffmanTable(int, JPEGHuffmanTable) of type JPEGParam must
override a superclass method
----------
30. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 538)
        public void setACHuffmanComponentMapping(int component, int table) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setACHuffmanComponentMapping(int, int) of type JPEGParam must
override a superclass method
----------
31. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 549)
        public void setDCHuffmanComponentMapping(int component, int table) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setDCHuffmanComponentMapping(int, int) of type JPEGParam must
override a superclass method
----------
32. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 560)
        public void setQTableComponentMapping(int component, int table) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setQTableComponentMapping(int, int) of type JPEGParam must override
a superclass method
----------
33. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 571)
        public void setImageInfoValid(boolean flag) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setImageInfoValid(boolean) of type JPEGParam must override a
superclass method
----------
34. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 576)
        public void setTableInfoValid(boolean flag) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setTableInfoValid(boolean) of type JPEGParam must override a
superclass method
----------
35. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 581)
        public void setMarkerData(int marker, byte[][] data) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setMarkerData(int, byte[][]) of type JPEGParam must override a
superclass method
----------
36. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 614)
        public void addMarkerData(int marker, byte[] data) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method addMarkerData(int, byte[]) of type JPEGParam must override a
superclass method
----------
37. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 647)
        public void setRestartInterval(int restartInterval) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method setRestartInterval(int) of type JPEGParam must override a superclass
method
----------
38. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 652)
        public void setDensityUnit(int unit) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^
The method setDensityUnit(int) of type JPEGParam must override a superclass
method
----------
39. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 668)
        public void setXDensity(int density) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^
The method setXDensity(int) of type JPEGParam must override a superclass method
----------
40. ERROR in ../../../src/share/classes/sun/awt/image/codec/JPEGParam.java (at
line 684)
        public void setYDensity(int density) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^
The method setYDensity(int) of type JPEGParam must override a superclass method
----------
----------
41. ERROR in
../../../src/share/classes/sun/awt/image/codec/JPEGImageEncoderImpl.java (at
line 145)
        public int getDefaultColorId(ColorModel cm) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method getDefaultColorId(ColorModel) of type JPEGImageEncoderImpl must
override a superclass method
----------
----------
42. ERROR in ../../../src/share/classes/sun/java2d/SunGraphics2D.java (at line
3316)
        public Surface getDestSurface() {
                       ^^^^^^^^^^^^^^^^
The method getDestSurface() of type SunGraphics2D must override a superclass
method
----------
----------
43. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
96)
        public SurfaceData createManagedSurface(int w, int h, int transparency)
{
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method createManagedSurface(int, int, int) of type GLXGraphicsConfig must
override a superclass method
----------
44. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
169)
        public final boolean isCapPresent(int cap) {
                             ^^^^^^^^^^^^^^^^^^^^^
The method isCapPresent(int) of type GLXGraphicsConfig must override a
superclass method
----------
45. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
174)
        public final long getNativeConfigInfo() {
                          ^^^^^^^^^^^^^^^^^^^^^
The method getNativeConfigInfo() of type GLXGraphicsConfig must override a
superclass method
----------
46. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
184)
        public final OGLContext getContext() {
                                ^^^^^^^^^^^^
The method getContext() of type GLXGraphicsConfig must override a superclass
method
----------
47. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
399)
        createCompatibleVolatileImage(int width, int height,
                                      int transparency, int type)
       
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method createCompatibleVolatileImage(int, int, int, int) of type
GLXGraphicsConfig must override a superclass method
----------
48. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
438)
        public ContextCapabilities getContextCapabilities() {
                                   ^^^^^^^^^^^^^^^^^^^^^^^^
The method getContextCapabilities() of type GLXGraphicsConfig must override a
superclass method
----------
49. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
443)
        public void addDeviceEventListener(AccelDeviceEventListener l) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method addDeviceEventListener(AccelDeviceEventListener) of type
GLXGraphicsConfig must override a superclass method
----------
50. ERROR in
../../../src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java (at line
448)
        public void removeDeviceEventListener(AccelDeviceEventListener l) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method removeDeviceEventListener(AccelDeviceEventListener) of type
GLXGraphicsConfig must override a superclass method
----------
50 problems (50 errors)make[5]: *** [.compile.classlist] Error 255

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121120/4aac48a7/attachment.html 


More information about the distro-pkg-dev mailing list