hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11049) javax package system class default is too broad
Date Tue, 30 Sep 2014 15:11:45 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153263#comment-14153263
] 

Hudson commented on HADOOP-11049:
---------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #1912 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1912/])
HADOOP-11049. javax package system class default is too broad. Contributed by Sangjin Lee
(jlowe: rev cf4631d7c9448205f4952341c071e1650e7922dc)
* hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/v2/TestMRJobs.java
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestRunJar.java
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapreduce/v2/util/TestMRApps.java
* hadoop-common-project/hadoop-common/src/main/resources/org.apache.hadoop.application-classloader.properties


> javax package system class default is too broad
> -----------------------------------------------
>
>                 Key: HADOOP-11049
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11049
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 2.6.0
>            Reporter: Sangjin Lee
>            Assignee: Sangjin Lee
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: HADOOP-11049.patch, HADOOP-11049.patch, HADOOP-11049.patch
>
>
> The system class default defined in ApplicationClassLoader has "javax.". This is too
broad. The intent of the system classes is to exempt classes that are provided by the JDK
along with hadoop and minimally necessary dependencies that are guaranteed to be on the system
classpath. "javax." is too broad for that.
> For example, JSR-330 which is part of JavaEE (not JavaSE) has "javax.inject". Packages
like them should not be declared as system classes, as they will result in ClassNotFoundException
if they are needed and present on the user classpath.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message