File tree Expand file tree Collapse file tree 4 files changed +45
-0
lines changed 
java/ql/integration-tests/java/maven-sun-packages 
src/main/java/com/example Expand file tree Collapse file tree 4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml  version =" 1.0"  encoding =" UTF-8" 
2+ <project  xmlns =" http://maven.apache.org/POM/4.0.0" 
3+          xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" 
4+          xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" 
5+     <modelVersion >4.0.0</modelVersion >
6+ 
7+     <groupId >com.example</groupId >
8+     <artifactId >sun-packages-test</artifactId >
9+     <version >1.0-SNAPSHOT</version >
10+ 
11+     <properties >
12+         <maven .compiler.source>8</maven .compiler.source>
13+         <maven .compiler.target>8</maven .compiler.target>
14+         <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15+     </properties >
16+ 
17+     <build >
18+         <plugins >
19+             <plugin >
20+                 <groupId >org.apache.maven.plugins</groupId >
21+                 <artifactId >maven-compiler-plugin</artifactId >
22+                 <version >3.13.0</version >
23+                 <configuration >
24+                     <compilerArgs >
25+                         <arg >--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED</arg >
26+                     </compilerArgs >
27+                 </configuration >
28+             </plugin >
29+         </plugins >
30+     </build >
31+ </project >
Original file line number Diff line number Diff line change 1+ App.java
2+ pom.xml
Original file line number Diff line number Diff line change 1+ package  com .example ;
2+ 
3+ import  sun .misc .Unsafe ;
4+ 
5+ public  class  App  {
6+     public  static  void  main (String [] args ) {
7+         System .out .println ("Testing sun.misc.Unsafe access" );
8+     }
9+ }
Original file line number Diff line number Diff line change 1+ 
2+ def  test (codeql , java ):
3+     codeql .database .create ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments