User account creation filtered due to spam.

Bug 42039 - Missing javax.annotation.Resource
Summary: Missing javax.annotation.Resource
Status: NEW
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: 0.98
: P3 normal
Target Milestone: ---
Assignee: Andrew John Hughes
URL:
Keywords:
Depends on:
Blocks: 39410
  Show dependency treegraph
 
Reported: 2009-11-14 02:10 UTC by Andrew John Hughes
Modified: 2012-08-15 21:17 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2012-08-15 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew John Hughes 2009-11-14 02:10:49 UTC
$ 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.