• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

INRIA / spoon / 1681 / 1
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 08 Sep 2016 01:00PM UTC
Files 285
Run time 14s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Sep 2016 12:48PM UTC coverage: 73.396% (+0.07%) from 73.329%
1681.1

push

travis-ci

monperrus
Fix(noclasspath): access lookup in lambda expressions in noclasspath mode.

Closes #813

Until now, a token within a lambda (noclasspath mode) is always
considered a variable access (in particular a CtLocalVariable), though,
it also could refer to a type---a class for instance. This commit adds
two features:

1) An improved variable lookup method which ensures that a found
variable is visible in current context. Furthermore, the amount of
cloned code has been reduced.

2) Check if a given token (SingleNameReference) is a variable or type
access and create an appropriate AST node instead of always creating
a local variable reference.

* fixed a comment.

* Properly handle parameter accesses in anonymous classes.

* Fixed source position calculation in `createTypeAccessNoClasspath`

Fixes #813 as well.

* Added first lines to search for statically imported variables and variables declared in super classes/interfaces.

* Added a simple test checking a type access in a lambda.

* Create concrete variable access.

* Added a test showing that a field access is properly handled in lambdas.

* Find variables declared in super classes/fields.

* Added several Tests for fields accesses.

* Improved variable lookup for fields.

* Added an example that statically imports a field from an interface.

Furthermore, fixed the test class FieldAccessInLambda.java.

* Added an example that statically imports a field from an unknown class.

* Avoid Exception in getVariableDeclaration.

* Added an example that requires super class/interface lookup for variable.

* Fixed scope checking for declared variables.

* Use EarlyTerminatingScanner instead of AbstractFilter.

* Consider all types CtVariable and fixed documentation of `createVariableAccessNoClasspath`.

* Create a more accurate CtField from super class/interface.

* Removed unused import from JDTTreeBuilderHelper.

* Added some heuristics for statically imported fields in noclasspath mode.

* Added missing EOF.

* Fixed expected and actual value in JUnit tests.

* Fixed typo.

* Replaced some spaces with tabs.

13960 of 19020 relevant lines covered (73.4%)

0.73 hits per line

Source Files on job 1681.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1681
  • Travis Job 1681.1
  • 43223835 on github
  • Prev Job for on master (#1677.1)
  • Next Job for on master (#1686.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc