This HTML5 document contains 36 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

Namespace Prefixes

PrefixIRI
dcthttp://purl.org/dc/terms/
dbohttp://dbpedia.org/ontology/
foafhttp://xmlns.com/foaf/0.1/
schemahttp://schema.org/
dbthttp://dbpedia.org/resource/Template:
rdfshttp://www.w3.org/2000/01/rdf-schema#
freebasehttp://rdf.freebase.com/ns/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
owlhttp://www.w3.org/2002/07/owl#
n4http://en.wikipedia.org/wiki/
dbphttp://dbpedia.org/property/
dbchttp://dbpedia.org/resource/Category:
provhttp://www.w3.org/ns/prov#
xsdhhttp://www.w3.org/2001/XMLSchema#
wikidatahttp://www.wikidata.org/entity/
goldhttp://purl.org/linguistics/gold/
dbrhttp://dbpedia.org/resource/

Statements

Subject Item
dbr:Heap_pollution
rdf:type
wikidata:Q9143 schema:Language owl:Thing wikidata:Q315 dbo:Language dbo:ProgrammingLanguage
rdfs:label
Heap pollution
rdfs:comment
In the Java programming language, heap pollution is a situation that arises when a variable of a parameterized type refers to an object that is not of that parameterized type. This situation is normally detected during compilation and indicated with an unchecked warning. Later, during runtime heap pollution will often cause a ClassCastException. Heap Pollution in a non-varargs context
owl:sameAs
freebase:m.03m7386
dbp:wikiPageUsesTemplate
dbt:Prog-lang-stub dbt:Subscription_required dbt:Reflist dbt:Orphan dbt:Cite_book
dct:subject
dbc:Java_platform
gold:hypernym
dbr:Situation
prov:wasDerivedFrom
n4:Heap_pollution?oldid=1001954820&ns=0
dbo:wikiPageID
15399561
dbo:wikiPageLength
3825
dbo:wikiPageRevisionID
1001954820
dbo:wikiPageWikiLink
dbr:Implementation dbr:Memory_management dbr:Exception_handling dbr:Java_(programming_language) dbr:Java_syntax dbr:Type_conversion dbr:Interface_(Java) dbr:Runtime_(program_lifecycle_phase) dbr:Type_system dbr:Compile_time dbr:Generics_in_Java dbr:Variadic_function dbc:Java_platform dbr:Reification_(computer_science)
dbo:abstract
In the Java programming language, heap pollution is a situation that arises when a variable of a parameterized type refers to an object that is not of that parameterized type. This situation is normally detected during compilation and indicated with an unchecked warning. Later, during runtime heap pollution will often cause a ClassCastException. A source of heap pollution in Java arises from the fact that type arguments and variables are not reified at run-time. As a result, different parameterized types are implemented by the same class or interface at run time. Indeed, all invocations of a given generic type declaration share a single run-time implementation. This results in the possibility of heap pollution. Under certain conditions, it is possible that a variable of a parameterized type refers to an object that is not of that parameterized type. The variable will always refer to an object that is an instance of a class that implements the parameterized type. Heap Pollution in a non-varargs context public class HeapPollutionDemo{ public static void main(String[] args) { Set s = new TreeSet<Integer>; Set<String> ss = s; // unchecked warning s.add(new Integer(42)); // another unchecked warning Iterator<String> iter = ss.iterator; while (iter.hasNext) { String str = iter.next; // ClassCastException thrown System.out.println(str); } }}
foaf:isPrimaryTopicOf
n4:Heap_pollution