﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13146	UnsupportedOperationException: Unable to remove primitives from TestError	naoliv	team	"Unfortunatelly I don't know what caused this warning in console:

{{{
AVISO: Unable to remove primitives from TestError [tester=MapCSSTagCheckerAndRule [rule=GroupedMapCSSRule [selectors=[node[ParameterFunction~equal(class java.lang.Object ParameterFunction~tag(class org.openstreetmap.josm.gui.mappaint.Environment <amenity>),class java.lang.Object ParameterFunction~parent_tag(class org.openstreetmap.josm.gui.mappaint.Environment <amenity>))] >LinkSelector{conditions=null} *[amenity][amenity'NEQ'parking]], declaration=Declaration [instructions=[throwWarning: ArrayFunction~tr(class java.lang.String <{0} inside {1}>,class java.lang.String ArrayFunction~concat(class java.lang.Object <amenity=>,class java.lang.Object ParameterFunction~tag(class org.openstreetmap.josm.gui.mappaint.Environment <amenity>)),class java.lang.String ArrayFunction~concat(class java.lang.Object <amenity=>,class java.lang.Object ParameterFunction~tag(class org.openstreetmap.josm.gui.mappaint.Environment <amenity>)));], idx=15]]], code=3000, message=amenity=fuel dentro de amenity=fuel]. java.lang.UnsupportedOperationException
}}}

From the message (`amenity=fuel inside amenity=fuel`) it could have hit https://josm.openstreetmap.de/browser/trunk/data/validator/geometry.mapcss#L152:

{{{
#!mapcss
node[tag(""amenity"") = parent_tag(""amenity"")] ∈ *[amenity][amenity != parking] {
    throwWarning: tr(""{0} inside {1}"", concat(""amenity="", tag(""amenity"")), concat(""amenity="", tag(""amenity"")));
}
}}}

or my local complement:

{{{
#!mapcss
way[tag(""amenity"") = parent_tag(""amenity"")] ∈ *[amenity][amenity != parking],
relation[tag(""amenity"") = parent_tag(""amenity"")] ∈ *[amenity][amenity != parking] {
        throwWarning: tr(""{0} dentro de {1}"", concat(""amenity="", tag(""amenity"")), concat(""amenity="", tag(""amenity"")));
}
}}}

JOSM:
{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-07-13 23:20:15 +0200 (Wed, 13 Jul 2016)
Build-Date:2016-07-14 01:31:48
Revision:10531
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10531 pt_BR) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 538 MB / 10206 MB (264 MB allocated, but free)
Java version: 1.8.0_91-8u91-b14-3-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Plugins:
- Create_grid_of_ways (32440)
- ImportImagePlugin (32584)
- OpeningHoursEditor (32583)
- PicLayer (32495)
- RoadSigns (32584)
- SimplifyArea (32517)
- apache-commons (32584)
- buildings_tools (32639)
- conflation (0.2.0)
- contourmerge (1014)
- download_along (32535)
- editgpx (32485)
- ejml (32639)
- geojson (42)
- geotools (32584)
- importvec (32490)
- indoorhelper (32637)
- jts (32539)
- log4j (32309)
- measurement (32454)
- merge-overlap (32471)
- opendata (32584)
- pbf (32584)
- pdfimport (32584)
- poly (32584)
- reverter (32584)
- scripting (30723)
- todo (29154)
- turnrestrictions (32629)
- undelete (32584)
}}}"	defect	new	normal		Core validator				
