The Artima Developer Community
Sponsored Link

Java Buzz Forum
JDK1.5 - More painful bugs aka great-vision-yet-not-there-yet-bug aka Enumeration-Woes

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Angsuman Chakraborty

Posts: 19816
Nickname: angsuman
Registered: Dec, 2003

Angsuman Chakraborty is the CEO and Chief Architect at Taragana
JDK1.5 - More painful bugs aka great-vision-yet-not-there-yet-bug aka Enumeration-Woes Posted: Aug 31, 2004 2:43 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Angsuman Chakraborty.
Original Post: JDK1.5 - More painful bugs aka great-vision-yet-not-there-yet-bug aka Enumeration-Woes
Feed Title: Simple Thoughts on Java
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: News and views as a Software Architect and Entepreneur on Java and related Technologies.
Latest Java Buzz Posts
Latest Java Buzz Posts by Angsuman Chakraborty
Latest Posts From Simple Thoughts on Java

Advertisement
Yet another JDK1.5, great-vision-yet-not-there-yet-bug: When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) then it emits and error message that it cannot find symbol for statically imported 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! //// Simple.java import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; @Target (METHOD) public @interface Simple { String value(); } //// Simple2.java import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; @Target (TYPE) public @interface Simple2 { String value(); }

Read: JDK1.5 - More painful bugs aka great-vision-yet-not-there-yet-bug aka Enumeration-Woes

Topic: Sun's Being an Asshole Previous Topic   Next Topic Topic: James Gosling, Open Source, Future of Java, ...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use