JavaNCSS

parse error for annotations

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 30.51
  • Fix Version/s: 32.53
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

hallo

we encountered a parse error with annotations:
Encountered "interface" at line 69, column 6.
Was expecting one of:
"assert" ...
"enum" ...
<IDENTIFIER> ...

The source it stumbled uppon:

public class ClassDescriberTest {

@Retention(RetentionPolicy.RUNTIME)
@interface Constr {
}
[...]

the line with "@interface Constr" caused the error.

thanks

Activity

Hide
Herve Boutemy added a comment -

can you give us a link to the source causing this error?

Show
Herve Boutemy added a comment - can you give us a link to the source causing this error?
Hide
Sébastien Reynaud added a comment -

I have attached the patch for this issue.

Show
Sébastien Reynaud added a comment - I have attached the patch for this issue.
Hide
Herve Boutemy added a comment -

fixed in r169
thank you Sébastien

Show
Herve Boutemy added a comment - fixed in r169 thank you Sébastien
Hide
werner mueller added a comment -

thanks for the fix

Show
werner mueller added a comment - thanks for the fix

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: