Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: errors for Java annotations #3398

Closed
scabug opened this issue May 6, 2010 · 4 comments
Closed

error: errors for Java annotations #3398

scabug opened this issue May 6, 2010 · 4 comments
Assignees
Labels

Comments

@scabug
Copy link

scabug commented May 6, 2010

Java annotations definitions cause errors when they're actually fine.

SoaStreamable.java:

import java.lang.annotation.Documented; 
import java.lang.annotation.ElementType; 
import java.lang.annotation.Inherited; 
import java.lang.annotation.Retention; 
import java.lang.annotation.RetentionPolicy; 
import java.lang.annotation.Target; 
@Documented 
@Retention(RetentionPolicy.RUNTIME) 
@Target( { ElementType.METHOD }) 
@Inherited 
public @interface SoaStreamable { 
    String mime() default ""; 
} 
miles@lewis:test$$ ~/projects/scala/scala/dists/latest/bin/scalac 
-Ybuilder-debug:refined src/test/SoaStreamable.java 
src/test/SoaStreamable.java:15: error: not found: type _root_ 
   String mime() default ""; 
          ^ 

NOTE that the same error is shown in the Eclipse plugin.

NOTE that this does not show when building from ant, with the scalac ant task.... ???

@scabug
Copy link
Author

scabug commented May 6, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3398?orig=1
Reporter: Razvan Cojocaru (razie)

@scabug
Copy link
Author

scabug commented May 6, 2010

Razvan Cojocaru (razie) said:
~/w/scripster> scala
Welcome to Scala version 2.8.0.r21786-b20100504020206 (Java HotSpot(TM) Server VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

@scabug
Copy link
Author

scabug commented May 6, 2010

@milessabin said:
This is actually a refined build manager issue (see the -Ybuilder-debug:refined scalac switch), so this is probably one for Hubert.

@scabug
Copy link
Author

scabug commented May 11, 2010

@milessabin said:
Fixed in r21891.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants