JDK1.5 - More painful bugs aka Enumeration-Woes: Solved! JDK1.5 - Pour en savoir plus douloureux d'aka de bogues Dénombrement-Malheur: Résolu!
Current Status: Solved Situation actuelle: Résolu
Defect: Défaut:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) Lorsque plus d'un type de fichiers d'annotation sont compilées dans javac (l'un des moyens comme *. java ou @ srclist ou FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. il émet un message d'erreur et qu'il ne peut pas trouver symbole pour statiquement Enums importés.
However statically importing one level up and de-referencing works. Toutefois statiquement un niveau d'importation et de références.
Create two classes in the same directory as shown below to check the defect. Créer deux classes dans le même répertoire comme indiqué ci-dessous pour vérifier le défaut.
Just having any one of these files in the compilation list works fine. Le simple fait de l'une quelconque de ces fichiers dans la compilation liste fonctionne très bien. However more than one causes javac to croak! Toutefois plus de l'un entraîne à javac croak!
//// Simple.java / / / / Simple.java
import java.lang.annotation.Target; java.lang.annotation.Target importation;
import static java.lang.annotation.ElementType.*; importation statique java.lang.annotation.ElementType .*;
@Target (METHOD) @ Cible (méthode)
public @interface Simple { public @ interface simple (
String value(); String valeur ();
} )
//// Simple2.java / / / / Simple2.java
import java.lang.annotation.Target; java.lang.annotation.Target importation;
import static java.lang.annotation.ElementType.*; importation statique java.lang.annotation.ElementType .*;
@Target (TYPE) @ Cible (type)
public @interface Simple2 { public @ interface Simple2 (
String value(); String valeur ();
} )
Filed under Classé sous Java Software Logiciel de Java | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |




April 21st, 2005 at 6:20 am Avril 21, 2005 at 6:20 am
i love java so much that i dont what to with my self. i love java tellement que je ne pas quoi avec mon auto. i would be very greateful if u allowed me to downloads your jdk1.5. Je serais très greateful si et m'a permis de vos téléchargements jdk1.5.
thanx Thanx
April 22nd, 2005 at 2:22 pm Avril 22, 2005 at 2:22 pm
@Salu Salu @
You can download JDK 1.5 from Sun site - Vous pouvez télécharger 1,5 JDK de Sun site -- http://java.sun.com/j2se/1.5.0/download.jsp
June 25th, 2007 at 5:53 pm Juin 25, 2007 at 5:53 pm
hallo gdrmmg Hallo gdrmmg