JDK1.5 - More painful bugs aka Enumeration-Woes: Solved! JDK1.5 - più dolorosa bug alias Enumerazione-Woes: Risolto!
Current Status: Solved Stato attuale: Risolto
Defect: Difetto:
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 più di un tipo di file di annotazioni sono raccolte in javac (uno dei modi come Java o *. @ srclist o FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. essa emette quindi messaggio di errore e che non è possibile trovare simbolo per staticamente enums importati.
However statically importing one level up and de-referencing works. Tuttavia staticamente un livello di importazione e di riferimenti.
Create two classes in the same directory as shown below to check the defect. Creare due classi nella stessa directory come mostrato di seguito per controllare il difetto.
Just having any one of these files in the compilation list works fine. Solo che hanno uno di questi file nella compilazione elenco funziona bene. However more than one causes javac to croak! Tuttavia più di un cause javac a croak!
//// Simple.java / / / / Simple.java
import java.lang.annotation.Target; java.lang.annotation.Target importazione;
import static java.lang.annotation.ElementType.*; importazione statica java.lang.annotation.ElementType .*;
@Target (METHOD) @ Target (METODO)
public @interface Simple { @ pubblici interfaccia semplice (
String value(); Valore stringa ();
} )
//// Simple2.java / / / / Simple2.java
import java.lang.annotation.Target; java.lang.annotation.Target importazione;
import static java.lang.annotation.ElementType.*; importazione statica java.lang.annotation.ElementType .*;
@Target (TYPE) @ Target (tipo)
public @interface Simple2 { @ pubblici interfaccia Simple2 (
String value(); Valore stringa ();
} )
Filed under Elencato sotto Java Software Software Java | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




April 21st, 2005 at 6:20 am 21 aprile 2005 a 6:20 am
i love java so much that i dont what to with my self. i love java così tanto che i dont cosa con la mia auto. i would be very greateful if u allowed me to downloads your jdk1.5. Sarei molto greateful se e mi ha permesso di Download di tuo jdk1.5.
thanx Grazie
April 22nd, 2005 at 2:22 pm 22 aprile 2005 a 2:22 pm
@Salu @ Salu
You can download JDK 1.5 from Sun site - È possibile scaricare 1,5 JDK di Sun sito -- http://java.sun.com/j2se/1.5.0/download.jsp
June 25th, 2007 at 5:53 pm 25 Giugno 2007 alle 5:53 pm
hallo gdrmmg Hallo gdrmmg