bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/42039] New: Missing javax.annotation.Resource


From: gnu_andrew at member dot fsf dot org
Subject: [Bug classpath/42039] New: Missing javax.annotation.Resource
Date: 14 Nov 2009 02:10:50 -0000

$ make
mkdir -p lib/rt
/mnt/builder/icedtea7/bootstrap/jdk1.6.0/bin/javac  -g -encoding utf-8  -source
5 -target 5 -d lib/rt \
          -classpath /usr/lib/jvm/gcj-jdk/jre/lib/rt.jar \
          -sourcepath
'/mnt/builder/icedtea7/generated:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/corba/src/share/classes:/home/andrew/projects/openjdk/icedtea7/netx'
\
          -bootclasspath \'\' @rt-source-files.txt ;
incorrect classpath: ''
----------
1. ERROR in
/mnt/builder/icedtea7/openjdk/jdk/src/share/classes/com/sun/jmx/mbeanserver/MBeanInjector.java
(at line 32)
        import javax.annotation.Resource;
               ^^^^^^^^^^^^^^^^^^^^^^^^^
The import javax.annotation.Resource cannot be resolved
----------
2. ERROR in
/mnt/builder/icedtea7/openjdk/jdk/src/share/classes/com/sun/jmx/mbeanserver/MBeanInjector.java
(at line 205)
        Resource res = member.getAnnotation(Resource.class);
        ^^^^^^^^
Resource cannot be resolved to a type
----------
3. ERROR in
/mnt/builder/icedtea7/openjdk/jdk/src/share/classes/com/sun/jmx/mbeanserver/MBeanInjector.java
(at line 205)
        Resource res = member.getAnnotation(Resource.class);
                              ^^^^^^^^^^^^^
Bound mismatch: The generic method getAnnotation(Class<T>) of type
AnnotatedElement is not applicable for the arguments (Class<Resource>). The
inferred type Resource is not a valid substitute for the bounded parameter <T
extends Annotation>
----------
4. ERROR in
/mnt/builder/icedtea7/openjdk/jdk/src/share/classes/com/sun/jmx/mbeanserver/MBeanInjector.java
(at line 205)
        Resource res = member.getAnnotation(Resource.class);

Without this it is necessary to depend on the jaxws sources.


-- 
           Summary: Missing javax.annotation.Resource
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gnu_andrew at member dot fsf dot org
OtherBugsDependingO 39410
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42039





reply via email to

[Prev in Thread] Current Thread [Next in Thread]