JDK1.5 - More painful bugs aka Enumeration-Woes: Solved! JDK1.5 - Mais doloroso bugs aka Enumeração-Desgraças: Resolvido!
Current Status: Solved Status atual: resolvido
Defect: Defeito:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) Quando mais de uma anotação tipo de arquivos são compilados em javac (qualquer das maneiras como *. java ou @ srclist ou FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. então ele e emite mensagem de erro que não pode encontrar símbolo para estaticamente Enums importados.
However statically importing one level up and de-referencing works. No entanto estaticamente importar um nível para cima e referenciação de-obra.
Create two classes in the same directory as shown below to check the defect. Crie duas classes no mesmo diretório como mostrado a seguir para verificar o defeito.
Just having any one of these files in the compilation list works fine. Basta ter qualquer um destes arquivos na compilação lista funciona bem. However more than one causes javac to croak! No entanto mais de um causas javac para croak!
//// Simple.java / / / / Simple.java
import java.lang.annotation.Target; java.lang.annotation.Target importação;
import static java.lang.annotation.ElementType.*; importação estática java.lang.annotation.ElementType .*;
@Target (METHOD) @ Target (método)
public @interface Simple { @ público interface simples (
String value(); String valor ();
} )
//// Simple2.java / / / / Simple2.java
import java.lang.annotation.Target; java.lang.annotation.Target importação;
import static java.lang.annotation.ElementType.*; importação estática java.lang.annotation.ElementType .*;
@Target (TYPE) @ Target (TIPO)
public @interface Simple2 { @ público interface Simple2 (
String value(); String valor ();
} )
Filed under Arquivado em Java Software Java Software | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |




April 21st, 2005 at 6:20 am 21 de abril de 2005, às 6:20 am
i love java so much that i dont what to with my self. i love java i dont tanto que o que a minha própria. i would be very greateful if u allowed me to downloads your jdk1.5. Ficaria muito greateful se u me permitiu jdk1.5 seus downloads.
thanx
April 22nd, 2005 at 2:22 pm 22 de abril de 2005, às 2:22 pm
@Salu @ Salu
You can download JDK 1.5 from Sun site - Você pode fazer o download do JDK 1,5 Sun site -- http://java.sun.com/j2se/1.5.0/download.jsp
June 25th, 2007 at 5:53 pm 25 de junho de 2007 em 5:53 pm
hallo gdrmmg Hallo gdrmmg