Skip to content

[Bug] %apiprivate and %cup2 switches are incompatible [sf#124] #125

@lsf37

Description

@lsf37

Reported by mranderson2010 on 2013-03-23 01:29 UTC
Jflex-1.4.3 with the cup2 patch applied generates bad code when combining the apiprivate switch and the cup2 switch.

A cup2 scanner implements the interface edu.tum.cup2.scanner.Scanner that contains the signature

> public ScannerToken<? extends Object> readNextTerminal()
> throws java.io.IOException;

The method is implemented in the generated scanner class, but the apiprivate switch changes the public modifier to private, leading to the error message
> cannot implement readNextTerminal() in edu.tum.cup2.scanner.Scanner; attempting to assign weaker access privileges; was public

Metadata

Metadata

Assignees

Labels

bugNot working as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions