JDK1.5 - More painful bugs aka Enumeration-Woes: Solved! 싶다 - 기타 고통스러운 버그 일명 열거 - 비애 : 해결하는!
Current Status: Solved 현재 상태 : 해결
Defect: 결함 :
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) 하나 이상의 파일이 컴파일된 때 주석을 입력합니다 javac (*. 자바 또는 @ 같은 방법 중 하나를 srclist 또는 filename1.java filename2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. 그러면 방출 및 오류 메시지가 그것의 정체를 찾을 수없습니다 수입 enums의 상징합니다.
However statically importing one level up and de-referencing works. 그러나 수입에서 한 수준 정적으로 작동하고 드 -를 참조합니다.
Create two classes in the same directory as shown below to check the defect. 만들기 아래 그림처럼 같은 디렉토리에있는 두 개의 클래스에 대한 결함을 확인합니다.
Just having any one of these files in the compilation list works fine. 그냥 즐기는 중 하나를 제대로 작동이 목록에있는 파일을 편집합니다. However more than one causes javac to croak! 그러나 두 개 이상의 원인 javac는 되었지!
//// Simple.java / / / /하여 Simple.java
import java.lang.annotation.Target; 수입 java.lang.annotation.;
import static java.lang.annotation.ElementType.*; 수입 정적 java.lang.annotation.elementtype .*;
@Target (METHOD) @ 대상 (방법)
public @interface Simple { 공공 @ 인터페이스를 단순 (
String value(); 문자열 값 ();
} )
//// Simple2.java / / / / simple2.java
import java.lang.annotation.Target; 수입 java.lang.annotation.;
import static java.lang.annotation.ElementType.*; 수입 정적 java.lang.annotation.elementtype .*;
@Target (TYPE) @ 대상 (유형)
public @interface Simple2 { 공공 @ 인터페이스를 simple2 (
String value(); 문자열 값 ();
} )
Filed under 밑에 Java Software 자바 소프트웨어 | |
| |
RSS 2.0 rss 2.0 | |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |




April 21st, 2005 at 6:20 am 2005년 4월 21일에서 오전 6시 20분
i love java so much that i dont what to with my self. 자바를 많이 사랑하기 때문에 사랑에 난 밖에 나가 내 스스로 무엇을해야합니다. i would be very greateful if u allowed me to downloads your jdk1.5. 나는 나에게는 매우 greateful 다운로드를 허용하면 u 싶다.
thanx 고맙습니다
April 22nd, 2005 at 2:22 pm 2005년 4월 22일에서 오후 2시 22분
@Salu @ salu
You can download JDK 1.5 from Sun site - 태양에서 다운로드하실 수있습니다 jdk 1.5 사이트 - http://java.sun.com/j2se/1.5.0/download.jsp
June 25th, 2007 at 5:53 pm 2007년 6월 25일에서 오후 5시 53분
hallo gdrmmg 안녕 gdrmmg